WAP贴吧重定向

把贴吧重定向为WAP版

  1. // ==UserScript==
  2. // @name WAP贴吧重定向
  3. // @namespace https://gf.qytechs.cn/zh-CN/scripts/515589
  4. // @version 0.1.6
  5. // @description 把贴吧重定向为WAP版
  6. // @author f59375443
  7. // @match *://*.baidu.com/*
  8. // @match *://www.tieba.com/*
  9. // @match *://jump2.bdimg.com/*
  10. // @match *://uf9kyh.smartapps.cn/*
  11. // @match *://tieba.baidu.com/p/*
  12. // @license MIT
  13. // @grant none
  14. // @run-at document-start
  15. // ==/UserScript==
  16.  
  17. var url = window.location.href;
  18. var match = url.match(/\/p\/(\d+)/);
  19. if (match) {
  20. var pageNumber = match[1];
  21. // 生成重定向URL
  22. var redirectUrl = "https://tieba.baidu.com/mo/q---332AA4856294550118AD9656FC7BE%3AFG%3D1--1-3-0--2--wapp_1699082824467_956/m?kz=" + pageNumber;
  23. // 重定向
  24. window.location.href = redirectUrl;
  25. }

QingJ © 2025

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