Friday, July 3, 2009

Javascript in your Firefox Bookmarks

originally found here: http://zegarkus.com/2007/02/13/javascript-in-your-firefox-bookmarks/

You save alot of time javascript links as a bookmark i in your firefox browser instead of copy/pasting it into the url.

For instance, you can copy and paste the following javascript in the url location bar:
javascript:document.body.contentEditable=’true’; document.designMode=’on’; void 0

This will allow to you edit any web page, live! Its handy for making modifications, taking screenshots and sending to your designer.

However, you can create shortcut via firefox bookmark instead of copying and pasting:

  1. On anywebpage, click Ctl-D to bookmark the page
  2. Find that bookmark in your list, right click -> properties
  3. Delete the location, paste the Javascript code
  4. Give it a good name and description too

Now you have your javascript link bookmarked. You can use javascript like this to speed up your work flow. For instance, redirects can be quite handy (i also use javascript to pass certain variables and test referrers quickly where php can’t be used readily), eg:

javascript:self.parent.location=’http://testingdomain.com/ClearCache/?stop=1′;

No comments:

Post a Comment