AutoHotkey Community

It is currently May 27th, 2012, 7:44 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: September 27th, 2006, 11:02 am 
Offline

Joined: March 23rd, 2005, 7:53 am
Posts: 321
Location: Germany
Hello,

as I browse several forums daily, I was looking for a shortcut to go to the next topic. In most of the english language forums there is a link called View next topic and the link address contains view=next. Based on that I wrote a little script:

Code:
;----------------------------------------------
; browse to next topic in forums
;----------------------------------------------
#RIGHT::

clipboard=javascript:for (var i = 10; i <= document.getElementsByTagName('a').length; i++) {if(document.getElementsByTagName("a")[i].lastIndexOf("next") != -1) {location.href=document.getElementsByTagName("a")[i];break;}}

sendInput !s^v{ENTER}
return


Maybe it's useful to someone of you.

_________________
Hasso

Programmers don't die, they GOSUB without RETURN


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 27th, 2006, 11:24 am 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
Some notes: you didn't specified what the !s is supposed to do (probably just go to the address bar) nor for which navigator this shortcut works.
You answer a need here: Forum View previous topic :: View next topic...
And that my advice to use Firefox's LinkToolbar extension is still good.

My prefered way to browse this forum, skipping read topics or those with BF2 in the subject (;-)) is to have the section opened in one tab, then I drag'n'drop the links to the topic tab... No need to abuse the Back button, this way.

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: nothing and 11 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group