X
Thinta lapha ukuze uye kuveshini yamakhalekhukhwini kusayithi.

Isithangami Sabeseki

Lolu chungechunge lwabekwa kunqolobane. Uyacelwa ubuze umbuzo omusha uma udinga usizo.

Can I make a button that toggles browser.link.open_newwindow.restriction from 0 to 2?

Kuphostiwe

I’m used to a certain way of controlling all my tabs.*

I need firefox‘s settings ‘browser.link.open_newwindow’ and ‘browser.link.open_newwindow.restriction’, to work the way I want to work. But because some websites make links open in new tabs (technically in new windows I suppose), not via the target attribute, but via something else, I really want to set browser.link.open_newwindow.restriction to 0. Just to normally browse the internet.**

But some other websites who use scripts in a bona fide way for things like logging on, don‘t take users like me into account, who have set browser.link.open_newwindow to 1 and browser.link.open_newwindow.restriction to 0. For example, logging on to Feedly fails, because it can only be done in a pop-up. Expanding one message in Gmail also isn‘t possible with my settings.

For such instances I would like to be able to toggle browser.link.open_newwindow.restriction from 0 to 2. Or from 0 to 1, that would be just as good. It just needs to be 0 as a default, but toggled to something else when needed.

I wouldn‘t know the first thing about making such a button. I guess what I‘m asking is: how easy is it to make one (if it doesn’t exist already) and are there instructions somewhere, that are comprehensable for a layperson?

———

 * If I left-click on something it means I want to leave the current webpage and go to the clicked webpage in a the same tab. The things I want to open in a new tab to read soon, I open in a new tab, and it opens in the background as the rightmost tab. A part of my brain makes sure the amount of tabs doesn‘t grow too large. Something interrupting I need to read right now I open in a new window. I’ve always worked like this. Even the last years, when more and more websites and browsers started to push a model where tabs are opening left and right, the back button suddenly closes a tab and moves the focus somewhere unexpected etc.

 ** a good example of a website which would still open left-clicked links in a new tab even with browser.link.open_newwindow set to 1 is quora.com, but that‘s just one I think of and there are many, many more.

I’m used to a certain way of controlling all my tabs.* I need firefox‘s settings ‘browser.link.open_newwindow’ and ‘browser.link.open_newwindow.restriction’, to work the way I want to work. But because some websites make links open in new tabs (technically in new windows I suppose), not via the target attribute, but via something else, I really want to set browser.link.open_newwindow.restriction to 0. Just to normally browse the internet.** But some other websites who use scripts in a bona fide way for things like logging on, don‘t take users like me into account, who have set browser.link.open_newwindow to 1 and browser.link.open_newwindow.restriction to 0. For example, logging on to Feedly fails, because it can only be done in a pop-up. Expanding one message in Gmail also isn‘t possible with my settings. For such instances I would like to be able to toggle browser.link.open_newwindow.restriction from 0 to 2. Or from 0 to 1, that would be just as good. It just needs to be 0 as a default, but toggled to something else when needed. I wouldn‘t know the first thing about making such a button. I guess what I‘m asking is: how easy is it to make one (if it doesn’t exist already) and are there instructions somewhere, that are comprehensable for a layperson? ———  * If I left-click on something it means I want to leave the current webpage and go to the clicked webpage in a the same tab. The things I want to open in a new tab to read soon, I open in a new tab, and it opens in the background as the rightmost tab. A part of my brain makes sure the amount of tabs doesn‘t grow too large. Something interrupting I need to read right now I open in a new window. I’ve always worked like this. Even the last years, when more and more websites and browsers started to push a model where tabs are opening left and right, the back button suddenly closes a tab and moves the focus somewhere unexpected etc.  ** a good example of a website which would still open left-clicked links in a new tab even with browser.link.open_newwindow set to 1 is quora.com, but that‘s just one I think of and there are many, many more.

Okulungisiwe ngu sim40

Eminye Imininingwane Yohlelo

Isisebenziso

  • I-ejenti Engumsebenzisi: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:62.0) Gecko/20100101 Firefox/62.0

Eminye Imininingwane

Shadow110 1072 izisombululo 14836 izimpendulo
Kuphostiwe

Hi, not that I know how to do.

This may work for you :

As well use these 2 ad blockers :

Malware protection, but it also blocks 3rd party cookies

Note the above can break sites and video. Will have to custom set for all your favourite sites. They all have a Pause or Stop. Or something from here :

Hi, not that I know how to do. This may work for you : *https://addons.mozilla.org/firefox/addon/no-tabs/ As well use these 2 ad blockers : *https://addons.mozilla.org/firefox/addon/ghostery/ *https://addons.mozilla.org/firefox/addon/ublock-origin/ Malware protection, but it also blocks 3rd party cookies *https://addons.mozilla.org/firefox/addon/malwarebytes/ Note the above can break sites and video. Will have to custom set for all your favourite sites. They all have a Pause or Stop. Or something from here : *https://blog.mozilla.org/firefox/make-your-firefox-browser-a-privacy-superpower-with-these-extensions/?utm_source=www.mozilla.org&utm_medium=referral&utm_campaign=fx-content-hub
Shadow110 1072 izisombululo 14836 izimpendulo
Kuphostiwe

The back button should not e doing anything other than taking you back. If it is doing something else like closing tabs or windows then something is wrong.

I forgot one : https://addons.mozilla.org/firefox/addon/noscript/

The back button should not e doing anything other than taking you back. If it is doing something else like closing tabs or windows then something is wrong. I forgot one : https://addons.mozilla.org/firefox/addon/noscript/
cor-el
  • Top 10 Contributor
  • Moderator
17588 izisombululo 159104 izimpendulo
Kuphostiwe
See: *https://www.ghacks.net/2017/11/24/run-userchrome-js-scripts-in-firefox-57-or-newer/ See Services.prefs. *https://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_code_modules/Services.jsm