您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Decode Bing redirect URLs and replace them with the actual URLs.
// ==UserScript== // @name Bing Link Redirect Decoder // @namespace MickyFoley // @version 1.0 // @description Decode Bing redirect URLs and replace them with the actual URLs. // @author MickyFoley // @match *://*.bing.com/* // @license MIT // @grant none // ==/UserScript== (function() { 'use strict'; function decodeBingURL(encodedURL) { // Modify the encoded URL to match Base64 encoding let modifiedEncodedURL = encodedURL.replace('-', '+').replace('_', '/'); // Add padding if necessary let paddingNeeded = modifiedEncodedURL.length % 4; if (paddingNeeded) { modifiedEncodedURL += '='.repeat(4 - paddingNeeded); } // Decode the URL and return return atob(modifiedEncodedURL); } function processLinks() { const links = document.querySelectorAll('a[href*="bing.com/ck/"]'); links.forEach(link => { const urlMatch = link.href.match(/u=([^&]+)/); if (urlMatch && urlMatch[1]) { const decodedURL = decodeBingURL(urlMatch[1].slice(2)); link.href = decodedURL; link.title = "Decoded URL: " + decodedURL; } }); } // Process links when the page loads and also when new content is added processLinks(); new MutationObserver(processLinks).observe(document.body, { childList: true, subtree: true }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址