您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
if url contains a target, the anchor in the site will be highlighted
当前为
// ==UserScript== // @name highlight_anchor_target // @namespace * // @include * // @version 0.1 // @description if url contains a target, the anchor in the site will be highlighted // @author lual // @grant GM_addStyle // @grant GM_getResourceURL // ==/UserScript== // // Some URIs refer to a location within a document. // This kind of URI ends with "#" followed by an anchor identifier (called the fragment identifier). // This script will highligt the anchor in the document. // // For general info and as an example for using this script - see... // http://www.w3.org/TR/html401/intro/intro.html#fragment-uri // // // changes: 2011-03-17 initial // 2017-11-01 publish on greasyfork ///////////////////////////////////////////////////////////////////////////////////////////////////////// // fallback (Chrome lacks GM functions) //if( typeof GM_addStyle != 'function' ) { // function GM_addStyle(css) { // var head, style; // head = document.getElementsByTagName('head')[0]; // if( !head ){ return; } // style = document.createElement('style'); // style.type = 'text/css'; // style.innerHTML = css; // head.appendChild(style); // } //} (function() { 'use strict'; //GM_addStyle(":target { color: black !important; background-color: #78F48F !important; border: 1px solid #27A53F !important; border-bottom: 1px solid #1B6329 !important; border-right: 1px solid #1B6329 !important; -moz-border-radius: 3px 3px 3px 3px !important; }"); GM_addStyle(` :target { color: black !important; background-color: #78F48F !important; border: 1px solid #27A53F !important; border-bottom: 1px solid #1B6329 !important; border-right: 1px solid #1B6329 !important; -moz-border-radius: 3px 3px 3px 3px !important; }`); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址