您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Replaces mobile links on web pages with their desktop counterpart.
当前为
// ==UserScript== // @name Mobile Link Replacer // @namespace // @version 0.6.0 // @description Replaces mobile links on web pages with their desktop counterpart. // @author Spencer Ayers-Hale // @license GPL-3.0-or-later; http://www.gnu.org/licenses/gpl-3.0.txt // @match https://*/* // @match http://*/* // @exclude https://www.reddit.com/chat/minimize // @exclude https://www.craigslist.org/static/www/localStorage* // @exclude https://auth.discogs.com/* // @exclude https://www.youtube.com/embed/* // @exclude https://widget.pico.tools/* // @exclude https://m.stripe.network/* // @exclude *content.s3.amazonaws.com/* // ==/UserScript== (function() { 'use strict'; var num = document.getElementsByTagName("a").length; //number of links on page var cnt = 0; //current link number var newLink; while(cnt < num){ const link = document.getElementsByTagName("a")[cnt].href; //get original link //find and replace //Wikipedia newLink = link.replaceAll(/m.wikipedia/gi, 'wikipedia'); //Facebook newLink = newLink.replaceAll(/m.facebook/gi, 'facebook'); //Twitter newLink = newLink.replaceAll(/mobile.twitter/gi, 'twitter'); //IMDB newLink = newLink.replaceAll(/m.imdb/gi, 'imdb'); //CBS Local if (newLink.indexOf("cbslocal.com")){ newLink = newLink.replaceAll(/amp/gi, ''); } document.getElementsByTagName("a")[cnt].href=newLink; //write new link to page cnt++; } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址