Page_Bookmarker

By Descriptor Last update Mar 18, 2008 — Installed 553 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 8 posts, 4 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
ekbworldwide Scriptwright

An idea

I think your script could allow people to make their own anchors on pretty much any page whatsoever that were 'permanent' and 'bookmarkable' via ordinary urls (as opposed to bookmarklets).

I got the idea from Wikipedia and this script:
Go To – Userscripts.org
http://userscripts.org/scripts/show/6413

example

On any Wikipedia page - all of the links in the "Contents" box are actually anchors that can be bookmarked.

Guitar - Wikipedia, the free encyclopedia
http://en.wikipedia.org/wiki/Guitar
Guitar - Wikipedia, the free encyclopedia [History]
http://en.wikipedia.org/wiki/Guitar#History
etc...

On the Wikipedia Guitar page - a person using your script could shift-middle-click, as example, just before the phrase

>Most electric guitar bodies<

and your script could make a link with an anchor - but use a google search url starting with a question mark instead of the url itself.

? "Most electric guitar bodies" site:http://en.wikipedia.org/wiki/Guitar - Google Search
http://www.google.com/search?num=100&hl=en&lr=&...

The question mark seemed like a good idea since it's already used in the address bar to search the preferred search engine.

1
If your script is installed - since the google search starts with a question mark - your script could redirect the url, create the anchor on the page and go to it.

http://en.wikipedia.org/wiki/Guitar#Most+electric+guitar+bodies

And the title could be rewritten to show the anchor text:

Guitar - Wikipedia, the free encyclopedia [Most electric guitar bodies]

If the text can't be found - the person would still be at the right url and the title could show the problem

Guitar - Wikipedia, the free encyclopedia >>Text Not Found!<< [Most electric guitar bodies]

2
If your script is disabled or not installed - the google search url allows the bookmark to degrade gracefully. Mystery meat urls and 404 messages are avoided.

The person would end up at google and they could see the destination url and the text in question.

---

If I weren't so awful at programming - I'd write the script myself. But that's a gigantic "if".

 
simon! Scriptwright

this IS indeed a very useful script, thanks.
pretty hard for me to use (maybe I need some more time than 2 min)
can you attach a screencast?

you might also want to use it with increment ▲ & decrement ▼ (bookmarklets)

 
Descriptor Script's Author

It occurred to me that I could modify this to use the Back and Forward to move between bookmarked items. Bookmarking a spot on the page could add it to the browser's history, then clicking Back (and then Forward) would move back and forth between bookmarks.
I could add this to the "old behavior", mentioned above. Currently, adding a bookmark simply marks the spot, it never adds it to the History, so you have to use the hot keys at least once.
If anyone is interested, just leave a comment.

 
Descriptor Script's Author

Version 1.3
* Minor code changes

 
Descriptor Script's Author

Version 1.2

  • Added option replaceHistory which allows the back button to go to the previous page, instead of the previous Page_Bookmark.
  • Reorganized functions in order to use built-in handleEvent
  • Moved CSS style rules to PB_Prefs. All configurable options are now in PB_Prefs.
 
Descriptor Script's Author

Version 1.1

  • Changed marker to a bullet.
  • Changed mouse button to shift+middle-click to avoid conflicts with the scroll ball.
  • Improvements to button capture code.
  • When the last mark is removed, the next mark added uses the number of the last mark removed, so that number is not skipped.
  • Added internal style function. Now no Greasemonkey functions are used.
 
Descriptor Script's Author

First version 1.0
You may want to limit the included sites that this script runs on.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel