Aichatbot12321 commited on
Commit
1237add
·
verified ·
1 Parent(s): 3b76bc4

Update youtube.html

Browse files
Files changed (1) hide show
  1. youtube.html +7 -0
youtube.html CHANGED
@@ -1132,6 +1132,13 @@ window.addEventListener('DOMContentLoaded', () => {
1132
  }, 150);
1133
  }
1134
  }
 
 
 
 
 
 
 
1135
  });
1136
  </script>
1137
  </body>
 
1132
  }, 150);
1133
  }
1134
  }
1135
+ });
1136
+ // NUKE THE NATIVE RIGHT-CLICK / LONG-PRESS MENU GLOBALLY
1137
+ window.addEventListener('contextmenu', function (e) {
1138
+ // Only allow the menu if the user is holding down on the search bar to paste a link!
1139
+ if (e.target.tagName !== 'INPUT') {
1140
+ e.preventDefault();
1141
+ }
1142
  });
1143
  </script>
1144
  </body>