[Ilugc] Rewriting URL in Firefox

  • From: andyetitmoves@xxxxxxxxx (R.Ramkumar)
  • Date: Wed May 24 17:12:38 2006

    I want to rewrite certain http URL's to https using Firefox. Please tell
me how this can be achieved using Firefox.

do u want to modify the current URL (u have to change window.location
then) or the hyperlinks (document.links)... GreaseMonkey is usually
used for such purposes. That's an extension which allows you to run
javascript code after some pages are loaded. Typically, you would want
to iterate over the set of links, use a RegExp to see if you want to
modify that link (in you case, if it is a http:// link) and set the
href of the link to the https:// version.

it moves on....

-- 
April 1: This is the day upon which we are reminded of
what we are on the other three hundred and sixty-four.
          -- Mark Twain, "Pudd'nhead Wilson's Calendar"

Other related posts: