Guest User

Untitled

a guest
Feb 27th, 2023
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. javascript: (function() {
  2.     var i;
  3.     window.addEventListener('error', function(e) {
  4.         e.preventDefault();
  5.         e.stopPropagation();
  6.     }, false);
  7.     var handlers = ['copy', 'cut', 'paste', 'beforeunload', 'blur', 'change', 'click', 'contextmenu', 'dblclick', 'focus', 'keydown', 'keypress', 'keyup', 'mousedown', 'mousemove', 'mouseout', 'mouseover', 'mouseup', 'resize', 'scroll', 'DOMNodeInserted', 'DOMNodeRemoved', 'DOMNodeRemovedFromDocument', 'DOMNodeInsertedIntoDocument', 'DOMAttrModified', 'DOMCharacterDataModified', 'DOMElementNameChanged', 'DOMAttributeNameChanged', 'DOMActivate', 'DOMFocusIn', 'DOMFocusOut', 'online', 'offline', 'textInput', 'abort', 'close', 'dragdrop', 'load', 'paint', 'reset', 'select', 'submit', 'unload'];
  8.  
  9.     function stopPropagation(e) {
  10.         e.stopPropagation();
  11.     }
  12.     for (i = 0; i < handlers.length; i++) {
  13.         window.addEventListener(handlers[i], function(e) {
  14.             stopPropagation(e);
  15.         }, true);
  16.     }
  17.     var id = window.setTimeout(function() {}, 0);
  18.     while (id--) {
  19.         window.clearTimeout(id);
  20.     }
  21.     if (window.stop) {
  22.         window.stop();
  23.     }
  24.     throw '';
  25. })()
  26.  
  27. // Single line bookmark
  28. javascript:(function() { var i; window.addEventListener('error', function (e) {e.preventDefault();e.stopPropagation();}, false); var handlers = [ 'copy', 'cut', 'paste', 'beforeunload', 'blur', 'change', 'click', 'contextmenu', 'dblclick', 'focus', 'keydown', 'keypress', 'keyup', 'mousedown', 'mousemove', 'mouseout', 'mouseover', 'mouseup', 'resize', 'scroll', 'DOMNodeInserted', 'DOMNodeRemoved', 'DOMNodeRemovedFromDocument', 'DOMNodeInsertedIntoDocument', 'DOMAttrModified', 'DOMCharacterDataModified', 'DOMElementNameChanged', 'DOMAttributeNameChanged', 'DOMActivate', 'DOMFocusIn', 'DOMFocusOut', 'online', 'offline', 'textInput', 'abort', 'close', 'dragdrop', 'load', 'paint', 'reset', 'select', 'submit', 'unload' ]; function stopPropagation (e) { e.stopPropagation(); } for (i=0; i < handlers.length; i++) { window.addEventListener(handlers[i], function (e) {stopPropagation(e);}, true); } var id = window.setTimeout(function() {}, 0); while (id--) { window.clearTimeout(id); } if (window.stop) { window.stop(); } throw ''; })()
  29.  
Advertisement
Add Comment
Please, Sign In to add comment