Re: between google and firefox it's nearly impossible to get anything done!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tim here.  Are you trying to open firefox on the same machine or on a
different machine, and if a different machine, what operating system
is that other machine running?

If it's the same machine, I'd recommend using xsel or xclip (one
might already be installed; otherwise, I prefer xsel over xclip).
You can then use a standard pipeline to extract the line from the
file and put it in the system clipboard.  If the URL is the only
thing in the file, it's pretty easy:

  xsel -ib < url_file.txt

This puts the URL in your system clipboard so you can use control+V
to paste it into the address-bar in Firefox.

If you have multiple URLs in the file, you might want to tag them
with a keyword to help you find them:

  email https://gmail.com
  long http://example.com/long/path/to/page

You can then extract the URLs with awk and pipe to xsel:

  awk '$1 == "long"{print $2}' | xsel -ib

or even wrap it in a shell function in your .bashrc/.bash_profile

  url() {
    awk -vNAME="$1" '$1 == NAME{print $2}' | xsel -ib
  }

which would then let you type

  $ url long

to get that long URL in your clipboard.

If you're trying to get it onto another machine, it would depend
on the OS and what tools you have for connecting to the Linux box.
MacOS has a similar pbcopy/pbpaste command that would let you SSH
into your Linux box, search for the URL there, emitting the result,
and then piping that into pbcopy for local use.  I'm afraid I don't
have recent Windows experience to determine how that would work over
on Windows.

Hopefully this gives you some ideas and saves you a lot of
hand-transcribing of URLs.

-tim

On April 15, 2019, Linux for blind general discussion wrote:
> I have a long ugly google url stored in a file.  It's stored in a
> file so if I find a browser that works with javascript and can take
> an url from a file when the browser gets started and open that url
> for me I can maybe get this done.  The long ugly url is over 200
> characters long which is why I would like to avoid keying it all in.
> 
> I just thought of something.  This will even work with firefox but
> it's only for us braille users who write braille on paper and have
> plenty of paper.  I could rewrite the url on paper so it's split
> into 5 character groups and have commas separating each of the
> groups and as I key in each group change the comma to a semicolon
> so I know that group already got keyed in and move along to the
> next group.
> 
> On Sun, 14 Apr 2019, Linux for blind general discussion wrote:
> 
> > Date: Sun, 14 Apr 2019 14:36:40
> > From: Linux for blind general discussion <blinux-list@xxxxxxxxxx>
> > To: Linux for blind general discussion <blinux-list@xxxxxxxxxx>
> > Subject: Re: between google and firefox it's nearly impossible to
> > get anything done!
> >
> > I am unsure what you are trying to accomplish, but have you tried
> > e-links, or links the chain  instead?
> > Both browsers are included in Debian distributions of Linux.  It
> > may still require some extra compile work  for e-links to use
> > Javascript some, links the chain can do so, I am told as of about
> > a month ago, even in DOS. Generally I  have no issues using the
> > Google services I need in lynx, but I am not doing anything with
> > YouTube. Kare
> >
> >
> >
> > On Sun, 14 Apr 2019, Linux for blind general discussion wrote:
> >  
> > > I found out a few minutes ago it's not possible to do something
> > > like: firefox < /home/jude/surf
> > > Where /home/jude/surf has an ugly google url in it that cannot
> > > be processed by
> > > lynx since google and so very many other web sites love
> > > blocking what doesn't use javascript.
> > > I was going to get an authentication token on this box so I
> > > could use youtube-viewer in a logged in state but that's not
> > > going to happen at all.
> > >
> > >
> > >
> > > --
> > >
> > > _______________________________________________
> > > Blinux-list mailing list
> > > Blinux-list@xxxxxxxxxx
> > > https://www.redhat.com/mailman/listinfo/blinux-list
> > >
> > >  
> >
> > _______________________________________________
> > Blinux-list mailing list
> > Blinux-list@xxxxxxxxxx
> > https://www.redhat.com/mailman/listinfo/blinux-list
> >  
> 
> -- 
> 
> _______________________________________________
> Blinux-list mailing list
> Blinux-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/blinux-list

_______________________________________________
Blinux-list mailing list
Blinux-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/blinux-list



[Index of Archives]     [Linux Speakup]     [Fedora]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]