Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. function secure() {
  2. document.onkeypress = function (e) {
  3. e = e || window.event;
  4. if (e.keyCode === 123) {
  5. return false
  6. }
  7. };
  8. document.onmousedown = function (e) {
  9. e = e || window.event;
  10. if (e.keyCode === 123) {
  11. return false
  12. }
  13. };
  14. document.onkeydown = function (e) {
  15. e = e || window.event;
  16. if (e.keyCode === 123) {
  17. return false
  18. }
  19. };
  20. document.oncontextmenu = t;
  21. document.onmouseup = t;
  22. var n = false;
  23. var r = false;
  24. var i = false;
  25. window.onkeyup = function (e) {
  26. if (e.which === 17) n = false
  27. };
  28. window.onkeydown = function (e) {
  29. if (e.which === 17) n = true;
  30. if ((e.which === 85 || e.which === 65 || e.which === 88 || e.which === 67 || e.which === 86 || e.which === 83) && n === true) {
  31. return false
  32. }
  33. };
  34. window.onkeyup = function (e) {
  35. if (e.which === 93 || e.which === 91 || e.which === 224) i = false
  36. };
  37. window.onkeydown = function (e) {
  38. if (e.which === 17 || e.which === 93 || e.which === 91 || e.which === 224) i = true;
  39. if ((e.which === 85 || e.which === 65 || e.which === 88 || e.which === 67 || e.which === 86 || e.which === 83) && i === true) {
  40. return false
  41. }
  42. };
  43. document.ondragstart = t;
  44. e("a").each(function (t, n) {
  45. var r = n.href;
  46. if (/\.(jpg|png|gif)$/.test(r)) {
  47. e(this).prop("href", "#")
  48. }
  49. })
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement