Allowed Popups: enter a list of allowed sites?
I save a list of >20 sites on which I allow popups. What is the most efficient way to enter those sites?
==> I would like to avoid entering each one individually.
TYVM.
Todas las respuestas (1)
You can possibly do this via the Browser Console (not the Web Console).
You can enable the command-line in the Console via the Settings page of the Web Developer Tools.
- https://firefox-source-docs.mozilla.org/devtools-user/settings/
- Web Developer Tools in "3-bar" menu button -> More Tools or Tools -> Browser Tools
- select: "Enable browser chrome and add-on debugging toolboxes"
You can add the origins to the ORIGINS array.
var ORIGINS = ["https://example.com"]; var i, origin; for (i=0; origin=ORIGINS[i]; i++){ Services.perms.addFromPrincipal( Services.scriptSecurityManager.createContentPrincipalFromOrigin(origin), "popup", SitePermissions.ALLOW ); }