Friday, 14 March 2014

DOM destroyer bookmarklet



Drag the link below to your bookmarks bar and use this bookmarklet to "destroy" other sites :D
DOM Destroyer

Source
document.body.appendChild( document.createElement ('script' )).src = ' https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js '  ;
document.body.appendChild( document.createElement ('script' )).src = ' https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js ';

setTimeout(initDomDestroyer,1000 );

function initDomDestroyer(){
    $(document).find("*").andSelf().unbind();
    $("*" ).removeAttr("onclick" );
   
    $ ('iframe').each(function (index, value) { $(this ).remove (); }  );
    
    
    document.body.style. cursor = 'crosshair';

    $ (document).click( function (e ) {
        e.preventDefault ();
        $(e.target).hide( "explode" ,
                     {pieces: 4 }, 500 );
        $(e.target).remove();
       
     });
}



No comments:

Post a Comment