greasyfork.org

maximale Fensterbreite auf greasyfork.org nutzen

当前为 2018-07-10 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name greasyfork.org
  3. // @namespace http*://greasyfork.org/*
  4. // @version 0.12
  5. // @description maximale Fensterbreite auf greasyfork.org nutzen
  6. // @author chillchef
  7. // @match http*://greasyfork.org/*
  8. // @match http*://sleazyfork.org/*
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14. try
  15. {
  16. var e = document.getElementsByClassName("width-constraint");
  17. e[0].style.maxWidth = "95%"; //header
  18. e[1].style.maxWidth = "95%"; //content
  19. }catch(exp){}
  20. try{document.getElementById("browse-script-list").style.width = "80%";}catch(exp){} //suchergebnisse;
  21. try{document.getElementById("user-script-list").style.width = "80%";}catch(exp){} //suchergebnisse;
  22. try{document.getElementById("script-list-option-groups").style.width = "17%";}catch(exp){} //sidebar;
  23. })();