QQ链接自动跳转

如题,自动跳转QQ、QQ邮箱的“非官方页面”外链

  1. // ==UserScript==
  2. // @name QQ链接自动跳转
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description 如题,自动跳转QQ、QQ邮箱的“非官方页面”外链
  6. // @author geigei717
  7. // @license MIT
  8. // @match https://c.pc.qq.com/middlem.html*
  9. // @match https://mail.qq.com/cgi-bin/readtemplate?t=safety&check=false&gourl=*
  10. // @icon https://greasyfork.s3.us-east-2.amazonaws.com/fc67t00gsk98w7pbhs97xr94g1hl
  11. // @require https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js
  12. // @grant none
  13. // @run-at document-body
  14. // ==/UserScript==
  15.  
  16. (function() {
  17. var url;
  18. //QQ跳转外链
  19. if(/(https:\/\/c\.pc\.qq\.com\/middlem\.html.*)/.test(window.location.href )){
  20. if( $('section .ui-title').text()=='当前网页非官方页面'){
  21. url = $("#url").text()
  22. window.location.assign(url)
  23. }
  24. }
  25. //QQ邮箱跳转外链
  26. if( /(https:\/\/mail\.qq\.com\/cgi-bin\/readtemplate\?t=safety\&check=false\&gourl=.*)/.test(window.location.href ) ){
  27. if( $(".remind_title").text()=='您将要访问:'){
  28. url = $(".safety-url").text()
  29. window.location.assign(url)
  30. }
  31. }
  32. })();

QingJ © 2025

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