deviant art





Login
Join deviantART for FREE Take the Tour Lost Password?
Deviant Login
Shop
 Join deviantART for FREE Take the Tour
[x]

More from ~philho

Featured in Groups:

Details

December 20, 2007
14.5 KB
Link
Thumb

Statistics

Comments: 27
Favourites: 30 [who?]
Views: 2,158 (1 today)
Downloads: 125 (0 today)
[x]
:iconphilho:
Quick facts:

:pointr: What is it? A Greasemonkey (GM) script for Firefox (FF) to allow jumping to an arbitrary page whenever there is a Previous Page or Next Page link.

:pointr: History
v.1.1 - 2007/12/22 - Added improvements made by BoffinbraiN (not shown in the screenshots), deactivated on the Today page.
v.1.0 - 2007/12/04 - Creation.

:pointr: 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 page.

More infos:

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. -1427), 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.
:icon:
Add a Comment:
 
:iconjellystick:
~Jellystick Sep 26, 2008  Hobbyist General Artist
If only this worked with V6, I'd totally use it. 8D

--
Taking Points commissions! [link]
Reply
:iconphilho:
~philho Sep 27, 2008  Hobbyist Traditional Artist
Well, I fear I am not overly motivated to re-work on it, currently. Even less as lot of real links became JavaScript jumps... :(
I expected that v.6 would bring a better navigation system for lot of pages, but alas they discarded the idea as it seems.

--
82% of statistics in signatures are made up. :rip: (This is a recursive signature...)
Spreading them is un-original and sheepish. If you agree, copy this in your... wait, no! :D
No to signature clichés! You are on an art site, be creative!
Reply
:iconjellystick:
~Jellystick Sep 27, 2008  Hobbyist General Artist
Aw! .____.

Haha you type formal. >u>

--
Taking Points commissions! [link]
Reply
:iconstephr0x0rs:
"Fucking awesome, man! You totally owned dA staff by implementing a feature that they have failed to deliver for a whole year - yet would take only a day to write."

OMG I totally agree, I mean, what were they thinking?? Browsing the galleries I don't even have a clue what page I'm on, out of who knows how many, same with comments.

Although, I can't seem to get this to work. :( Firefox 3.0.1. It's only display the textbox style, doesn't show how many pages, and when I try to go to a certain page, I get a "Error loading content" message.

--
My Blog
My WinCustomize Site
Customize your Windows experience
Reply
:iconphilho:
~philho Aug 16, 2008  Hobbyist Traditional Artist
Ah. This script is a mess... :)
I planned to rewrite it, but have still to do it. It is a collection of exceptions, depending on the page we are on: news, deviation, forum thread, journal, etc. I wrote it for v.5, coding as I navigated, but lot of features have changed with v.6, and dA switched lot of "classical" pages (with changing URL) to JavaScript paging (eg. in galleries).
I keep it because it half works in some places, but I should put a big warning, and update it someday.

--
82% of statistics in signatures are made up. :rip: (This is a recursive signature...)
Spreading them is un-original and sheepish. If you agree, copy this in your... wait, no! :D
No to signature clichés! You are on an art site, be creative!
Reply
:iconphilho:
~philho Feb 5, 2008  Hobbyist Traditional Artist
=)

--
82% of statistics in signatures are made up. :rip: (This is a recursive signature...)
Spreading them is un-original and sheepish. If you agree, copy this in your... wait, no! :D
No to signature clichés! You are on an art site, be creative!
Reply
:iconasphyziata:
~Asphyziata Jan 19, 2008  Hobbyist Digital Artist
Thanks for the script <3

--
i :tighthug: pixel art
:bulletblue: pixel subsection: [link]
:wizardhat: avid harry potter fan
Reply
:iconphilho:
~philho Jan 19, 2008  Hobbyist Traditional Artist
You are welcome. I am glad people find it useful!

--
82% of statistics in signatures are made up. :rip: (This is a recursive signature...)
Spreading them is un-original and sheepish. If you agree, copy this in your... wait, no! :D
No to signature clichés! You are on an art site, be creative!
Reply
:iconleo-garth:
~Leo-Garth Dec 26, 2007  Hobbyist General Artist
It doesn't work!!! :wtf:
Reply
:icon:
Add a Comment: