LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-13-2018, 04:06 PM   #1
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,128

Rep: Reputation: 45
Is there a browser than can be set up to open links in another browser such as firefox?


Is there a browser that can be set up to open links in another browser such a firefox?

The links are in the bookmarks.html file format exported from firefox. Don't want this file to be opened with firefox because this would fetch all the DNS names in all links in the file and there are other privacy issues too. Instead, bookmarks.html would be opened with another browser that is blocked from internet access. And then you click on links and for each link clicked a firefox window would be launched. Can this be done?

Last edited by Ulysses_; 09-13-2018 at 05:15 PM.
 
Old 09-13-2018, 05:10 PM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 8,553

Rep: Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571Reputation: 3571
One option: here's a tmux plugin to quickly open HTTP(s) links displayed in the terminal, in the browser of your choice:

https://github.com/tmux-plugins/tmux-open
 
Old 09-13-2018, 05:23 PM   #3
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,128

Original Poster
Rep: Reputation: 45
Kinda awkward this. It's nice in normal browsers that you can press ctrl and click on lots of links to open in new windows/tabs.
 
Old 09-13-2018, 06:00 PM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19 MATE
Posts: 6,436
Blog Entries: 2

Rep: Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112
Why don't you right click on the bookmarks.html file and open it with LibreOffice Writer.

Then you can follow any links you want in that document by control clicking on them to view the link in Firefox.
 
1 members found this post helpful.
Old 09-13-2018, 06:17 PM   #5
lougavulin
Member
 
Registered: Jul 2018
Distribution: Slackware,x86_64,current
Posts: 257

Rep: Reputation: 91
You also can do a little shell to open links into firefox's new tab.
Opening links one by one or all at once, I guess it is according how many links your file contains.
 
Old 09-14-2018, 11:33 AM   #6
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,128

Original Poster
Rep: Reputation: 45
LibreOffice Writer does the job. It probably does not open any connections at all, but just to be sure, how can this be confirmed?

Last edited by Ulysses_; 09-14-2018 at 01:10 PM.
 
Old 09-14-2018, 01:40 PM   #7
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19 MATE
Posts: 6,436
Blog Entries: 2

Rep: Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112
I think that it is unlikely that LibreOffice opens any connections - I imagine that it just calls on the default browser to open the particular URL.

However, if this is something of concern, then you could always use WireShark to sniff your network traffic. Either that or you could examine the LibreOffice source code (https://www.libreoffice.org/about-us/source-code/). Alternatively, contact LibreOffice themselves and ask them (https://www.libreoffice.org/get-help/feedback/).
 
Old 09-14-2018, 02:15 PM   #8
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,128

Original Poster
Rep: Reputation: 45
Found a safer approach: create a group that is never allowed to use the internet and start LibreOffice Writer as a member of this group.

https://askubuntu.com/questions/4507...r-each-program
 
Old 09-14-2018, 02:27 PM   #9
scasey
Senior Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.5
Posts: 2,218

Rep: Reputation: 699Reputation: 699Reputation: 699Reputation: 699Reputation: 699Reputation: 699
I guess I'm confused.
The bookmarks.html file that's created by exporting bookmarks from Firefox is just an html document ("web page") containing links for each of the bookmarks exported. One page with many links.

Opening that page in Firefox (or any other browser) doesn't "fetch" anything, it just displays a list of the links.
Clicking on a link will open the website (as if one clicked on a bookmark) in the same window and tab.
One can right-click on a link to open it in a new tab or window.
If you don't click on a link, nothing happens.

I don't understand, Ulysses_, what the issue is. What problem are you trying to solve, please?
 
Old 09-14-2018, 02:38 PM   #10
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 4,844
Blog Entries: 6

Rep: Reputation: 2674Reputation: 2674Reputation: 2674Reputation: 2674Reputation: 2674Reputation: 2674Reputation: 2674Reputation: 2674Reputation: 2674Reputation: 2674Reputation: 2674
Quote:
Originally Posted by scasey View Post
Opening that page in Firefox (or any other browser) doesn't "fetch" anything...
Firefox will pre-fetch DNS queries for most things it thinks a user "might" click - that includes links in pages and visible bookmarks...

You can disable much of that with about:config options, look for anything with "predictor" or "prefetch" in the name and consider what it does - not always obvious (note that you need to think about what you are disabling, it can/will affect browsing performance).

These two should be false (true by default):

Code:
network.predictor.enable-prefetch       false
network.predictor.enabled               false
This should be true (false by default):

Code:
network.dns.disablePrefetch             true

Last edited by astrogeek; 09-14-2018 at 02:55 PM. Reason: Added params, new typos for old
 
Old 09-14-2018, 02:57 PM   #11
scasey
Senior Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.5
Posts: 2,218

Rep: Reputation: 699Reputation: 699Reputation: 699Reputation: 699Reputation: 699Reputation: 699
Quote:
Originally Posted by astrogeek View Post
Firefox will pre-fetch DNS queries for most things it thinks a user "might" click - that include links in pages...

You can disable much of that with about:config options, look for anything with "predictor" or "prefetch" in the name and turn it off (note that you need to think about what you are disaabling, it can/will affect browsing performance).

These two should be false (true by default):

Code:
network.predictor.enable-prefetch
network.predictor.enabled
Interesting...
As I read it, predictor entries are stored in the cache and are a result of having visited a site before, not just because a link appears on a page. Additionally, the site will have had a flag set to make that cache entry.

That does not appear to be true for DNS pre-fetching...but I don't see how that would be harmful ('tho I need to do a bit more digging).

