Javascript in your Firefox Bookmarks
Posted by vonnagy on Feb 13 2007, in Javascript in your Firefox Bookmarks, zegarkus
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:
- On anywebpage, click Ctl-D to bookmark the page
- Find that bookmark in your list, right click -> properties
- Delete the location, paste the Javascript code
- 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′;