Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style>
- html {
- overflow: scroll;
- overflow-x: hidden;
- }
- ::-webkit-scrollbar {
- width: 0;
- background: transparent;
- }
- ::-webkit-scrollbar-thumb {
- background: transparent;
- }
- </style>
- <!DOCTYPE html>
- <html>
- <head>
- <body oncopy="return false;" oncut="return false;" onpast="return false;" oncontextmenu="return false;">
- </body>
- </html>
- <script>
- document.addEventListener("keydown", (e) => {
- // USE THIS TO DISABLE CONTROL AND ALL FUNCTION KEYS
- // if (e.ctrlKey || (e.keyCode>=112 && e.keyCode<=123)) {
- // THIS WILL ONLY DISABLE CONTROL AND F12
- if (e.ctrlKey || e.keyCode==123) {
- e.stopPropagation();
- e.preventDefault();
- }
- });
- </script>
- <style>
- ::-moz-selection {
- color: #9F7661;
- background: #transparent;
- }
- ::selection {
- color: #9F7661;
- background: #transparent;
- }
- </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement