Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.advocacy > #373039

Re: Copy all URLs

From Snit <usenet@gallopinginsanity.com>
Newsgroups comp.os.linux.advocacy
Subject Re: Copy all URLs
Date 2016-09-27 13:23 -0700
Message-ID <D4102353.7EA20%usenet@gallopinginsanity.com> (permalink)
References (2 earlier) <fhjadu03.gi@perch.invalid> <D40FDEC6.7E97B%usenet@gallopinginsanity.com> <hjgasduf833.t@perch.invalid> <D4100AD2.7E9D6%usenet@gallopinginsanity.com> <ahjdgjue003.ee@perch.invalid>

Show all headers | View raw


On 9/27/16, 12:56 PM, in article ahjdgjue003.ee@perch.invalid, "Octavian W.
Lagrange" <olagrang@perch.invalid> wrote:

... 
>>> I've never looked into writing a browser extension, so I don't know.
>>> I would probably just parse one of the files like this:
>>> 
>>> anon@lowtide:~/.config/chromium/Default$ strings "Current Session"  |grep
>>> http
>>> | sort |uniq |grep -v newtab
>>> https://www.amazon.com/
>>> http://www.amazon.com/
>>> http://www.breitbart.com/
>>> http://www.foxnews.com/
>>> http://www.godlikeproductions.com/
>>> http://www.lunaticoutpost.com/
>>> anon@lowtide:~/.config/chromium/Default$
>>> 
>>> Now that shows tabs across two different browser windows, so it's not
>>> ideal.
>> 
>> With mine I could have it go through all browser windows... but I generally
>> just want the one.
>> 
>>> "Current Tabs" works the same way, but it is only created after closing
>>> the browser, so I guess it functions as a recover last session thingie.
>>> "Current Session" is updated continually with new tab URLs, but it
>>> doesn't remove closed URLs, even on browser close, so a script's logic
>>> would need to take that into account and depending on what you wanted
>>> it to do, it might delete one or both files at some point.
>> 
>> Basically what I am looking for is being able to grab all the URLs so I can
>> paste them here or wherever.
> 
> Which is what I just showed you above.

Nobody said otherwise... though it would be good to see it in action. Your
last un-shown script I accepted as just working because it seemed like it
should have, but when I tested it (admittedly with a different browser and
OS) it failed. 

Still, with a quick look no reason to think your current one would... unlike
Carroll's which had a pretty big flaw he failed to understand even after I
pointed it out to him.

...
>> The pre-made extension would be good enough... but it sounds like lacking
>> that it would be a challenge on Linux. Note... LACKING THAT... but that is
>> not the case. As it is the "task" is easily done on Linux. Not a surprise
>> given that even Safari had such an extension. Might even be a different one
>> for it... but I am happy having the feature be semi-hidden in a menu and not
>> throwing another icon on the screen. In that I prefer my script to the
>> extension I had.
> 
> It is no problem (as I show above) to get the tab URLs without using
> a browser extension.  You just have to parse "Current Session" or
> "Current Tabs".

Sure - at least certainly seems so and I cannot think of why what you show
would not work. Well done... if that is what you are looking for.

Curious: would you need to use a hot-key or extra icon on your screen (not
tied to the browser)? I am not sure I could get an icon to show just with
Safari but I could tie it to a hot key that worked only when running Safari.



-- 
* OS X / Linux: What is a file?     <http://youtu.be/_dMbXGLW9PI>
* Mint MATE Trash, Panel, Menu:     <http://youtu.be/C0y74FIf7uE>
* Mint KDE working with folders:    <http://youtu.be/7C9nvniOoE0>
* Mint KDE creating files:          <http://youtu.be/N7-fZJaJUv8>
* Mint KDE help:                    <http://youtu.be/3ikizUd3sa8>
* Mint KDE general navigation:      <http://youtu.be/t9y14yZtQuI>
* Mint KDE bugs or Easter eggs?     <http://youtu.be/CU-whJQvtfA>
* Easy on OS X / Hard on Linux:     <http://youtu.be/D3BPWANQoIk>
* OS / Word Processor Comparison:   <http://youtu.be/w6Qcl-w7s5c>

Back to comp.os.linux.advocacy | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Copy all URLs Steve Carroll <fretwizzer@gmail.com> - 2016-09-26 14:18 -0700
  Re: Copy all URLs Silver Slimer <.m@nsn.s> - 2016-09-26 17:21 -0400
    Re: Copy all URLs Steve Carroll <fretwizzer@gmail.com> - 2016-09-26 14:28 -0700
      Re: Copy all URLs Silver Slimer <.m@nsn.s> - 2016-09-26 17:31 -0400
    Re: Copy all URLs Snit <usenet@gallopinginsanity.com> - 2016-09-26 14:28 -0700
  Re: Copy all URLs tmelmosfire <tmelmosfire@gmail.com> - 2016-09-26 14:33 -0700
  Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-27 06:24 +0000
    Re: Copy all URLs Snit <usenet@gallopinginsanity.com> - 2016-09-27 08:31 -0700
      Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-27 18:07 +0000
        Re: Copy all URLs Snit <usenet@gallopinginsanity.com> - 2016-09-27 11:38 -0700
          Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-27 19:56 +0000
            Re: Copy all URLs Snit <usenet@gallopinginsanity.com> - 2016-09-27 13:23 -0700
    Re: Copy all URLs Steve Carroll <fretwizzer@gmail.com> - 2016-09-27 08:54 -0700
      Re: Copy all URLs tmelmosfire <tmelmosfire@gmail.com> - 2016-09-27 11:00 -0700
        Re: Copy all URLs Snit <usenet@gallopinginsanity.com> - 2016-09-27 11:13 -0700
          Re: Copy all URLs Steve Carroll <fretwizzer@gmail.com> - 2016-09-27 12:14 -0700
            Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-27 19:28 +0000
              Re: Copy all URLs Steve Carroll <fretwizzer@gmail.com> - 2016-09-27 12:44 -0700
              Re: Copy all URLs Snit <usenet@gallopinginsanity.com> - 2016-09-27 12:46 -0700
                Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-27 20:21 +0000
                Re: Copy all URLs Snit <usenet@gallopinginsanity.com> - 2016-09-27 13:27 -0700
                Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-27 21:58 +0000
                Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-27 23:43 +0000
                Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-28 01:16 +0000
                Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-28 01:51 +0000
                Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-28 02:33 +0000
                Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-28 04:06 +0000
                Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-28 06:19 +0000
                Re: Copy all URLs Marek Novotny <marek.novotny@marspolar.com> - 2016-09-28 14:03 +0000
                Re: Copy all URLs Steve Carroll <fretwizzer@gmail.com> - 2016-09-28 09:09 -0700
                Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-28 04:13 +0000
                Re: Copy all URLs Jim Polaski <jpolaski@linuxmail.org> - 2016-09-28 13:30 +0000
                Re: Copy all URLs Snit <usenet@gallopinginsanity.com> - 2016-09-28 08:35 -0700
                Re: Copy all URLs Steve Carroll <fretwizzer@gmail.com> - 2016-09-28 10:03 -0700
                Re: Copy all URLs "Octavian W. Lagrange" <olagrang@perch.invalid> - 2016-09-27 21:59 +0000
            Re: Copy all URLs tmelmosfire <tmelmosfire@gmail.com> - 2016-09-27 12:38 -0700
              Re: Copy all URLs Snit <usenet@gallopinginsanity.com> - 2016-09-27 13:13 -0700
                Re: Copy all URLs Steve Carroll <fretwizzer@gmail.com> - 2016-09-27 14:27 -0700

csiph-web