[SOLVED] Specjal Regex Find a URL (Last TABs Browser Recover)

Off-topic posts of interest to the "Everything" community.
Post Reply
Debugger
Posts: 565
Joined: Thu Jan 26, 2017 11:56 am

[SOLVED] Specjal Regex Find a URL (Last TABs Browser Recover)

Post by Debugger »

Specjal Regex Find a URL:

\AppData\Local\Slimjet\User Data\Default\Last Tabs
\AppData\Local\Google\Chrome\User Data\Default\Last Tabs


Here is a lot of different regex, but they do not work:
https://stackoverflow.com/questions/603 ... n-a-string


I want to extract all links from these files (please open as a UTF-8 text file)
Recovering all links in case the restoration does not work in the normal way. Error, corrupted, overwrite Current Tabs etc.
Last edited by Debugger on Sun Jun 02, 2019 10:24 am, edited 1 time in total.
therube
Posts: 4580
Joined: Thu Sep 03, 2009 6:48 pm

Re: Specjal Regex Find a URL (Last TABs Browser Recover)

Post by therube »

Thinking that article is too old, I'm thinking?


(Only just now looking at Chromium &) it looks like it uses the file Last Session (& perhaps Last Tabs).

Those files look to be "SNSS" files (whatever that might be, & "binary-ish" at that).
And just what parts you might need out of there, wouldn't know (as in there could be repeated URLs, & what they represent, again, don't know, as in it could be something like a URL is marked as not there, but physically in the file, just not purged - yet).

strings: https://docs.microsoft.com/en-us/sysint ... ds/strings (might help, somewhat)
history: https://www.nirsoft.net/utils/chrome_history_view.html (while this is history, rather then windows/tab, still could be of value)


On the Mozilla end, they store things in a .json file (more recently, compressed - which sucks) & that is easier to deal with where a simple regex might suffice; %s/"http/\rhttp/g.
http://forums.mozillazine.org/viewtopic.php?p=12098147
Debugger
Posts: 565
Joined: Thu Jan 26, 2017 11:56 am

Re: Specjal Regex Find a URL (Last TABs Browser Recover)

Post by Debugger »

therube - Unfortunately, the last session (open pages) can not be restored, even if you try and use different methods, you can not influence it when an unspecified error occurs in Chrome. And this is a problem for many users.
You can not simply restore open (but not loaded pages !!!) pages from the history of the pages you open, unless you step back in the super-huge story of the pages you open and terribly, but it's terribly confused and not the ones you've had lately, a mess over the mess and spend many days combining!
That's why I gave the only file that can still save the situation in LastTabs, there are many links in the file, unfortunately they are mixed with the code, although they can be extracted, but the problem is especially Unicode and spaces in links) Such a strange code that you can laboriously and laboriously edit to get the correct link, though I'm not talking about everyone.
Everything needs to be done, but you need to know the correct expression to extract only the normal URL and the URL encoding (when you are looking in different languages ​​for example on google search), not the URL + file code.

I have more than 2,000 pages in a text file, some can be opened normally, some are not because they contain Encode or Decode

Code: Select all

%20/%20%20%20M%20u%20l%20t%20i%20%20%20M%20u%20l%20t%20i%20%20%20-%20%20%20G%20o%20r%20%05%01c%20e%20%20%20l%20i%20c%20z%20b%20y%20%20%20*%20%20%20L%20o%20t%20t%20o%20-%20C%20e%20n%20t%20r%20u%20m%20.%20c%20o%20m%20%20%20%C3%BC%01%20%20%C5%99%01%20%20%1B%20%20%20%C4%91%01%20%20%18%20%20%20%20%20%20%20%10%20%20%20%20%20%20%20%10%20%20%20%20%20%20%20%08%20%20%20%20%20%20%20%60%20%20%20%20%20%20%20X%20%20%20%20%20%20%20%C5%98%20%20%20%20%20%20%20%18%01%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%01%20%20%20%20%20%20%20%20%20%20%04%20%20%20%18%01%20%20%20%20%20%20+%C5%83%C5%B1%C2%98%12%E2%80%A6%05%20,%C5%83%C5%B1%C2%98%12%E2%80%A6%05%20X%01%20%20%20%20%20%20p%01%20%20%20%20%20%20%10%20%20%20%20%20%20%20%08%20%20%20%20%20%20%20v%20%20%207%20%20%20h%20t%20t%20p%20:%20/%20/%20l%20o%20t%20t%20o%20-%20c%20e%20n%20t%20r%20u%20m%20.%20c%20o%20m%20/%20m%20u%20l%20t%20i%20_%20m%20u%20l%20t%20i%20/%20g%20o%20r%20a%20c%20e%20_%20l%20i%20c%20z%20b%20y%20.%20p%20h%20p%205%20%20%20%10%20%20%20%20%20%20%20%08%20%20%20%20%20%20%204%20%20%20%16%20%20%20h%20t%20t%20p%20s%20:%20/%20/%20w%20w%20w%20.%20g%20o%20o%20g%20l%20e%20.%20p%20l%20/%20%20%20%20%20%10%20%20%20%20%20%20%20%08%20%20%20%20%20%20%20%08%20%20%20%20%20%20%20%08%20%20%20%20%20%20%208%20%20%20%01%20%20%200%20%20%20%20%20%20%208%20%20%20%20%20%20%20%20%20%20%20%20%20%C4%91
, so it's a chore editing, or opening 2,000 pages in sequence, which can actually be repeated. Massacre!

