LoL Pickems Style Script

LoL Pickems Better Style Script

当前为 2021-10-11 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name LoL Pickems Style Script
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description LoL Pickems Better Style Script
  6. // @author Arwinus
  7. // @match http://*/*
  8. // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
  9. // @grant none
  10. // @include *pickem.lolesports.com/pickem/worlds*
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. function addGlobalStyle(css) {
  17. var head, style;
  18. head = document.getElementsByTagName('head')[0];
  19. if (!head) { return; }
  20. style = document.createElement('style');
  21. style.type = 'text/css';
  22. style.innerHTML = css;
  23. head.appendChild(style);
  24. }
  25.  
  26. addGlobalStyle('._3bd38 > div:not(._76f07) { width:25%; float:left; }');
  27. addGlobalStyle('.ed0da {span 1 !important;}');
  28. addGlobalStyle('._608dd {margin-left:16px !important;margin-right:16px !important;}');
  29. addGlobalStyle('._34e74 {span 15 !important;}');
  30. addGlobalStyle('.d7f9e {margin-left:16px !important;}');
  31. addGlobalStyle('.d7f9e ._54dbc {width:200px !important;}');
  32. addGlobalStyle('.d7f9e .ee016 .fe4a8 {margin:0 16px;}');
  33. addGlobalStyle('.d2e66 {display:none !important;}');
  34.  
  35. })();