AutoHotkey Community

It is currently May 27th, 2012, 4:23 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Cookies & visited links
PostPosted: February 12th, 2010, 8:09 am 
Offline

Joined: February 2nd, 2008, 4:35 am
Posts: 643
I was wondering (due to regularly losing what links i've visited in forum), if i could save all my links visited in a file, so that i can restore them whenever needed?
I use FEBE (Firefox) to regularly backup (which includes my cookies (text file))
And, are the visited links stored in cookie(s), somewhere else on my pc, or on autohotkey server?


Last edited by a_h_k on February 24th, 2010, 10:57 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 12th, 2010, 8:54 am 
Offline
User avatar

Joined: May 24th, 2009, 5:35 am
Posts: 2099
Location: Iowa, USA
How about something like this? (see this post)
Code:
#Persistent
SetTimer, RecordURL, 1000
Return


RecordURL:
   If WinActive( "ahk_class MozillaUIWindowClass" ) {
      url := FireFoxURL()
      FileRead, text, FFHistory.txt
      RegExMatch( text, ".*$", match )
      If ( url <> match )
         FileAppend, % "`n" url, FFHistory.txt
   }
Return

FireFoxURL() {
   SessionStorePath := A_AppData "\Mozilla\Firefox\Profile\profile name\sessionstore.js"
   WinGetTitle, WinTitle, ahk_class MozillaUIWindowClass
   StringReplace, WinTitle, WinTitle, % " - Mozilla Firefox"
   needle = "url":"([^"]*?)","title":"%WinTitle%
   FileRead, data, %SessionStorePath%
   RegExMatch(data,needle,match)
   Return, match1
}

_________________
Image
Recommended: AutoHotkey_L
Basic Webpage Controls


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 13th, 2010, 4:17 pm 
Offline

Joined: February 2nd, 2008, 4:35 am
Posts: 643
That could work ... but how would i re-write a cookie?
And how would i extract visited links from my cookie backup files?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 23rd, 2010, 5:42 pm 
Try https://addons.mozilla.org/en-US/firefox/addon/2324.
Dont think it touches cookies at all though


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 23rd, 2010, 6:53 pm 
Offline

Joined: April 8th, 2009, 7:49 pm
Posts: 6073
Location: San Diego, California
a_h_k wrote:
That could work ... but how would i re-write a cookie?
And how would i extract visited links from my cookie backup files?

Add somethng to the script to visit the links? :idea:
Of course then you'd have "haunted mouse syndrome" :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 24th, 2010, 10:53 am 
Offline

Joined: February 2nd, 2008, 4:35 am
Posts: 643
Infiltrated Newbie wrote:
Try https://addons.mozilla.org/en-US/firefox/addon/2324.
Dont think it touches cookies at all though

I already use Session Manager, and yes, it doesn't alter cookies. It allows you to save past sessions, and recover from the infamous (& all-too-frequent) "Flipping Firefox Freeze" (FFF) :twisted:


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Mickers, rbrtryn, Yahoo [Bot] and 62 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