Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Q] Allowing more protocol handlers/ #295

Closed
nodiscc opened this issue May 14, 2017 · 6 comments
Closed

[Q] Allowing more protocol handlers/ #295

nodiscc opened this issue May 14, 2017 · 6 comments

Comments

@nodiscc
Copy link
Contributor

nodiscc commented May 14, 2017

Followup to #285

// If you want to enable a protocol, delete all three preferences for the protocol (external.protocolname, warn-external.protocolname, expose.protocolname).

@pyllyukko Can you explain how I would whitelist protocols such as magnet: irc: mailto: sftp: for convenience? We could add those prefs commented out for easier tweaking for individual user needs.

Currently i have set firefox to open magnet links with transmission-gtk and would like to keep this setting without diverging too much from your user.js

@pyllyukko
Copy link
Owner

It should be a matter of:

  • Setting network.protocol-handler.external.(protocol) to true (in your case, since you want to use external program to handle these)
  • Setting network.protocol-handler.expose.(protocol) to true

// If you want to enable a protocol, delete all three preferences for the protocol (external.protocolname, warn-external.protocolname, expose.protocolname).

I need to fix this part.

@pyllyukko
Copy link
Owner

BTW. Should we have this section as it is now:

user_pref("network.protocol-handler.warn-external-default",	true);
user_pref("network.protocol-handler.external.http",		false);
user_pref("network.protocol-handler.external.https",		false);
user_pref("network.protocol-handler.external.javascript",	false);
user_pref("network.protocol-handler.external.moz-extension",	false);
user_pref("network.protocol-handler.external.ftp",		false);
user_pref("network.protocol-handler.external.file",		false);
user_pref("network.protocol-handler.expose-all",		false);
user_pref("network.protocol-handler.expose.http",		true);
user_pref("network.protocol-handler.expose.https",		true);
user_pref("network.protocol-handler.expose.javascript",		true);
user_pref("network.protocol-handler.expose.moz-extension",	true);
user_pref("network.protocol-handler.expose.ftp",		true);
user_pref("network.protocol-handler.expose.file",		true);

Or by protocol, e.g.:

user_pref("network.protocol-handler.warn-external-default",	true);
user_pref("network.protocol-handler.expose-all",		false);
user_pref("network.protocol-handler.external.http",		false);
user_pref("network.protocol-handler.expose.http",		true);
user_pref("network.protocol-handler.external.https",		false);
user_pref("network.protocol-handler.expose.https",		true);
user_pref("network.protocol-handler.external.javascript",	false);
user_pref("network.protocol-handler.expose.javascript",		true);
user_pref("network.protocol-handler.external.moz-extension",	false);
user_pref("network.protocol-handler.expose.moz-extension",	true);
user_pref("network.protocol-handler.external.ftp",		false);
user_pref("network.protocol-handler.expose.ftp",		true);
user_pref("network.protocol-handler.external.file",		false);
user_pref("network.protocol-handler.expose.file",		true);

@Atavic
Copy link

Atavic commented May 21, 2017

EDIT: I'll leave as it is.
As it is is simpler to understand.

@pyllyukko
Copy link
Owner

As it is is simpler to understand.

?

@nodiscc
Copy link
Contributor Author

nodiscc commented May 22, 2017

I think what @Atavic meant is (I'll try) AS IT IS NOW IT IS SIMPLER TO UNDERSTAND and I agree :D

@pyllyukko
Copy link
Owner

I think what @Atavic meant is (I'll try) AS IT IS NOW IT IS SIMPLER TO UNDERSTAND and I agree :D

Ah, of course 😛 My bad!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants