Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 '';
- })()
- // Single line bookmark
- 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 ''; })()
Advertisement
Add Comment
Please, Sign In to add comment