Wikia ad skipper

Skips the "skip this ad" screen when leaving wikia.com to an external page

  1. // ==UserScript==
  2. // @name Wikia ad skipper
  3. // @namespace https://github.com/AlorelUserscripts/wikia-remove-intersitial-modal
  4. // @homepage https://github.com/AlorelUserscripts/wikia-remove-intersitial-modal
  5. // @supportURL https://github.com/AlorelUserscripts/wikia-remove-intersitial-modal/issues
  6. // @author Alorel <a.molcanovas@gmail.com>
  7. // @version 1.0.3
  8. // @description Skips the "skip this ad" screen when leaving wikia.com to an external page
  9. // @author Alorel <a.molcanovas@gmail.com>
  10. // @icon https://cdn.jsdelivr.net/gh/AlorelUserscripts/wikia-remove-intersitial-modal@1.0/ico.png
  11. // @include http*://*.wikia.com*
  12. // @grant GM_openInTab
  13. // @run-at document-end
  14. // @license LGPL-2.1
  15. // ==/UserScript==
  16.  
  17. (function () {
  18. 'use strict';
  19. var main = function () {
  20. (function () {
  21. var elements = document.querySelectorAll([
  22. ".exitstitial",
  23. ".external",
  24. ".exitw"
  25. ].join(",")),
  26. callback = function (e) {
  27. e.preventDefault();
  28. GM_openInTab(this.getAttribute("href"), e.ctrlKey || 1 === e.button);
  29. },
  30. i = 0;
  31. for (; i < elements.length; i++) {
  32. elements[i].addEventListener("click", callback);
  33. }
  34. })();
  35.  
  36. (function () {
  37. var css = document.createElement("style");
  38. css.innerText = [
  39. ".blackout",
  40. "#ExitstitialInfobox"
  41. ].join(",") + '{display:none!important}';
  42. document.body.appendChild(css);
  43. })();
  44. };
  45.  
  46. if ('loading' !== document.readyState) {
  47. main();
  48. } else {
  49. document.addEventListener('DOMContentLoaded', main);
  50. }
  51. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址