For example, i had 150 open pages (maybe not all loaded), but you need to check everything in 2000 pages.
Occupancy for a whole day or many days. Can not it be simpler without a waste of time?
therube
Posts: 4580
Joined: Thu Sep 03, 2009 6:48 pm

Re: Specjal Regex Find a URL (Last TABs Browser Recover)

Post by therube »

\AppData\Local\Slimjet\User Data\Default\Last Tabs

Thinking that article is too old, I'm thinking?

the file Last Session (& perhaps Last Tabs)
Oh, how silly of me.
I took your "\Last Tabs" to be the name of a directory, rather then a file name.
And yet I even came up with the file names - "Last Session" & "Last Tabs".

So in fact we were talking about the same thing.

Now, not that I know anything about what is in either of those files...
Now, whether anything is missed, or anything not wanted gathered...
Not sure if you want "last session" or "last tabs"? No sure of the difference between them?


strings "last session" | grep "^http" | \bin\unix\sort -u:

Code: Select all

http://winpatrol.com/download.html
http://www.google.com/cse [cx ie ] #0
https://accounts.google.com/ServiceLogin?service=youtube&continue=https%3A%2F%2Fwww.youtube.com%2Fsignin%3Fhl%3Den%26feature%3Dpassive%26action_handle_signin%3Dtrue%26next%3D%252Fsignin_passive%26app%3Ddesktop&uilel=3&hl=en&passive=true
https://cdn3.doubleverify.com/bst2tv3.html
https://cdn3.doubleverify.com/t2tv7.html
https://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-5786243031610172&output=html&h=250&slotname=3735550241&adk=3922297556&adf=2170632794&w=300&guci=2.2.0.0.2.2.0.0&format=300x250&url=https%3A%2F%2Fwww.yahoo.com%2F&ea=0&flash=0&hl=en&avail_w=160&wgl=1&dt=1555251576017&bpp=22&bdt=286&fdt=83&idt=80&shv=r20190408&cbv=r20190131&saldr=aa&correlator=5164334817801&frm=24&ife=3&pv=2&ga_vid=1213004076.1555251576&ga_sid=1555251576&ga_hid=969861180&ga_fc=0&iag=3&icsg=2585&nhd=1&dssz=8&mdo=33554432&mso=33554434&u_tz=-240&u_his=2&u_java=0&u_h=1200&u_w=1920&u_ah=1124&u_aw=1920&u_cd=24&u_nplug=2&u_nmime=2&adx=0&ady=0&biw=-12245933&bih=-12245933&isw=0&ish=0&ifk=2351686757&scr_x=-12245933&scr_y=-12245933&eid=21060853&oid=3&rx=0&eae=3&brdim=0%2C0%2C0%2C0%2C1920%2C0%2C1920%2C1124%2C0%2C0&vis=1&rsz=%7C%7CaeE%7C&abl=CA&ppjl=u&pfx=0&fu=16&bc=15&osw_key=1117496104&ifi=1&uci=1.9px7egc0w0v4&fsb=1&dtd=110
https://googleads.g.doubleclick.net/pagead/drt/s?v=r20120211
https://googleads.g.doubleclick.net/pagead/drt/si
https://googleads.g.doubleclick.net/pagead/html/r20190408/r20190131/zrt_lookup.html#
https://platform.twitter.com/widgets/widget_iframe.2e9f365dae390394eb8d923cba8c5b11.html?origin=http%3A%2F%2Fwinpatrol.com&settingsEndpoint=https%3A%2F%2Fsyndication.twitter.com%2Fsettings
https://s.yimg.com/rq/darla/3-6-3/html/r-csc.html
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://s0.2mdn.net/3232187/1551307331927/300x250/index.html
https://tag.sp.advertising.com/bid-apid/bid-apid-idsync.html
https://tpc.googlesyndication.com/sodar/Cl9JdPYw.html
https://tpc.googlesyndication.com/sodar/Enqz_20U.html
https://www.yahoo.com/
https://www.yahoo.com/sdarla/php/fc.php?tID=1&d=0&f=2023538075&l=LREC&rn=1555251549225&en=utf-8&npv=1&lang=en-US&filter=no_expandable%253Bexp_iframe_expandable%253B&ref=https%253A//www.yahoo.com/&secure=true&tgt=_blank&property=fp&sa=Y-BUCKET%253D%2522840095%252CFPFGS201%252CFPRAP401%2522%2520ctout%253D380%2520bct%253D1%2520rs%253D%2522pt%253Ahome%253Bver%253Amegastrm%2522&ult=pg%253Aproperty%25253Afp%25253Btest%25253A840095%2525252CFPFGS201%2525252CFPRAP401%25253Bintl%25253AUS%25253Brid%25253A87qjd11eb6gae%25253Bdevice%25253Adesktop&clw=LREC-0%253Ablocked_by%25253AMON-0%253BMON-0%253Ablocked_by%25253ALREC-0%253BMAST-0%253Ablocked_by%25253ALDRB-0%2525252CSPL-0%253BSPL-0%253Ablocked_by%25253ALDRB-0%2525252CMAST-0%253BLDRB-0%253Ablocked_by%25253AMAST-0%2525252CSPL-0&ar=1
https://www.yahoo.com/sdarla/php/fc.php?tID=2&d=0&f=2023538075&l=LREC&rn=1555251575374&en=utf-8&npv=true&lang=en-US&filter=no_expandable%253Bexp_iframe_expandable%253B&ref=https%253A//www.yahoo.com/&secure=true&tgt=_blank&property=fp&sa=Y-BUCKET%253D%2522840095%252CFPFGS201%252CFPRAP401%2522%2520ctout%253D380%2520bct%253D1%2520rs%253D%2522pt%253Ahome%253Bver%253Amegastrm%2522%2520megamodal%253Dtrue&ult=pg%253Aproperty%25253Afp%25253Btest%25253A840095%2525252CFPFGS201%2525252CFPRAP401%25253Bintl%25253AUS%25253Brid%25253A87qjd11eb6gae%25253Bdevice%25253Adesktop&clw=LREC-0%253Ablocked_by%25253AMON-0%253BMON-0%253Ablocked_by%25253ALREC-0%253BMAST-0%253Ablocked_by%25253ALDRB-0%2525252CSPL-0%253BSPL-0%253Ablocked_by%25253ALDRB-0%2525252CMAST-0%253BLDRB-0%253Ablocked_by%25253AMAST-0%2525252CSPL-0
https://www.youtube.com/
https://www.youtube.com/ad_frame?action=auto-collapse-kevlar-companion
https://www.youtube.com/embed/?controls=0&enablejsapi=1&iv_load_policy=3&modestbranding=1&mute=1&rel=0&showinfo=0&origin=https%3A%2F%2Fwww.youtube.com&widgetid=1
https://www.youtube.com/results?search_query=michael+garrison
https://www.youtube.com/watch?v=jHpdofi4yEY&list=RDEMDcUOJjm4Is2BOWon6dCQbA&start_radio=1
https://www.youtube.com/watch?v=oZ2fd3ryJ2U&list=RDEMDcUOJjm4Is2BOWon6dCQbA&index=3
https://www.youtube.com/watch?v=R7bRw512VNA&list=RDEMDcUOJjm4Is2BOWon6dCQbA&index=2
Now that includes the "ads" that did show up.
But otherwise has the sites, pages visited.


