京东强制PC版页面

访问到移动版京东页面时自动转到对应的PC版页面

  1. // ==UserScript==
  2. // @name 京东强制PC版页面
  3. // @namespace https://github.com/lihaoyun6/jd2pc
  4. // @version 0.1.3
  5. // @description 访问到移动版京东页面时自动转到对应的PC版页面
  6. // @author lihaoyun6
  7. // @license MIT
  8. // @match *://item.m.jd.com/*
  9. // @run-at document-start
  10. // @grant none
  11. // @icon https://www.jd.com/favicon.ico
  12. // ==/UserScript==
  13. let JDMobileObj = {
  14. init () {
  15. let curr_href = location.href;
  16. let cat_arr = curr_href.replace(/item.m.jd.com\/product/g, "item.jd.com");
  17. location.href = cat_arr; // done !
  18. }
  19. };
  20.  
  21. JDMobileObj.init();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址