🏠 Home 

Youtube remove preview from history

Stop video preview on Youtube before it goes to history record.


安装此脚本?
  1. // ==UserScript==
  2. // @name Youtube remove preview from history
  3. // @namespace Youtube
  4. // @version 0.1
  5. // @description Stop video preview on Youtube before it goes to history record.
  6. // @author NightLancerX
  7. // @match https://www.youtube.com/*
  8. // @icon https://www.google.com/s2/favicons?domain=youtube.com
  9. // @license MIT
  10. // @grant none
  11. // @run-at document-end
  12. // @noframes
  13. // ==/UserScript==
  14. (function() {
  15. 'use strict';
  16. var previewPauseInterval = setInterval(function(){
  17. if (document.querySelector('#inline-preview-player video')?.currentTime > 9){
  18. document.querySelector('#inline-preview-player video').pause();
  19. }
  20. }, 450);
  21. })();