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 

Cookies & visited links

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
a_h_k



Joined: 02 Feb 2008
Posts: 627

PostPosted: Fri Feb 12, 2010 7:09 am    Post subject: Cookies & visited links Reply with quote

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 Wed Feb 24, 2010 9:57 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
jethrow



Joined: 24 May 2009
Posts: 1907
Location: Iowa, USA

PostPosted: Fri Feb 12, 2010 7:54 am    Post subject: Reply with quote

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
}

_________________
Very Happy - in case I forgot to smile
Basic Webpage Controls
COM Object Reference
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
a_h_k



Joined: 02 Feb 2008
Posts: 627

PostPosted: Sat Feb 13, 2010 3:17 pm    Post subject: Reply with quote

That could work ... but how would i re-write a cookie?
And how would i extract visited links from my cookie backup files?
Back to top
View user's profile Send private message Visit poster's website
Infiltrated Newbie
Guest





PostPosted: Tue Feb 23, 2010 4:42 pm    Post subject: Reply with quote

Try https://addons.mozilla.org/en-US/firefox/addon/2324.
Dont think it touches cookies at all though
Back to top
Leef_me



Joined: 08 Apr 2009
Posts: 5336
Location: San Diego, California

PostPosted: Tue Feb 23, 2010 5:53 pm    Post subject: Reply with quote

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



Joined: 02 Feb 2008
Posts: 627

PostPosted: Wed Feb 24, 2010 9:53 am    Post subject: Reply with quote

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 Evil
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 -> Ask for Help 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