secure.htm
License
This document is Free, (in both the "beer" and "speech" sense).
The original can be found here: http://www.jfitz.com.
You may use, distribute, or modify this document, any way you see fit, commercially or otherwise,
provided this License, and the following Copyright statement are reproduced unaltered at the top
of the redistributed or modified file.
This document is supplied WITHOUT ANY WARRANTY WHATSOEVER. Use it at your own risk.
Copyright (c) John Fitzgibbon 2002. All rights reserved.
Purpose
When invoked from a context menu in Internet Explorer, this document copies
the top level domain of the current URL to the clipboard. All but the last
two components of the name are replaced by an asterisk. For example:
"http://shopping.yahoo.com/shopping/horribly_dangerous_shopping_script.asp"
would be reduced to "http://*.yahoo.com". This clip is useful for quickly
adding a top level domain to Internet Explorer's list of secure sites. I
find it useful for shopping sites that use dangerous scripting that I have
disabled in the "Internet Zone", but allowed in the "Secure Zone". I
invoke the script, paste the top level domain into the "Secure Zone" list,
do my shopping, then, (optionally), remove the site from the Secure Zone.
Installation
- Save this document in a folder of your choice.
(For example, "c:\scripts\myscript.htm")
- Select Windows "Start", then "Run" and enter "regedit".
(RegEdit allows you to edit your registry.)
**********************************************************
NOTE: Be VERY careful when using RegEdit!! Editing the wrong values
can cause problems running Windows or other programs!!
**********************************************************
- Navigate to the "Internet Explorer" key as follows:
(Note: "keys" are the labels in RegEdit's tree list)
- HKEY_CURRENT_USER
- Software
- Microsoft
- Internet Explorer
- You should see a key inside "Internet Explorer" called "MenuExt".
- If not, add a new key as follows:
- Right-click the "Internet Explorer" key.
- Select "New", then "Key" from the menu options.
- Give the key the name "MenuExt".
- Expand "MenuExt", (double-click it).
- Add a new key with the name you want to appear in the browser's
right-click menu, (for example "Myscript").
- After adding the key, double-click the "Default" value on the right
hand side of the RegEdit screen.
- Change the Default value to the full path to the saved file.
(e.g., "c:\scripts\myscript.htm")
- Next, right-click the new key, (e.g. "Myscript"),
select "New", then "DWORD Value"
- Give the new "DWORD Value" the name "contexts".
- Double-click the new "contexts" value on the right hand side,
and change its value to "ff", (Hexidecimal).
- Exit RegEdit and close all instances of Internet Explorer.
- When you next open Internet Explorer, right-click menus should have
the new option.