What is it?
(GM) script for Firefox
(FF) to allow jumping to an arbitrary page whenever there is a Previous Page or Next Page link.
- 2007/12/22 - Added improvements made by BoffinbraiN (not shown in the screenshots), deactivated on the Today page.
- 2007/12/04 - Creation.
How to use
See my Information on Greasemonkey scripts
journal entry for all needed information!
For fast, easier installation, you can go to the UserScripts.org
In the suggestion forum, I see very often requests to help jumping to any page in a thread or list of comments in deviations or journals. Apparently, dA did the reverse, removing the (quite useless anyway) small list of page numbers from the navigation box (the one with the Previous Page / Next Page links).
Apparently, few deviants has noticed that the ?offset=xxx field in the URL of dA pages can be tweaked in the address bar of the browser to jump to an arbitrary page. And since it tells to skip a number of messages, it might need some maths depending on the page size.
So I had the idea to write a little Greasemonkey script to help automating this. The base was quite easy, because dA is quite consistent on the interface, but I found myself tweaking it a lot to adapt to different page sizes and some other peculiarities.
So, what do my script does? The screenshots say it all: it adds either a combobox (if number of comments is known) or an edit field (otherwise) to the navigation box (with Previous Page / Next Page links, and sometime a limited array of page numbers) to allow jumping at an arbitrary page number in forum threads, deviation/journal/news/etc. comments, list of watchers or deviants having faved a deviation, search pages, browse category, gallery, favourites and so on.
See the screenshots to see how it looks. If there is only one page, or if the script knows there is only two pages, it changes nothing.
The script takes the number of comments out of deviation or news or search result pages, and so is able to display a combo box with the list of pages you can jump to.
Otherwise, it provides an edit field where you can type a page number: if you chose to have a Go button (see the line below the one starting with
), you can click on it to jump to the given page. Otherwise (in both cases actually), just hit Return to do the jump.
If you typed a number too big, past the last page, dA won't puke but it will often display a page stating "No Comments Here" or similar... and no navigation box! Just hit Back button to try again.
You can also type a negative message number (eg.
), the script will jump to the page containing this message. It is convenient to jump to the last page of comments when you know
the number of comments: it is often displayed in the page before the page of comments, I show it for forums and journals in the screenshot.
I have tested it in several parts of deviantART, and thanks to some consistency in design, it might works on unknown/news parts. Otherwise, just report the problem to me with the URL where you saw the
issue, and I will try and correct this.