Remove Twitter Tracking Garbage

Removes the tracking arguments from the end of Twitter URLs.

  1. // ==UserScript==
  2. // @name Remove Twitter Tracking Garbage
  3. // @namespace https://gf.qytechs.cn
  4. // @version 1.0.1
  5. // @description Removes the tracking arguments from the end of Twitter URLs.
  6. // @author ScocksBox
  7. // @icon https://www.google.com/s2/favicons?domain=twitter.com
  8. // @include https://twitter.com/*
  9. // @license MIT
  10. // @run-at document-start
  11. // @grant none
  12. // ==/UserScript==
  13.  
  14. /* jshint esversion: 6 */
  15.  
  16. let loc = window.location.href;
  17.  
  18. if (loc.match(/\?.+$/)) {
  19. window.history.replaceState(history.state, null, loc.replace(/\?.+$/, ''));
  20. }

QingJ © 2025

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