| View previous topic :: View next topic |
| Author |
Message |
a_h_k
Joined: 02 Feb 2008 Posts: 627
|
Posted: Fri Feb 12, 2010 7:09 am Post subject: Cookies & visited links |
|
|
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 |
|
 |
jethrow
Joined: 24 May 2009 Posts: 1907 Location: Iowa, USA
|
Posted: Fri Feb 12, 2010 7:54 am Post subject: |
|
|
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
} |
_________________
- in case I forgot to smile
Basic Webpage Controls
COM Object Reference |
|
| Back to top |
|
 |
a_h_k
Joined: 02 Feb 2008 Posts: 627
|
Posted: Sat Feb 13, 2010 3:17 pm Post subject: |
|
|
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 |
|
 |
Infiltrated Newbie Guest
|
|
| Back to top |
|
 |
Leef_me
Joined: 08 Apr 2009 Posts: 5336 Location: San Diego, California
|
Posted: Tue Feb 23, 2010 5:53 pm Post subject: |
|
|
| 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?
Of course then you'd have "haunted mouse syndrome"  |
|
| Back to top |
|
 |
a_h_k
Joined: 02 Feb 2008 Posts: 627
|
Posted: Wed Feb 24, 2010 9:53 am Post subject: |
|
|
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)  |
|
| Back to top |
|
 |
|