(I'm nowhere near familiar enough with Chromium to know what goes on with it.)


Oh, & without de-duplicating (sort -u) the results:

Code: Select all

https://www.yahoo.com/
https://www.yahoo.com/
https://www.yahoo.com/
https://www.yahoo.com/
https://www.yahoo.com/
https://www.yahoo.com/
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://www.yahoo.com/
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://www.yahoo.com/
https://s.yimg.com/rq/darla/3-6-3/html/r-csc.html
https://www.yahoo.com/
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://www.yahoo.com/
https://www.yahoo.com/
https://www.yahoo.com/
https://www.yahoo.com/
https://www.yahoo.com/
https://www.yahoo.com/
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://www.yahoo.com/
https://tpc.googlesyndication.com/sodar/Enqz_20U.html
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://s0.2mdn.net/3232187/1551307331927/300x250/index.html
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://www.yahoo.com/
https://s.yimg.com/rq/darla/3-6-3/html/r-csc.html
https://www.yahoo.com/
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://www.yahoo.com/
https://www.yahoo.com/
https://www.yahoo.com/
https://www.yahoo.com/
https://www.yahoo.com/
https://www.yahoo.com/
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://www.yahoo.com/
https://tpc.googlesyndication.com/sodar/Enqz_20U.html
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://s0.2mdn.net/3232187/1551307331927/300x250/index.html
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://www.yahoo.com/
https://s.yimg.com/rq/darla/3-6-3/html/r-csc.html
https://www.yahoo.com/
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://www.yahoo.com/
https://www.yahoo.com/
https://www.yahoo.com/
https://www.yahoo.com/
https://www.yahoo.com/
https://www.yahoo.com/
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://www.yahoo.com/
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://www.yahoo.com/
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://www.yahoo.com/
https://www.yahoo.com/
https://www.yahoo.com/sdarla/php/fc.php?tID=1&d=0&f=2023538075&l=LREC&rn=1555251549225&en=utf-8&npv=1&lang=en-US&filter=no_expandable%253Bexp_iframe_expandable%253B&ref=https%253A//www.yahoo.com/&secure=true&tgt=_blank&property=fp&sa=Y-BUCKET%253D%2522840095%252CFPFGS201%252CFPRAP401%2522%2520ctout%253D380%2520bct%253D1%2520rs%253D%2522pt%253Ahome%253Bver%253Amegastrm%2522&ult=pg%253Aproperty%25253Afp%25253Btest%25253A840095%2525252CFPFGS201%2525252CFPRAP401%25253Bintl%25253AUS%25253Brid%25253A87qjd11eb6gae%25253Bdevice%25253Adesktop&clw=LREC-0%253Ablocked_by%25253AMON-0%253BMON-0%253Ablocked_by%25253ALREC-0%253BMAST-0%253Ablocked_by%25253ALDRB-0%2525252CSPL-0%253BSPL-0%253Ablocked_by%25253ALDRB-0%2525252CMAST-0%253BLDRB-0%253Ablocked_by%25253AMAST-0%2525252CSPL-0&ar=1
https://www.yahoo.com/
https://s.yimg.com/rq/darla/3-6-3/html/r-csc.html
https://www.yahoo.com/
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://www.yahoo.com/
https://cdn3.doubleverify.com/bst2tv3.html
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://tpc.googlesyndication.com/sodar/Cl9JdPYw.html
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://cdn3.doubleverify.com/t2tv7.html
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://www.yahoo.com/
https://www.yahoo.com/
https://www.yahoo.com/
https://www.yahoo.com/
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://www.yahoo.com/
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://www.yahoo.com/
https://www.yahoo.com/
https://www.yahoo.com/sdarla/php/fc.php?tID=1&d=0&f=2023538075&l=LREC&rn=1555251549225&en=utf-8&npv=1&lang=en-US&filter=no_expandable%253Bexp_iframe_expandable%253B&ref=https%253A//www.yahoo.com/&secure=true&tgt=_blank&property=fp&sa=Y-BUCKET%253D%2522840095%252CFPFGS201%252CFPRAP401%2522%2520ctout%253D380%2520bct%253D1%2520rs%253D%2522pt%253Ahome%253Bver%253Amegastrm%2522&ult=pg%253Aproperty%25253Afp%25253Btest%25253A840095%2525252CFPFGS201%2525252CFPRAP401%25253Bintl%25253AUS%25253Brid%25253A87qjd11eb6gae%25253Bdevice%25253Adesktop&clw=LREC-0%253Ablocked_by%25253AMON-0%253BMON-0%253Ablocked_by%25253ALREC-0%253BMAST-0%253Ablocked_by%25253ALDRB-0%2525252CSPL-0%253BSPL-0%253Ablocked_by%25253ALDRB-0%2525252CMAST-0%253BLDRB-0%253Ablocked_by%25253AMAST-0%2525252CSPL-0&ar=1
https://www.yahoo.com/
https://s.yimg.com/rq/darla/3-6-3/html/r-csc.html
https://www.yahoo.com/
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://www.yahoo.com/
https://cdn3.doubleverify.com/bst2tv3.html
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://tpc.googlesyndication.com/sodar/Cl9JdPYw.html
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://cdn3.doubleverify.com/t2tv7.html
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://www.yahoo.com/
https://www.yahoo.com/
https://www.yahoo.com/
https://www.yahoo.com/
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://www.yahoo.com/
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://www.yahoo.com/
https://www.yahoo.com/
https://www.yahoo.com/sdarla/php/fc.php?tID=1&d=0&f=2023538075&l=LREC&rn=1555251549225&en=utf-8&npv=1&lang=en-US&filter=no_expandable%253Bexp_iframe_expandable%253B&ref=https%253A//www.yahoo.com/&secure=true&tgt=_blank&property=fp&sa=Y-BUCKET%253D%2522840095%252CFPFGS201%252CFPRAP401%2522%2520ctout%253D380%2520bct%253D1%2520rs%253D%2522pt%253Ahome%253Bver%253Amegastrm%2522&ult=pg%253Aproperty%25253Afp%25253Btest%25253A840095%2525252CFPFGS201%2525252CFPRAP401%25253Bintl%25253AUS%25253Brid%25253A87qjd11eb6gae%25253Bdevice%25253Adesktop&clw=LREC-0%253Ablocked_by%25253AMON-0%253BMON-0%253Ablocked_by%25253ALREC-0%253BMAST-0%253Ablocked_by%25253ALDRB-0%2525252CSPL-0%253BSPL-0%253Ablocked_by%25253ALDRB-0%2525252CMAST-0%253BLDRB-0%253Ablocked_by%25253AMAST-0%2525252CSPL-0&ar=1
https://www.yahoo.com/
https://s.yimg.com/rq/darla/3-6-3/html/r-csc.html
https://www.yahoo.com/
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://www.yahoo.com/
https://cdn3.doubleverify.com/bst2tv3.html
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://tpc.googlesyndication.com/sodar/Cl9JdPYw.html
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://cdn3.doubleverify.com/t2tv7.html
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://www.yahoo.com/
https://www.yahoo.com/
https://www.yahoo.com/
https://www.yahoo.com/
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://www.yahoo.com/
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://www.yahoo.com/
https://www.yahoo.com/
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://www.yahoo.com/
https://tpc.googlesyndication.com/sodar/Cl9JdPYw.html
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://www.yahoo.com/sdarla/php/fc.php?tID=2&d=0&f=2023538075&l=LREC&rn=1555251575374&en=utf-8&npv=true&lang=en-US&filter=no_expandable%253Bexp_iframe_expandable%253B&ref=https%253A//www.yahoo.com/&secure=true&tgt=_blank&property=fp&sa=Y-BUCKET%253D%2522840095%252CFPFGS201%252CFPRAP401%2522%2520ctout%253D380%2520bct%253D1%2520rs%253D%2522pt%253Ahome%253Bver%253Amegastrm%2522%2520megamodal%253Dtrue&ult=pg%253Aproperty%25253Afp%25253Btest%25253A840095%2525252CFPFGS201%2525252CFPRAP401%25253Bintl%25253AUS%25253Brid%25253A87qjd11eb6gae%25253Bdevice%25253Adesktop&clw=LREC-0%253Ablocked_by%25253AMON-0%253BMON-0%253Ablocked_by%25253ALREC-0%253BMAST-0%253Ablocked_by%25253ALDRB-0%2525252CSPL-0%253BSPL-0%253Ablocked_by%25253ALDRB-0%2525252CMAST-0%253BLDRB-0%253Ablocked_by%25253AMAST-0%2525252CSPL-0
https://www.yahoo.com/
https://s.yimg.com/rq/darla/3-6-3/html/r-csc.html
https://www.yahoo.com/
https://tag.sp.advertising.com/bid-apid/bid-apid-idsync.html
https://s.yimg.com/rq/darla/3-6-3/html/r-csc.html
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://www.yahoo.com/
https://googleads.g.doubleclick.net/pagead/ads?client=ca-pub-5786243031610172&output=html&h=250&slotname=3735550241&adk=3922297556&adf=2170632794&w=300&guci=2.2.0.0.2.2.0.0&format=300x250&url=https%3A%2F%2Fwww.yahoo.com%2F&ea=0&flash=0&hl=en&avail_w=160&wgl=1&dt=1555251576017&bpp=22&bdt=286&fdt=83&idt=80&shv=r20190408&cbv=r20190131&saldr=aa&correlator=5164334817801&frm=24&ife=3&pv=2&ga_vid=1213004076.1555251576&ga_sid=1555251576&ga_hid=969861180&ga_fc=0&iag=3&icsg=2585&nhd=1&dssz=8&mdo=33554432&mso=33554434&u_tz=-240&u_his=2&u_java=0&u_h=1200&u_w=1920&u_ah=1124&u_aw=1920&u_cd=24&u_nplug=2&u_nmime=2&adx=0&ady=0&biw=-12245933&bih=-12245933&isw=0&ish=0&ifk=2351686757&scr_x=-12245933&scr_y=-12245933&eid=21060853&oid=3&rx=0&eae=3&brdim=0%2C0%2C0%2C0%2C1920%2C0%2C1920%2C1124%2C0%2C0&vis=1&rsz=%7C%7CaeE%7C&abl=CA&ppjl=u&pfx=0&fu=16&bc=15&osw_key=1117496104&ifi=1&uci=1.9px7egc0w0v4&fsb=1&dtd=110
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://googleads.g.doubleclick.net/pagead/drt/si
https://googleads.g.doubleclick.net/pagead/drt/s?v=r20120211
https://googleads.g.doubleclick.net/pagead/html/r20190408/r20190131/zrt_lookup.html#
https://s.yimg.com/rq/darla/3-6-3/html/r-sf.html
https://www.yahoo.com/
http://winpatrol.com/download.html
http://winpatrol.com/download.html
http://winpatrol.com/download.html
http://winpatrol.com/download.html
http://winpatrol.com/download.html
http://www.google.com/cse [cx ie ] #0
http://winpatrol.com/download.html
https://platform.twitter.com/widgets/widget_iframe.2e9f365dae390394eb8d923cba8c5b11.html?origin=http%3A%2F%2Fwinpatrol.com&settingsEndpoint=https%3A%2F%2Fsyndication.twitter.com%2Fsettings
http://winpatrol.com/download.html
http://winpatrol.com/download.html
http://winpatrol.com/download.html
https://www.youtube.com/
https://www.youtube.com/
https://www.youtube.com/
https://www.youtube.com/
https://www.youtube.com/
https://accounts.google.com/ServiceLogin?service=youtube&continue=https%3A%2F%2Fwww.youtube.com%2Fsignin%3Fhl%3Den%26feature%3Dpassive%26action_handle_signin%3Dtrue%26next%3D%252Fsignin_passive%26app%3Ddesktop&uilel=3&hl=en&passive=true
https://www.youtube.com/
https://www.youtube.com/embed/?controls=0&enablejsapi=1&iv_load_policy=3&modestbranding=1&mute=1&rel=0&showinfo=0&origin=https%3A%2F%2Fwww.youtube.com&widgetid=1
https://www.youtube.com/
https://www.youtube.com/
https://www.youtube.com/
https://www.youtube.com/
https://accounts.google.com/ServiceLogin?service=youtube&continue=https%3A%2F%2Fwww.youtube.com%2Fsignin%3Fhl%3Den%26feature%3Dpassive%26action_handle_signin%3Dtrue%26next%3D%252Fsignin_passive%26app%3Ddesktop&uilel=3&hl=en&passive=true
https://www.youtube.com/
https://www.youtube.com/embed/?controls=0&enablejsapi=1&iv_load_policy=3&modestbranding=1&mute=1&rel=0&showinfo=0&origin=https%3A%2F%2Fwww.youtube.com&widgetid=1
https://www.youtube.com/
https://www.youtube.com/
https://www.youtube.com/
https://www.youtube.com/
https://www.youtube.com/
https://accounts.google.com/ServiceLogin?service=youtube&continue=https%3A%2F%2Fwww.youtube.com%2Fsignin%3Fhl%3Den%26feature%3Dpassive%26action_handle_signin%3Dtrue%26next%3D%252Fsignin_passive%26app%3Ddesktop&uilel=3&hl=en&passive=true
https://www.youtube.com/
https://www.youtube.com/embed/?controls=0&enablejsapi=1&iv_load_policy=3&modestbranding=1&mute=1&rel=0&showinfo=0&origin=https%3A%2F%2Fwww.youtube.com&widgetid=1
https://www.youtube.com/
https://www.youtube.com/
https://www.youtube.com/
https://www.youtube.com/
https://www.youtube.com/results?search_query=michael+garrison
https://www.youtube.com/results?search_query=michael+garrison
https://accounts.google.com/ServiceLogin?service=youtube&continue=https%3A%2F%2Fwww.youtube.com%2Fsignin%3Fhl%3Den%26feature%3Dpassive%26action_handle_signin%3Dtrue%26next%3D%252Fsignin_passive%26app%3Ddesktop&uilel=3&hl=en&passive=true
https://www.youtube.com/
https://www.youtube.com/embed/?controls=0&enablejsapi=1&iv_load_policy=3&modestbranding=1&mute=1&rel=0&showinfo=0&origin=https%3A%2F%2Fwww.youtube.com&widgetid=1
https://www.youtube.com/
https://www.youtube.com/
https://www.youtube.com/
https://www.youtube.com/results?search_query=michael+garrison
https://www.youtube.com/watch?v=jHpdofi4yEY&list=RDEMDcUOJjm4Is2BOWon6dCQbA&start_radio=1
https://www.youtube.com/watch?v=jHpdofi4yEY&list=RDEMDcUOJjm4Is2BOWon6dCQbA&start_radio=1
https://www.youtube.com/results?search_query=michael+garrison
https://www.youtube.com/
https://www.youtube.com/results?search_query=michael+garrison
https://www.youtube.com/watch?v=jHpdofi4yEY&list=RDEMDcUOJjm4Is2BOWon6dCQbA&start_radio=1
https://www.youtube.com/watch?v=jHpdofi4yEY&list=RDEMDcUOJjm4Is2BOWon6dCQbA&start_radio=1
https://www.youtube.com/watch?v=jHpdofi4yEY&list=RDEMDcUOJjm4Is2BOWon6dCQbA&start_radio=1
https://www.youtube.com/results?search_query=michael+garrison
https://www.youtube.com/
https://www.youtube.com/
https://www.youtube.com/ad_frame?action=auto-collapse-kevlar-companion
https://www.youtube.com/
https://www.youtube.com/results?search_query=michael+garrison
https://www.youtube.com/watch?v=jHpdofi4yEY&list=RDEMDcUOJjm4Is2BOWon6dCQbA&start_radio=1
https://www.youtube.com/watch?v=jHpdofi4yEY&list=RDEMDcUOJjm4Is2BOWon6dCQbA&start_radio=1
https://www.youtube.com/watch?v=jHpdofi4yEY&list=RDEMDcUOJjm4Is2BOWon6dCQbA&start_radio=1
https://www.youtube.com/results?search_query=michael+garrison
https://www.youtube.com/
https://www.youtube.com/
https://www.youtube.com/ad_frame?action=auto-collapse-kevlar-companion
https://www.youtube.com/
https://www.youtube.com/
https://www.youtube.com/results?search_query=michael+garrison
https://www.youtube.com/watch?v=jHpdofi4yEY&list=RDEMDcUOJjm4Is2BOWon6dCQbA&start_radio=1
https://www.youtube.com/watch?v=R7bRw512VNA&list=RDEMDcUOJjm4Is2BOWon6dCQbA&index=2
https://www.youtube.com/watch?v=R7bRw512VNA&list=RDEMDcUOJjm4Is2BOWon6dCQbA&index=2
https://www.youtube.com/results?search_query=michael+garrison
https://www.youtube.com/
https://www.youtube.com/
https://www.youtube.com/
https://www.youtube.com/ad_frame?action=auto-collapse-kevlar-companion
https://www.youtube.com/
https://www.youtube.com/results?search_query=michael+garrison
https://www.youtube.com/watch?v=R7bRw512VNA&list=RDEMDcUOJjm4Is2BOWon6dCQbA&index=2
https://www.youtube.com/watch?v=oZ2fd3ryJ2U&list=RDEMDcUOJjm4Is2BOWon6dCQbA&index=3
https://www.youtube.com/watch?v=oZ2fd3ryJ2U&list=RDEMDcUOJjm4Is2BOWon6dCQbA&index=3
https://www.youtube.com/results?search_query=michael+garrison
https://www.youtube.com/
https://www.youtube.com/
https://www.youtube.com/
https://www.youtube.com/results?search_query=michael+garrison
https://www.youtube.com/watch?v=oZ2fd3ryJ2U&list=RDEMDcUOJjm4Is2BOWon6dCQbA&index=3
Debugger
Posts: 565
Joined: Thu Jan 26, 2017 11:56 am

Re: Specjal Regex Find a URL (Last TABs Browser Recover)

Post by Debugger »

You can try to restore, for example, CTRL + T
but it does not always work because it will restore only some (small!!) (not all!).
There is a limit or problem.
Even if the option is active: Restore session (recently closed tabs) - due to a session error.
This option does not work and you can do nothing if you close your browser, you will lose your open session / tabs irretrievably. It will be overwritten with a new one.
LastTabs also does not contain everything, but you can recover most of the pages recently opened recently.
Although it's better to copy in a moment because it will soon be overwritten in a short time.
I made copies of these files at the fastest possible time.
Install Chrome (not Chromium) and open some pages, then open the file in a text editor and see that there are such links, only are scattered around the code.
You have to somehow process these links, there are AUTO-PARSER, but they do not cope with everything.
therube
Posts: 4580
Joined: Thu Sep 03, 2009 6:48 pm

Re: Specjal Regex Find a URL (Last TABs Browser Recover)

Post by therube »

Install Chrome (not Chromium) and open some pages, then open the file in a text editor and see that there are such links, only are scattered around the code.
Chrome/Chromium should not matter, in this regard (from what I can see).

Yes, file is "binary-ish", binary, actually, & yes the links "scattered".
My simple stings & grep seemed to grab what was needed.
I'd have to imagine ? that someone has come up with a utility/means to decipher the file?
(Google certainly knows ;-). If you were to review their code that reads & parses that file...)
Debugger
Posts: 565
Joined: Thu Jan 26, 2017 11:56 am

