|
Script Killer Favelet
XML Menu Suite
Build powerful, client-side DHTML menus using XML for data and CSS for style. No JavaScript data! No having to place list elements on every single page of your website! No plug-ins!
Script Killer is a Favelet which disables all JavaScript code in a web page. Executing Script Killer will prevent web pages from doing annoying and malicious things with JavaScript such as disabling you from using the right mouse button or spawning multiple pop-up windows. Note that if you test this favelet out on this web page, you will disable the JavaScript for this page. This will disable the menu and cause others things not to work properly. Favelet link is below
NOTE: If you don't know how
to configure a favelet with your browser, we provide help.
Browser Compatibility Internet Explorer 5.0+. About this favelet
The Script Killer Favelet disables all JavaScript code in a web page. Executing this favelet will prevent web pages from doing annoying and malicious things with JavaScript such as disabling the right mouse button or spawning multiple pop-up windows. What it doesn't do
Usage
Script Killer doesn't wait until the page is completely loaded before it starts purging JavaScript. This is adequate for most web pages, but for larger web pages, executing Script Killer while the page is initially loading may cause the page to load improperly or Script Killer to work improperly. If this happens, simply reload the page by pressing the Refresh button, wait until the page appears to have more completely loaded, and execute Script Killer again. Side-effects
Script Killer discards all information outside of the the <html> block of the page it is executed on. This may cause side-effects if there is a <!DOCTYPE> tag or if the page is XML. Also, Script Killer doesn't discriminate between "bad" JavaScript that you are trying to get rid of, and "good" JavaScript that does something useful such as performing rollovers. As a result, your web page may not behave properly after Script Killer is executed on it. If you are dissatisfied with the way the web page is functioning after executing Script Killer, simply reload the page by pressing the Refresh button. This will reverse the effects of Script Killer. Our mission
We adore spawning new windows from hyperlinks using the right mouse button. We are right-click junkies. For this reason, we despise web pages that disable us from using the right mouse button. Paranoid idiots create web pages like this because they are under the illusion that this somehow protects their property. It doesn't. The user can always view the source code using the browser's menu or, in Internet Explorer, save the entire contents of the web page locally. What disabling the right mouse click really does is annoy the hell out of people like us because we've become dependent on the right mouse button — not as a means to steal, but to navigate. There is other great stuff in the context menu. Shame on these people for denying it to us. Shame. Shame. If you view Script Killer's source code, you will see that it takes no prisoners. We are not 100% certain of this, but we believe that aside from possibly employing frames, there is no way for a page to continue to execute JavaScript after Script Killer has been executed. We made Script Killer more aggressive than is currently necessary. This is because we wanted to avoid an arms race with exploitative developers. We wanted a quick and decisive victory against those who abuse JavaScript. If anybody finds a way for JavaScript to live after Script Killer has been executed, please do us and humanity a favor by letting us know. We believe that the entire concept of enabling programmers to disable or replace the context menu is poor engineering on the part of the people responsible for bringing us JavaScript. This is because the context menu contains system functionality that users rely on. There's nothing wrong with allowing programmers to add to the context menu, but we don't think they should be allowed to modify what's already there. After you've installed Script Killer, here are some places you can test it out on.
Source code
We're providing this favelet's source code for educational purposes. Note that the source code is copyrighted. We do not grant you the right to modify or distribute it.
|