Remove website-annoying JavaScript scripts

Source: Internet
Author: User

Recently, I saw some annoying websites that were not allowed. Right-click the menu, and I didn't want to copy them. What is the secret of HTML?
To maintain justice .....

We have written a cracking script:

The method is to change the Javascript you have written into a line |, written in javascript: {alert (eval, note that no double quotation marks are allowed in the code, and then copy to the address bar for execution, you can operate on any object on the currently opened page. The principle and
<A href = "javascript: Alert ('OK');"> the same

There is also a written column below:

  1. Create a hook. js on your computer C: Drive (the content is below)
  2. Then open a webpage. After the webpage is fully opened, enter the following content in the IE Address Bar (enter is not allowed in the middle ):
    In the pop-up window, press F11 to enterJavascript: {alert (eval ("Var J = document. createelement ('script'); J. src = 'C:/hook. js'; J. language = 'javascript '; document. body. appendchild (j); ") ;}< br/>
    Scroll down the web page after running, and you can see the source code of the web page (and Haha at runtime, even if it is encoded as JS), and place it in the hook. how can you change JS? Anything you want to write can include making the banned button available ##$ % #

    "Hook. js" content
    (Break [anti-right-click, anti-select], you can loop through all the frameworks, remove the annoying JS, and view the runtime source code, and make the scroll bar appear)Alert ('hook: '+ window. location); <br/> var killdocumentcount = 0; <br/> function funkilljsdocument (DOC) <br/>{< br/> Doc. body. scroll = 'yes' <br/> var H = Doc. createelement ('hr'); <br/> Doc. body. appendchild (h); <br/> var DL = Doc. createelement ('div '); <br/> DL. innertext = Doc. parentwindow. location; <br/> Doc. body. appendchild (DL); <br/> var d = Doc. createelement ('div '); <br/> D. style. verticalalign = "super"; <br/> D. style. textalign = "Left"; <br/> D. innertext = Doc. body. innerhtml; <br/> Doc. body. appendchild (d); <br/> Doc. oncontextmenu = new function () {return true ;}; <br/> Doc. onselectstart = new function () {return true ;}; <br/> try <br/>{< br/> var Len = Doc. frames. length; <br/> var I = 0; <br/> for (I = 0; I <Len; I ++) <br/>{< br/> funkilljsdocument(doc.frames.item(iyun.doc ument); <br/> killdocumentcount + = 1 <br/>}< br/> catch (E) <br/>{< br/> alert (E. message); <br/>}< br/> killdocumentcount = 1; <br/> funkilljsdocument (document ); <br/> alert ('hook end kill docment: '+ killdocumentcount );
    If you want to loop through all the labels, everyone is a programmer and can modify them by themselves... there are a few alert users who hate to delete them.
    Don't do anything illegal .....
    If reproduced please inform the author, FlashElf@163.com, Qu bin 2006

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.