简书直接跳转

使简书内页的网址直接跳转,而不是让用户手动复制链接

  1. // ==UserScript==
  2. // @name 简书直接跳转
  3. // @namespace github.com/axiref?to-jianshu
  4. // @version 1.0
  5. // @description 使简书内页的网址直接跳转,而不是让用户手动复制链接
  6. // @author axiref
  7. // @match https://www.jianshu.com/*
  8. // ==/UserScript==
  9.  
  10. (function() {
  11. 'use strict';
  12. let tags = document.getElementsByTagName("a")
  13. for (let tag of tags) {
  14. let u = tag.href
  15. if (u.indexOf("jianshu.com/go?to=") !== -1) {
  16. let index = u.search(/\?to=/) + 4;
  17. let url = decodeURIComponent(u.substring(index));
  18. tag.href = url;
  19. }
  20. }
  21. })();

QingJ © 2025

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