Download Source Code/static/security.js from ameythakur/Depression-Detection-Using-Tweets: direct link, hf CLI and curl.
- Browser
- Download file 885 Bytes
-
https://huggingface.co/spaces/ameythakur/Depression-Detection-Using-Tweets/resolve/main/Source%20Code/static/security.js
- Command line
-
hf download 'hf://spaces/ameythakur/Depression-Detection-Using-Tweets/Source Code/static/security.js'
-
curl -L -o security.js https://huggingface.co/spaces/ameythakur/Depression-Detection-Using-Tweets/resolve/main/Source%20Code/static/security.js
885 Bytes
| /** | |
| * security.js | |
| * Implements low-level security features and Easter eggs. | |
| */ | |
| // Disable Right Click | |
| document.addEventListener('contextmenu', function (e) { | |
| e.preventDefault(); | |
| }); | |
| // Disable F12, Ctrl+Shift+I, Ctrl+Shift+J, Ctrl+U | |
| document.onkeydown = function (e) { | |
| if (e.keyCode == 123) { | |
| return false; | |
| } | |
| if (e.ctrlKey && e.shiftKey && (e.keyCode == 'I'.charCodeAt(0) || e.keyCode == 'J'.charCodeAt(0))) { | |
| return false; | |
| } | |
| if (e.ctrlKey && e.keyCode == 'U'.charCodeAt(0)) { | |
| return false; | |
| } | |
| } | |
| // Easter Egg - Console Warning | |
| console.log("%cStop snooping around!", "color: red; font-family: sans-serif; font-size: 4.5em; font-weight: bolder; text-shadow: #000 1px 1px;"); | |
| console.log("%cThis is a project by Amey Thakur & Mega Satish.", "color: #1daeff; font-family: sans-serif; font-size: 1.5em;"); | |