pc上从微信打开taobao等页面 还要手动复制粘贴,表示不爽
< Feedback on pc 微信跳转页面直接打开
脚本更新优化
// ==UserScript== // @name pc 微信跳转页面直接打开 // @namespace https://greasyfork.org/zh-CN // @version 2017.08.16 // @author wangruijie // @modify Heier // @description pc上从微信打开taobao等页面 还要手动复制粘贴,表示不爽 // @include https://support.weixin.qq.com/cgi-bin/mmsupport-bin/readtemplate* // @include https://weixin110.qq.com/cgi-bin/mmspamsupport-bin/* // @grant none // @require https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js // ==/UserScript== function run () { // 淘宝链接跳转 var url1 = 'https://support.weixin.qq.com/cgi-bin/mmsupport-bin'; var redirectUrl1 = $('div .url').text(); // 其它链接跳转 var url2 = 'https://weixin110.qq.com/cgi-bin/mmspamsupport-bin'; var redirectUrl2 = $("#url p").text(); var uri = window.location.href; // console.info(uri); if (0 == uri.indexOf(url1)) { var redirectUrl = redirectUrl1; } else { var redirectUrl = redirectUrl2; } // console.info(redirectUrl); window.location.href= redirectUrl; } run();
优化点:
Sign in to post a reply.
脚本更新优化
优化点: