您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This script adds a red dotted border to all nofollow links on all URLs.
// ==UserScript== // @name Nofollow Links - Red Dotted Border // @namespace https://www.gratissaker.com/ // @version 0.3 // @description This script adds a red dotted border to all nofollow links on all URLs. // @match *://*/* // @copyright 2017+, CodeNode - https://www.gratissaker.com/ // @license GNU GPLv3 // ==/UserScript== (function() { var links = document.getElementsByTagName("a"); for (i = 0; i < links.length; i++) { var link = links[i]; var rel = link.rel; if(rel.indexOf("nofollow") !== -1) { link.style["border"] = "dotted red"; link.style["border-width"] = "1px 1px 1px 1px"; } } })();