Advertisement
Guest User

Untitled

a guest
Oct 30th, 2021
458
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         YouTube script
  3. // @namespace    http://tampermonkey.net/
  4. // @version      0.1
  5. // @description  try to take over the world!
  6. // @author       You
  7. // @match        https://www.youtube.com/*
  8. // @icon         https://www.google.com/s2/favicons?domain=youtube.com
  9. // @run-at       document-start
  10. // @grant        none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14.     'use strict';
  15.     //document.addEventListener('dblclick', (e) => { e.stopImmediatePropagation(); e.stopPropagation(); e.preventDefault();}, true)
  16.  
  17.  
  18. window.addEventListener("load", function() {
  19.     setTimeout(()=>{
  20.  
  21.     const container = document.querySelector('ytd-page-manager #player-container');
  22.         console.log(container)
  23.     container.addEventListener('pointerdown', (e) =>
  24.                                {
  25.         console.log(e.currentTarget);
  26.         e.stopImmediatePropagation();
  27.     }, true)
  28.  
  29.  
  30.  
  31.     }, 500)
  32.  
  33. });
  34.  
  35. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement