Spaces:
Running
Running
Update youtube.html
Browse files- 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>
|