Youtube fix share url

Remove tracking parametr "si" from video link from share button

目前为 2024-03-11 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Youtube fix share url
  3. // @namespace http://tampermonkey.net/
  4. // @version 1
  5. // @description Remove tracking parametr "si" from video link from share button
  6. // @author SergoZar
  7. // @match https://www.youtube.com/watch*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
  9. // @license GPLv3
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14. function fix_url(){
  15. var share_url = document.getElementById("share-url");
  16. if(share_url){
  17. var url = new URL(share_url.value);
  18. url.searchParams.delete("si");
  19. share_url.value = url.toString();
  20. }
  21. }
  22.  
  23. setInterval(fix_url, 500);
  24.  
  25. // Your code here...
  26. })();