Re: Specjal Regex Find a URL (Last TABs Browser Recover)

Post by Debugger »

strings "last session" | grep "^http" | \bin\unix\sort -u:

I really do not understand this code, it looks like Linux.
So what is the use of it? Not enough information ... To know what to do with this ...
therube
Posts: 4580
Joined: Thu Sep 03, 2009 6:48 pm

Re: Specjal Regex Find a URL (Last TABs Browser Recover)

Post by therube »

Well, start with 'strings' (linked above) & dump its results to a file.
So strings "last session" > last.out.
Then see what last.out contains.

grep is similar to what is it, findstr ?, in Windows.
Feed grep a regex:, ^http, so lines that start with http, http & https (& httpptth ;-)).

Oh look, findstr can use regex: too & also understands the ^ marker.

In this case, at least on my test "last session" file,
findstr http
findstr /b http
findstr /r ^http
findstr /r "\<http"
all return the same results.
(Never knew anything about findstr before this.)

They say the Windows 10 has a /unique switch (which I cannot test).

Sort (the unix sort command [including others]) can be gotten from here, CoreUtils for Windows.
(I simply use the ZIP files. Have never tried the "installer" version.
You will need both the Binaries & the Dependencies (.zip) files (on that page).
Binaries includes sort.exe (among others).
Dependencies includes a couple .dll files that the Binaries rely upon.

I simply extract the .exe files from the /bin/ directory within the .zip (along with the 2 .dll from the Dependencies) into a location in my PATH (c:\bin\unix\, as it is.)
Because both Unix & Windows use "sort" as the name of their sort commands, I use the full path to the unix sort when I need it specifically.
(On my end, by default, Windows sort, E:\Windows\System32\sort.exe is in my PATH before the unix version, so it gets called by default.)
Or you could simply rename the unix version to something like usort.exe, then simply call usort instead of sort.
Debugger
Posts: 565
Joined: Thu Jan 26, 2017 11:56 am

Re: Specjal Regex Find a URL (Last TABs Browser Recover)

Post by Debugger »

You have complicated the order of performing various tasks with these commands.
"last session" - contains only a new session, that is practically "NOTHING".
So, just like you would open a browser with a blank tabs if you can not restore all the last tabs.
Also you will NEVER manage to recover any tabs, but maybe a few will be able to keep up, but he doubts.
Due to an error or failure to restore the session (even if you have enabled - Use the last session after closing the browser).
Say goodbye to links / all tabs.
But you still have the last chance, use the other file that I mentioned immediately. If you close browser it once or several times, it will be replaced with a new file (usually smaller) and new links, and the old forever lost.
Debugger
Posts: 565
Joined: Thu Jan 26, 2017 11:56 am

Re: Specjal Regex Find a URL (Last TABs Browser Recover)

Post by Debugger »

I did it in EmEditor :)


Decode -> Percent-encoding to Unicode (UTF-8)

Find:
Regex:(news|http|ftp|https):\/\/[\w\-_]+(\.[\w]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?

Extract Options:
Display Matched Strings Only
Post Reply