Picarto.tv: Fix hidden/cropped thumbnails

Fixes hidden/cropped thumbnails in the online following sidebar on the new (Sep/2017) Picarto.tv layout. Should be compatible with other styles as it only changes 3 values (moved down, left, and made visible).

目前为 2017-09-07 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Picarto.tv: Fix hidden/cropped thumbnails
  3. // @namespace http://userstyles.org
  4. // @description Fixes hidden/cropped thumbnails in the online following sidebar on the new (Sep/2017) Picarto.tv layout. Should be compatible with other styles as it only changes 3 values (moved down, left, and made visible).
  5. // @author JezuzX
  6. // @homepage https://userstyles.org/styles/147438
  7. // @include https://picarto.tv/communities/explore
  8. // @run-at document-start
  9. // @version 0.20170906020832
  10. // ==/UserScript==
  11. (function() {var css = "#followTseContent {overflow: visible !important;}.followPreview { left: -219px !important; top: 18px !important; }";
  12. if (typeof GM_addStyle != "undefined") {
  13. GM_addStyle(css);
  14. } else if (typeof PRO_addStyle != "undefined") {
  15. PRO_addStyle(css);
  16. } else if (typeof addStyle != "undefined") {
  17. addStyle(css);
  18. } else {
  19. var node = document.createElement("style");
  20. node.type = "text/css";
  21. node.appendChild(document.createTextNode(css));
  22. var heads = document.getElementsByTagName("head");
  23. if (heads.length > 0) {
  24. heads[0].appendChild(node);
  25. } else {
  26. // no head yet, stick it whereever
  27. document.documentElement.appendChild(node);
  28. }
  29. }
  30. })();