您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
try to take over the world!
// ==UserScript== // @name 知乎移动页变网页 // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author cmmdwl // @match *://*.zhihu.com/tardis/* // @grant none // ==/UserScript== (function() { var url = location.href; //声明变量url if (url.indexOf("/tardis/sogou/qus/") > 0) {//如果url里面搜索到了/tardis就继续执行 var url1 = url.replace("/tardis/sogou/qus/", "/question/"); //替换掉tardis var url2 = url1.slice(url.indexOf("/tardis/sogou/qus/") + 1).split('/') // console.log(location.protocol+"//www.v2ex.com/t/"+url2[1]) console.log("url 1 ok "+url1); console.log("url 2 ok "+url2); location.replace(url1); //直接输出 url1 结束了 console.log(location.protocol+"/www.zhihu.com/"+url2[2]); } // Your code here... })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址