知乎简书微博外链不停转

try to take over the world!

  1. // ==UserScript==
  2. // @name 知乎简书微博外链不停转
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1.2
  5. // @description try to take over the world!
  6. // @author a3VjZWNl
  7. // @match https://link.zhihu.com/?target=*
  8. // @match https://www.jianshu.com/go-wild?*
  9. // @match http://t.cn/*
  10. // @grant none
  11. // @license GPL-3.0
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16. let href = window.location.href
  17. if (href.indexOf('https://link.zhihu.com/?target=') != -1) {
  18. // close zhihu login page when not logged
  19. window.onload = () => {
  20. let btn = document.querySelector('a.button')
  21. if (btn) btn.click()
  22. return
  23. }
  24. }
  25. if (href.indexOf('https://www.jianshu.com/go-wild?') != -1) {
  26. // close zhihu login page when not logged
  27. window.onload = () => {
  28. window.location.href = document.querySelector("textarea").value;
  29. }
  30. }
  31. if (href.indexOf('http://t.cn/') != -1) {
  32. // close zhihu login page when not logged
  33. window.onload = () => {
  34. window.location.href = document.querySelector("p.link").innerText;
  35. }
  36. }
  37. //QQ邮箱不进行匹配为了安全
  38. })();

QingJ © 2025

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