您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Skips the "skip this ad" screen when leaving wikia.com to an external page
当前为
- // ==UserScript==
- // @name Wikia ad skipper
- // @namespace https://github.com/AlorelUserscripts/wikia-remove-intersitial-modal
- // @homepage https://github.com/AlorelUserscripts/wikia-remove-intersitial-modal
- // @supportURL https://github.com/AlorelUserscripts/wikia-remove-intersitial-modal/issues
- // @author Alorel <a.molcanovas@gmail.com>
- // @version 1.0.2
- // @description Skips the "skip this ad" screen when leaving wikia.com to an external page
- // @author Alorel <a.molcanovas@gmail.com>
- // @icon https://cdn.jsdelivr.net/gh/AlorelUserscripts/wikia-remove-intersitial-modal@1.0/ico.png
- // @include http*://*.wikia.com*
- // @grant GM_openInTab
- // @run-at document-end
- // @license LGPL-2.1
- // ==/UserScript==
- (function () {
- 'use strict';
- var main = function () {
- (function () {
- var elements = document.querySelectorAll([
- ".exitstitial",
- ".external",
- ".exitw"
- ].join(",")),
- callback = function (e) {
- e.preventDefault();
- GM_openInTab(this.getAttribute("href"), e.ctrlKey || 1 === e.button);
- },
- i = 0;
- for (; i < elements.length; i++) {
- elements[i].addEventListener("click", callback);
- }
- })();
- (function () {
- var css = document.createElement("style");
- css.innerText = [
- ".blackout",
- "#ExitstitialInfobox"
- ].join(",") + '{display:none!important}';
- document.body.appendChild(css);
- })();
- };
- if ('loading' !== document.readyState) {
- main();
- } else {
- document.addEventListener('DOMContentLoaded', main);
- }
- })();