您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
受不了其乐在轮播图里插育碧的外链广告,做个指示器免得误点。
当前为
// ==UserScript== // @name keylol ad pointer/其乐轮播图广告指示器 // @namespace http://tampermonkey.net/ // @version 0.1 // @description 受不了其乐在轮播图里插育碧的外链广告,做个指示器免得误点。 // @description point out the AD in keylol homepage slideshow. // @author [email protected] // @match https://keylol.com/ // @icon https://www.google.com/s2/favicons?sz=64&domain=keylol.com // @grant none // @license GPLv3 // ==/UserScript== (function() { 'use strict'; document.styleSheets[document.styleSheets.length - 1].insertRule( `.ubi_warn { position: absolute; bottom: 1em; left: 0px; color: red; font-weight: bolder; font-size: 2em; margin-left: 1em; }`) Array.from(document.querySelectorAll('.slideshow a')) .filter(a_el => !a_el.href.includes('keylol.com')) .forEach(a_el => a_el.insertAdjacentHTML('afterend', '<span class="ubi_warn">广告</span>')) })();