🏠 返回首頁 

Greasy Fork is available in English.

####重定向

屏蔽链接自动跳转,目前支持QQ

  1. // ==UserScript==
  2. // @name ####重定向
  3. // @namespace https://github.com/Ahaochan/Tampermonkey
  4. // @version 0.0.2
  5. // @description 屏蔽链接自动跳转,目前支持QQ
  6. // @author Ahaochan
  7. // @include http*://c.pc.qq.com/middlem.html?pfurl=*
  8. // @license GPL-3.0
  9. // @supportURL https://github.com/Ahaochan/Tampermonkey
  10. // @require https://cdn.bootcdn.net/ajax/libs/jquery/2.2.4/jquery.min.js
  11. // @run-at document-end
  12. // ==/UserScript==
  13. (function ($) {
  14. 'use strict';
  15. const url = location.href;
  16. const urlObject = new URL(url);
  17. const params = new URLSearchParams(urlObject.search);
  18. // QQ屏蔽
  19. const pfurl = params.get('pfurl');
  20. if (pfurl) {
  21. location.href = decodeURIComponent(pfurl);
  22. }
  23. })(jQuery);