That said, wouldn't resetting the predictor values and (perhaps) clearing the cache accomplish what the OP wants?

Do other browsers do the prefetch thing? That export to html function is designed to copy bookmarks between browsers in addition to backups. I used it to copy bookmarks from my well-used Windows FF to my newly-installed Linux copy.

Thanks for the education. What I like about LQ. Learn something every day...
 
Old 09-14-2018, 03:13 PM   #12
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 4,844
Blog Entries: 6

Rep: Reputation: 2674Reputation: 2674Reputation: 2674Reputation: 2674Reputation: 2674Reputation: 2674Reputation: 2674Reputation: 2674Reputation: 2674Reputation: 2674Reputation: 2674
Quote:
Originally Posted by scasey View Post
That does not appear to be true for DNS pre-fetching...but I don't see how that would be harmful ('tho I need to do a bit more digging).
If it makes an interaction across a network not knowingly initiated by the user, it will be exploited by malicious actors. I have been somewhat stunned by how many ordinary things can be, are manipulated for advantage or with harmful intent... the internet has gone from superhiway to Mad Max in recent years - never assume aanything!

With regard to Firefox, the configs are often so poorly documented and change both meaning and applicability so frequently, I never assume I know what they do without looking at the resulting network traffic. Open wireshark and set up a default Firefox (or any browser) instance and begin to browse... not for the faint hearted!
 
Old 09-14-2018, 03:23 PM   #13
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,128

Original Poster
Rep: Reputation: 45
In fact even more drastic measures are in place here if anyone is interested:

Firefox bookmarks are deleted. Only a few new bookmarks are added and they are periodically exported and deleted too, to be joined into a single bookmarks.html in another VM that has no internet access.

Also intercepting the /usr/bin/firefox script and replacing it with a script that sends the URL to another VM to run firefox there:
Code:
#!/bin/sh
echo $* | socat - UDP-DATAGRAM:255.255.255.255:7777,broadcast
The other VM is listening on 7777:
Code:
socat -u udp-l:7777,fork system:"read URL; firefox \$URL"
In this VM firefox or its plugins or downloads can get as nosy as they want, they will never have access to user data in the first VM.

Emails are read in yet another VM with thunderbird installed that has its firefox similarly intercepted to protect the email store. So you click on links in emails and firefox is launched in the firefox VM.

Last edited by Ulysses_; 09-14-2018 at 04:29 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible to set Letter 'o' as hotkey to open Liferea links in External Browser? linustalman Linux - Software 5 11-05-2016 12:38 AM
Is the links text browser safer than a GUI browser? whois Linux - Software 5 10-31-2014 10:41 PM
Make Seamonkey mail open Firefox browser on links? MrUmunhum Linux - General 1 07-18-2014 12:17 PM
Getting Firefox from links web browser Four Linux - Newbie 2 07-01-2007 12:15 PM
Can you set mozillafirefox to be the default browser when clicking on links in email? JBailey742 Linux - Software 2 08-08-2006 12:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration