| url bookmarklets |
|
The following JavaScript functions are a short-cut for repetitive
hand-editing of URLs. Don't click on these links: instead, pop up
the context menu (right-click or option-click) and bookmark the
links directly.
I put these bookmarks in a sub-menu called "URL" that sits next
to my Bookmarks menu on the toolbar, as pictured to the right. You
do that by making a new folder in your bookmarks, then dragging that
folder to the toolbar.
|
|
||
| [ up ] |
If the URL contains a "?" search term, this will remove it.
Otherwise, it will take off the part of the URL after the
last "/". So, when executed successively, it will load the
pages:
http://.../AA/BB/CC.html http://.../AA/BB/ http://.../AA/ etc. |
||
| [ + ] |
If the URL contains a number, this increments that number
(being careful to pad with the same number of leading zeros.)
So, when executed successively, it will load the pages:
http://.../img_0999.jpg http://.../img_1000.jpg http://.../img_1001.jpg etc. |
||
| [ - ] |
If the URL contains a number, this decrements the number, as above.
|
||
| LJ style=mine |
Append &style=mine to
LiveJournal URLs:
this will cause the page to display in your LJ style
instead of in whatever eyeball-searing layout the page's
author has chosen.
|
||
| Flickr Image |
Sometimes Flickr pages try to
prevent you from copying or saving images; they do this by using
CSS to overlay a transparent "spaceball.gif" image over the main
image, so your copy/drag hits that instead. This bookmarklet
extracts the real image from the page and loads it into
the window by itself.
|
||
| YouTube Verify |
If a YouTube URL doesn't
work because you aren't logged in and the content might be
"inappropriate for some users", this bookmarklet will show you
the video anyway, and let you decide for yourself what the
weasel-word "appropriate" means.
|
||