dirtywarez.com > Misc UI Tweaks

Tweaking misc. UI in the Steam Point Shop

  1. // ==UserScript==
  2. // @name dirtywarez.com > Misc UI Tweaks
  3. // @namespace http://dirtywarez.com/
  4. // @match https://forum.dirtywarez.com/threads/*
  5. // @version 1.0
  6. // @author Jeremy Boutin
  7. // @license MIT
  8. // @require https://code.jquery.com/jquery-1.9.1.min.js
  9. // @description Tweaking misc. UI in the Steam Point Shop
  10. // @grant GM_addStyle
  11. // @grant GM.getValue
  12. // @grant GM_log
  13. // @grant GM_setClipboard
  14. // ==/UserScript==
  15.  
  16. GM_addStyle (`
  17. .bbCodeBlock-content {
  18. max-height: fit-content !important;
  19. }
  20. `);
  21.  
  22. $.noConflict();
  23.  
  24. jQuery(window).on('load popstate', function(event) {
  25. setTimeout(function(){
  26. jQuery('pre[class="bbCodeCode"] code').each(function() {
  27. const rglinks = jQuery(this).html();
  28. console.log(jQuery(this).html());
  29. let rglinksupdated = rglinks.replace(/rg.to/g,'rapidgator.net');
  30. rglinksupdated = rglinks.replace(/.html/g,'');
  31. jQuery(this).html(rglinksupdated)
  32.  
  33. });
  34. }, 350);
  35. });