AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Get to next topic in forum

 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Hasso



Joined: 23 Mar 2005
Posts: 321
Location: Germany

PostPosted: Wed Sep 27, 2006 10:02 am    Post subject: Get to next topic in forum Reply with quote

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
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6836
Location: France (near Paris)

PostPosted: Wed Sep 27, 2006 10:24 am    Post subject: Reply with quote

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 (Wink) 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.
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group