* between google and firefox it's nearly impossible to get anything done! @ Linux for blind general discussion ` Linux for blind general discussion ` Linux for blind general discussion 0 siblings, 2 replies; 17+ messages in thread From: Linux for blind general discussion @ UTC (permalink / raw) To: blinux-list 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. -- ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: between google and firefox it's nearly impossible to get anything done! between google and firefox it's nearly impossible to get anything done! Linux for blind general discussion @ ` Linux for blind general discussion ` Linux for blind general discussion ` Linux for blind general discussion 1 sibling, 1 reply; 17+ messages in thread From: Linux for blind general discussion @ UTC (permalink / raw) To: Linux for blind general discussion 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@redhat.com > https://www.redhat.com/mailman/listinfo/blinux-list > > ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: between google and firefox it's nearly impossible to get anything done! ` Linux for blind general discussion @ ` Linux for blind general discussion ` Linux for blind general discussion ` Linux for blind general discussion 0 siblings, 2 replies; 17+ messages in thread From: Linux for blind general discussion @ UTC (permalink / raw) To: Linux for blind general discussion 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@redhat.com> > To: Linux for blind general discussion <blinux-list@redhat.com> > 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@redhat.com > > https://www.redhat.com/mailman/listinfo/blinux-list > > > > > > _______________________________________________ > Blinux-list mailing list > Blinux-list@redhat.com > https://www.redhat.com/mailman/listinfo/blinux-list > -- ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: between google and firefox it's nearly impossible to get anything done! ` Linux for blind general discussion @ ` Linux for blind general discussion ` Linux for blind general discussion ` Linux for blind general discussion ` Linux for blind general discussion 1 sibling, 2 replies; 17+ messages in thread From: Linux for blind general discussion @ UTC (permalink / raw) To: blinux-list 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@redhat.com> > > To: Linux for blind general discussion <blinux-list@redhat.com> > > 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@redhat.com > > > https://www.redhat.com/mailman/listinfo/blinux-list > > > > > > > > > > _______________________________________________ > > Blinux-list mailing list > > Blinux-list@redhat.com > > https://www.redhat.com/mailman/listinfo/blinux-list > > > > -- > > _______________________________________________ > Blinux-list mailing list > Blinux-list@redhat.com > https://www.redhat.com/mailman/listinfo/blinux-list ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: between google and firefox it's nearly impossible to get anything done! ` Linux for blind general discussion @ ` Linux for blind general discussion ` Linux for blind general discussion ` Linux for blind general discussion 1 sibling, 1 reply; 17+ messages in thread From: Linux for blind general discussion @ UTC (permalink / raw) To: Linux for blind general discussion Same machine and Linux is in use. I'll check out xsel thanks. On Mon, 15 Apr 2019, Linux for blind general discussion wrote: > Date: Mon, 15 Apr 2019 07:26:24 > From: Linux for blind general discussion <blinux-list@redhat.com> > To: blinux-list@redhat.com > Subject: Re: between google and firefox it's nearly impossible to get anything > done! > > 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@redhat.com> > > > To: Linux for blind general discussion <blinux-list@redhat.com> > > > 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@redhat.com > > > > https://www.redhat.com/mailman/listinfo/blinux-list > > > > > > > > > > > > > > _______________________________________________ > > > Blinux-list mailing list > > > Blinux-list@redhat.com > > > https://www.redhat.com/mailman/listinfo/blinux-list > > > > > > > -- > > > > _______________________________________________ > > Blinux-list mailing list > > Blinux-list@redhat.com > > https://www.redhat.com/mailman/listinfo/blinux-list > > _______________________________________________ > Blinux-list mailing list > Blinux-list@redhat.com > https://www.redhat.com/mailman/listinfo/blinux-list > -- ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: between google and firefox it's nearly impossible to get anything done! ` Linux for blind general discussion @ ` Linux for blind general discussion ` Linux for blind general discussion ` Linux for blind general discussion 0 siblings, 2 replies; 17+ messages in thread From: Linux for blind general discussion @ UTC (permalink / raw) To: blinux-list Is there a reason you couldn't just rename the file containing the url to .txt so Firefox will recognize it as a plain text file, open it in Firefox and then do ctrl+A, ctrl+C, ctrl+l, and ctrl+v to copy and paste it to the address bar? Admittedly, I use Firefox as my primary browser, but this is how I handle pretty much anything that requires copy-and-pasting from the console to Firefox. Sadly, Firefox tends to treat plain-text files that don't end in .txt as binary files unless its something a web browser is designed to parse(e.g. if I wanted to copy and past a bit of source code, Firefox would just try downloading the file if I tried opening a .cpp or .sh file from my local filesystem without renaming to .txt first). ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: between google and firefox it's nearly impossible to get anything done! ` Linux for blind general discussion @ ` Linux for blind general discussion ` Linux for blind general discussion 1 sibling, 0 replies; 17+ messages in thread From: Linux for blind general discussion @ UTC (permalink / raw) To: Linux for blind general discussion On Mon, 15 Apr 2019, Linux for blind general discussion wrote: > Is there a reason you couldn't just rename the file containing the url > to .txt so Firefox will recognize it as a plain text file, open it in > Firefox and then do ctrl+A, ctrl+C, ctrl+l, and ctrl+v to copy and > paste it to the address bar? Or you could go further and make a small HTML file with a link. Then all you'd need to do is click on it. Geoff. ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: between google and firefox it's nearly impossible to get anything done! ` Linux for blind general discussion ` Linux for blind general discussion @ ` Linux for blind general discussion ` Linux for blind general discussion 1 sibling, 1 reply; 17+ messages in thread From: Linux for blind general discussion @ UTC (permalink / raw) To: Linux for blind general discussion I did get that done and got an authentication code from google. I copied that into my clipboard then tried going back to terminal and found out I had lost the youtube-viewer job as a result of having used script and a typescript file to grab the url from youtube-viewer. So I'm about to try running mate-terminal and running youtube-viewer and keying in the :login command. Then control-a control-c control-l then hit alt-f2 and run pluma and control-v to dump the clipboard contents into pluma. Then get the url saved in surf.txt and get out of pluma. Then run firefox and hit f10 then open file for surf.txt and control-a control-c control-l control-v then enter gets me to a google login. Then I allow youtube-viewer access to my account and then copy authentication code with control-c once on the copy button then close out of firefox. Then I think alt-f2 and run mate-terminal again and then run fg and see if youtube-viewer with its code entry field comes back. This last part I haven't yet tried if it works I'll have a process I'll share with the list for any wanting to login to their youtube accounts using youtube-viewer. On Mon, 15 Apr 2019, Linux for blind general discussion wrote: > Date: Mon, 15 Apr 2019 07:55:20 > From: Linux for blind general discussion <blinux-list@redhat.com> > To: blinux-list@redhat.com > Subject: Re: between google and firefox it's nearly impossible to get anything > done! > > Is there a reason you couldn't just rename the file containing the url > to .txt so Firefox will recognize it as a plain text file, open it in > Firefox and then do ctrl+A, ctrl+C, ctrl+l, and ctrl+v to copy and > paste it to the address bar? > > Admittedly, I use Firefox as my primary browser, but this is how I > handle pretty much anything that requires copy-and-pasting from the > console to Firefox. Sadly, Firefox tends to treat plain-text files > that don't end in .txt as binary files unless its something a web > browser is designed to parse(e.g. if I wanted to copy and past a bit > of source code, Firefox would just try downloading the file if I tried > opening a .cpp or .sh file from my local filesystem without renaming > to .txt first). > > _______________________________________________ > Blinux-list mailing list > Blinux-list@redhat.com > https://www.redhat.com/mailman/listinfo/blinux-list > -- ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: between google and firefox it's nearly impossible to get anything done! ` Linux for blind general discussion @ ` Linux for blind general discussion 0 siblings, 0 replies; 17+ messages in thread From: Linux for blind general discussion @ UTC (permalink / raw) To: blinux-list Wow... it just works! :) Fernando On 04/15/2019 10:59 AM, Linux for blind general discussion wrote: > I did get that done and got an authentication code from google. I > copied that into my clipboard then tried going back to terminal and > found out I had lost the youtube-viewer job as a result of having used > script and a typescript file to grab the url from youtube-viewer. So > I'm about to try running mate-terminal and running youtube-viewer and > keying in the :login command. Then control-a control-c control-l then > hit alt-f2 and run pluma and control-v to dump the clipboard contents > into pluma. Then get the url saved in surf.txt and get out of pluma. > Then run firefox and hit f10 then open file for surf.txt and control-a > control-c control-l control-v then enter gets me to a google login. > Then I allow youtube-viewer access to my account and then copy > authentication code with control-c once on the copy button then close > out of firefox. Then I think alt-f2 and run mate-terminal again and > then run fg and see if youtube-viewer with its code entry field comes > back. This last part I haven't yet tried if it works I'll have a > process I'll share with the list for any wanting to login to their > youtube accounts using youtube-viewer. > > On Mon, 15 Apr 2019, Linux for blind general discussion wrote: > >> Date: Mon, 15 Apr 2019 07:55:20 >> From: Linux for blind general discussion <blinux-list@redhat.com> >> To: blinux-list@redhat.com >> Subject: Re: between google and firefox it's nearly impossible to get anything >> done! >> >> Is there a reason you couldn't just rename the file containing the url >> to .txt so Firefox will recognize it as a plain text file, open it in >> Firefox and then do ctrl+A, ctrl+C, ctrl+l, and ctrl+v to copy and >> paste it to the address bar? >> >> Admittedly, I use Firefox as my primary browser, but this is how I >> handle pretty much anything that requires copy-and-pasting from the >> console to Firefox. Sadly, Firefox tends to treat plain-text files >> that don't end in .txt as binary files unless its something a web >> browser is designed to parse(e.g. if I wanted to copy and past a bit >> of source code, Firefox would just try downloading the file if I tried >> opening a .cpp or .sh file from my local filesystem without renaming >> to .txt first). >> >> _______________________________________________ >> Blinux-list mailing list >> Blinux-list@redhat.com >> https://www.redhat.com/mailman/listinfo/blinux-list >> ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: between google and firefox it's nearly impossible to get anything done! ` Linux for blind general discussion ` Linux for blind general discussion @ ` Linux for blind general discussion ` Linux for blind general discussion 1 sibling, 1 reply; 17+ messages in thread From: Linux for blind general discussion @ UTC (permalink / raw) To: Linux for blind general discussion It's not possible to pipe anything to firefox. I need a javascript browser that can handle pipes for this one. I'm going with my braille paper solution since I don't want to waste more time on this. This is a situation mozilla never imagined would come up I'm sure. On Mon, 15 Apr 2019, Linux for blind general discussion wrote: > Date: Mon, 15 Apr 2019 07:26:24 > From: Linux for blind general discussion <blinux-list@redhat.com> > To: blinux-list@redhat.com > Subject: Re: between google and firefox it's nearly impossible to get anything > done! > > 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@redhat.com> > > > To: Linux for blind general discussion <blinux-list@redhat.com> > > > 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@redhat.com > > > > https://www.redhat.com/mailman/listinfo/blinux-list > > > > > > > > > > > > > > _______________________________________________ > > > Blinux-list mailing list > > > Blinux-list@redhat.com > > > https://www.redhat.com/mailman/listinfo/blinux-list > > > > > > > -- > > > > _______________________________________________ > > Blinux-list mailing list > > Blinux-list@redhat.com > > https://www.redhat.com/mailman/listinfo/blinux-list > > _______________________________________________ > Blinux-list mailing list > Blinux-list@redhat.com > https://www.redhat.com/mailman/listinfo/blinux-list > -- ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: between google and firefox it's nearly impossible to get anything done! ` Linux for blind general discussion @ ` Linux for blind general discussion 0 siblings, 0 replies; 17+ messages in thread From: Linux for blind general discussion @ UTC (permalink / raw) To: blinux-list (Tim here) The suggestion was for piping it to xsel/clip which puts it on your system X clipboard for whatever purposes you want (pasting into firefox or an email or a chat window or whatever). Reading further in the thread, it sounds like you only had the one URL in the file and that Firefox was local on your machine so you should be able to do as Geoff suggested and expand the file at the shell-prompt. Make sure you use either the backticks that Geoff suggests or the "$(...)" that I suggested. It executes the commands inside them (in this case the "cat file.txt") and then replaces them in the command-line, making it something like firefox "http://example.com/really/long/url/goes/here" If you frequently use this file for exchanging between surf and firefox, you can even make a function/alias for it surff() { firefox "$(cat ~/surf)" ; } and then type "surff" and it will launch firefox on whatever URL is in that file. Alternatively, your window-manager might let you create a hot-key to spawn that command so you only have to hit a single button. -tim On April 15, 2019, Linux for blind general discussion wrote: > It's not possible to pipe anything to firefox. I need a javascript > browser that can handle pipes for this one. I'm going with my > braille paper solution since I don't want to waste more time on > this. This is a situation mozilla never imagined would come up I'm > sure. > > On Mon, 15 Apr 2019, Linux for blind general discussion wrote: > > > Date: Mon, 15 Apr 2019 07:26:24 > > From: Linux for blind general discussion <blinux-list@redhat.com> > > To: blinux-list@redhat.com > > Subject: Re: between google and firefox it's nearly impossible to > > get anything done! > > > > 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@redhat.com> To: Linux for blind general > > > > discussion <blinux-list@redhat.com> 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@redhat.com > > > > > https://www.redhat.com/mailman/listinfo/blinux-list > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > Blinux-list mailing list > > > > Blinux-list@redhat.com > > > > https://www.redhat.com/mailman/listinfo/blinux-list > > > > > > > > > > -- > > > > > > _______________________________________________ > > > Blinux-list mailing list > > > Blinux-list@redhat.com > > > https://www.redhat.com/mailman/listinfo/blinux-list > > > > _______________________________________________ > > Blinux-list mailing list > > Blinux-list@redhat.com > > https://www.redhat.com/mailman/listinfo/blinux-list > > > > -- > > _______________________________________________ > Blinux-list mailing list > Blinux-list@redhat.com > https://www.redhat.com/mailman/listinfo/blinux-list ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: between google and firefox it's nearly impossible to get anything done! ` Linux for blind general discussion ` Linux for blind general discussion @ ` Linux for blind general discussion 1 sibling, 0 replies; 17+ messages in thread From: Linux for blind general discussion @ UTC (permalink / raw) To: Linux for blind general discussion Try this: url=`cat file` lynx $url or lynx "$url" On Mon, Apr 15, 2019 at 07:01:35AM -0400, 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@redhat.com> > > To: Linux for blind general discussion <blinux-list@redhat.com> > > 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@redhat.com > > > https://www.redhat.com/mailman/listinfo/blinux-list > > > > > > > > > > _______________________________________________ > > Blinux-list mailing list > > Blinux-list@redhat.com > > https://www.redhat.com/mailman/listinfo/blinux-list > > > > -- > > _______________________________________________ > Blinux-list mailing list > Blinux-list@redhat.com > https://www.redhat.com/mailman/listinfo/blinux-list -- Rudy Vener Website: http://www.rudyvener.com ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: between google and firefox it's nearly impossible to get anything done! between google and firefox it's nearly impossible to get anything done! Linux for blind general discussion ` Linux for blind general discussion @ ` Linux for blind general discussion ` Linux for blind general discussion 1 sibling, 1 reply; 17+ messages in thread From: Linux for blind general discussion @ UTC (permalink / raw) To: Linux for blind general discussion 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. How about: firefox `cat /home/jude/surf` Though you may need to do: firefox "`cat /home/jude/surf`" to avoid problems with the shell. HTH, Geoff. ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: between google and firefox it's nearly impossible to get anything done! ` Linux for blind general discussion @ ` Linux for blind general discussion ` Linux for blind general discussion ` Linux for blind general discussion 0 siblings, 2 replies; 17+ messages in thread From: Linux for blind general discussion @ UTC (permalink / raw) To: Linux for blind general discussion Thanks for the ideas, neither work. Both get problem loading url. The first one tried to load www.cat.com too. On Sun, 14 Apr 2019, Linux for blind general discussion wrote: > Date: Sun, 14 Apr 2019 16:52:18 > From: Linux for blind general discussion <blinux-list@redhat.com> > To: Linux for blind general discussion <blinux-list@redhat.com> > Subject: Re: between google and firefox it's nearly impossible to get anything > done! > > 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. > > How about: > > firefox `cat /home/jude/surf` > > Though you may need to do: > > firefox "`cat /home/jude/surf`" > > to avoid problems with the shell. > > HTH, > Geoff. > > _______________________________________________ > Blinux-list mailing list > Blinux-list@redhat.com > https://www.redhat.com/mailman/listinfo/blinux-list > > -- ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: between google and firefox it's nearly impossible to get anything done! ` Linux for blind general discussion @ ` Linux for blind general discussion ` Linux for blind general discussion 1 sibling, 0 replies; 17+ messages in thread From: Linux for blind general discussion @ UTC (permalink / raw) To: blinux-list Tim here. If it's the only content of the file and you're launching firefox, you can use firefox "$(cat /home/jude/surf)" to open firefox pointed at the single URL in that file. -tim On April 15, 2019, Linux for blind general discussion wrote: > Thanks for the ideas, neither work. Both get problem loading url. > The first one tried to load www.cat.com too. > > On Sun, 14 Apr 2019, Linux for blind general discussion wrote: > > > Date: Sun, 14 Apr 2019 16:52:18 > > From: Linux for blind general discussion <blinux-list@redhat.com> > > To: Linux for blind general discussion <blinux-list@redhat.com> > > Subject: Re: between google and firefox it's nearly impossible to > > get anything done! > > > > 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. > > > > How about: > > > > firefox `cat /home/jude/surf` > > > > Though you may need to do: > > > > firefox "`cat /home/jude/surf`" > > > > to avoid problems with the shell. > > > > HTH, > > Geoff. > > > > _______________________________________________ > > Blinux-list mailing list > > Blinux-list@redhat.com > > https://www.redhat.com/mailman/listinfo/blinux-list > > > > > > -- > > _______________________________________________ > Blinux-list mailing list > Blinux-list@redhat.com > https://www.redhat.com/mailman/listinfo/blinux-list ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: between google and firefox it's nearly impossible to get anything done! ` Linux for blind general discussion ` Linux for blind general discussion @ ` Linux for blind general discussion ` Linux for blind general discussion 1 sibling, 1 reply; 17+ messages in thread From: Linux for blind general discussion @ UTC (permalink / raw) To: Linux for blind general discussion On Mon, 15 Apr 2019, Linux for blind general discussion wrote: > Thanks for the ideas, neither work. Both get problem loading url. The > first one tried to load www.cat.com too. That shouldn't happen. Are you typing it correctly? Putting the cat command in accents tells the shell to add the output of the command to the command line. so: firefox "`cat /home/jude/surf`" realy should work. Certainly, the word "cat" should never reach the command line. Cheers, Geoff. ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: between google and firefox it's nearly impossible to get anything done! ` Linux for blind general discussion @ ` Linux for blind general discussion 0 siblings, 0 replies; 17+ messages in thread From: Linux for blind general discussion @ UTC (permalink / raw) To: blinux-list Tim here. I suspect that it was missing the backticks. Typing firefox "cat /home/jude/surf" would send firefox to www.cat.com whereas either the firefox "`cat /home/jude/surf`" that you suggested or firefox "$(cat /home/jude/surf)" (I prefer the "$(…)" notation because it nests more easily) should expand the contents of the file into the string. -tim On April 15, 2019, Linux for blind general discussion wrote: > On Mon, 15 Apr 2019, Linux for blind general discussion wrote: > > > Thanks for the ideas, neither work. Both get problem loading > > url. The first one tried to load www.cat.com too. > > That shouldn't happen. Are you typing it correctly? > > Putting the cat command in accents tells the shell to add the > output of the command to the command line. so: > > firefox "`cat /home/jude/surf`" > > realy should work. Certainly, the word "cat" should never reach > the command line. > > Cheers, > Geoff. > > _______________________________________________ > Blinux-list mailing list > Blinux-list@redhat.com > https://www.redhat.com/mailman/listinfo/blinux-list ^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~ UTC | newest]
Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
between google and firefox it's nearly impossible to get anything done! Linux for blind general discussion
` Linux for blind general discussion
` Linux for blind general discussion
` Linux for blind general discussion
` Linux for blind general discussion
` Linux for blind general discussion
` Linux for blind general discussion
` Linux for blind general discussion
` Linux for blind general discussion
` Linux for blind general discussion
` Linux for blind general discussion
` Linux for blind general discussion
` Linux for blind general discussion
` Linux for blind general discussion
` Linux for blind general discussion
` Linux for blind general discussion
` Linux for blind general discussion
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).