Advertisement
Guest User

avorion screenshot fixer

a guest
Feb 17th, 2017
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name            avorion screenshot fixer
  3. // @namespace       avorion
  4. // @description     Fixes big screenshots on www.avorion.net
  5. // @include         http://www.avorion.net/forum/index.php/*
  6. // @include         https://www.avorion.net/forum/index.php/*
  7. // @version         1.0
  8. // @date            2017-02-17
  9. // @author          Morgann Gilroy
  10. // @grant           none
  11. // ==/UserScript==
  12.  
  13. (function css_getclass(name){
  14.   var dss=document.styleSheets;
  15.   for (var i=0;i<dss.length;++i){
  16.     var cr=dss[i].cssRules
  17.     for (var j=0;j<dss[i].cssRules.length;++j) {
  18.       if(dss[i].cssRules[j].selectorText == name) {
  19.         return (dss[i].cssRules[j]);
  20.       }
  21.     }
  22.   }
  23.   return null;
  24. })(".bbc_img").style.maxWidth="100%";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement