您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
京东手机版跳转电脑版
// ==UserScript== // @name 13 京东手机版跳转电脑版 // @namespace 使用说明网址 找插件网 // @version 1.0 // @description 京东手机版跳转电脑版 // @author 老码(老码农) // @match *://*/* // @grant none // ==/UserScript== (function () { 'use strict'; var type = 2;//1 如果电脑端,转手机端;2 手机端转电脑端 var lhref = location.href; if (type == 1) { if (!lhref.includes('.m.')) { var newurl = lhref.replace("https://item.jd.com/", "https://item.m.jd.com/product/"); location.href = newurl; } } if (type == 2) { if (lhref.includes('.m.')) { var newurl = lhref.replace("https://item.m.jd.com/product/", "https://item.jd.com/"); location.href = newurl; } } })();