Adfree Gelbooru

Cleans a popular anime image catalogue website off all current ads and visual disturbances.

  1. // ==UserScript==
  2. // @name Adfree Gelbooru
  3. // @namespace MB48
  4. // @description Cleans a popular anime image catalogue website off all current ads and visual disturbances.
  5. // @author MB48
  6. // @homepage https://userstyles.org/styles/141949
  7. // @run-at document-start
  8. // @version 1.0.2
  9. // @include http://gelbooru.com/*
  10. // @include http://youhate.us/*
  11. // @include https://gelbooru.com/*
  12. // @include https://youhate.us/*
  13. // ==/UserScript==
  14. (function() {var css = "";
  15. if (false || (new RegExp("^(http|https)://(gelbooru|youhate).(com|us)/.*$")).test(document.location.href))
  16. css += [
  17. "#tup, #nup, ins, iframe, .noticeError, .alert{",
  18. " display: none!important;",
  19. " }",
  20. " #paginater > :not(.pagination){",
  21. " display: none;",
  22. " }",
  23. " ",
  24. " a > .content{",
  25. " display: none!important;",
  26. " }",
  27. " .content > a{",
  28. " display: none!important;",
  29. " }",
  30. " ",
  31. " center > a{",
  32. " display:none!important;",
  33. " }",
  34. " a[target=\"_blank\"]{",
  35. " display: none!important;",
  36. " }",
  37. " .content{",
  38. " margin-top: -10px!important;",
  39. " }",
  40. " .aContain, .hidden-sm{",
  41. " display:none!important;",
  42. " }",
  43. " ",
  44. " /*cosmetics*/",
  45. " .pagination {",
  46. " margin-bottom: 30px;",
  47. " }",
  48. " ",
  49. " div#paginater {",
  50. " font-size: 16px!important;",
  51. " }",
  52. " li.current-page a{",
  53. " background: linear-gradient(#004FD5, #1974E5);",
  54. " color: #fff;",
  55. " }",
  56. " ",
  57. " #tag-list{",
  58. " margin-top: 20px!important;",
  59. " }"
  60. ].join("\n");
  61. if (typeof GM_addStyle != "undefined") {
  62. GM_addStyle(css);
  63. } else if (typeof PRO_addStyle != "undefined") {
  64. PRO_addStyle(css);
  65. } else if (typeof addStyle != "undefined") {
  66. addStyle(css);
  67. } else {
  68. var node = document.createElement("style");
  69. node.type = "text/css";
  70. node.appendChild(document.createTextNode(css));
  71. var heads = document.getElementsByTagName("head");
  72. if (heads.length > 0) {
  73. heads[0].appendChild(node);
  74. } else {
  75. // no head yet, stick it whereever
  76. document.documentElement.appendChild(node);
  77. }
  78. }
  79. })();