您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Fixes encoded ampersands on Wayback Machine's captures graph
当前为
- // ==UserScript==
- // @name Wayback Machine Toolbar Link Fixer
- // @namespace DoomTay
- // @description Fixes encoded ampersands on Wayback Machine's captures graph
- // @version 1.0.0
- // @include http://web.archive.org/web/*
- // @include https://web.archive.org/web/*
- // ==/UserScript==
- var toolbarNav = document.getElementById("wm-graph-anchor");
- function fixLink()
- {
- while(toolbarNav.href.indexOf("&") > -1) toolbarNav.href = toolbarNav.href.replace("&","&");
- }
- fixLink();
- var observer = new MutationObserver(function(mutations) {
- mutations.forEach(function(mutation) {
- if(mutation.type == "attributes") fixLink();
- });
- });
- var config = { attributes: true, childList: true, characterData: true, subtree: true, attributeFilter: ["href"] };
- observer.observe(toolbarNav, config);