PermissionsPlus

Dedicated board for extension releases/support threads

Moderators: FranklinDM, Lootyhoof

Forum rules
Please do not create new topics here unless you are an extension author in need of a dedicated releases&support thread!
User avatar
billmcct
Board Warrior
Board Warrior
Posts: 1070
Joined: 2012-09-04, 15:19
Location: Union City Georgia USA

Re: PermissionsPlus

Post by billmcct » 2020-07-26, 10:24

letmeindude wrote:
2020-07-26, 10:22
Btw, if you search for PermissionsPlus you get nothing:
https://addons.palemoon.org/search/?ter ... ssionsPlus
Use "Permissions Plus".
--------------------------------------------------------------------------------------------------------------
Dell Precision 15 7550
Windows 10 Pro. 22H2 19045.5965
Xeon W-10885M
64 GB DDR4 ECC memory (128 GB max)
2 TB Samsung 9100 Pro main M2 SSD
1 TB Intel storage M2 SSD (very very slow)
500 GB Corsair T500 storage M2 SSD (6 TB max)
Intel onboard GPU 1080p
Quadro RTX 5000 Max-Q GPU 4K

Pale Moon 33.9.x x64 AVX2 build

The difference between the Impossible and the Possible lies in a man's Determination.
Tommy Lasorda

New Tobin Paradigm

Re: PermissionsPlus

Post by New Tobin Paradigm » 2020-07-26, 10:28

Search is only as good as the tags selected by the developer.

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 5688
Joined: 2015-12-09, 15:45

Re: PermissionsPlus

Post by moonbat » 2020-07-26, 10:38

Fixed now.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net

New Tobin Paradigm

Re: PermissionsPlus

Post by New Tobin Paradigm » 2020-07-26, 11:03

As an aside, Phoebus Ascendant will take the add-on's name into account for search freeing up tags for other keywords, just don't think of abusing it though. Because if that happens repeatedly I will go back to tags only.
Last edited by New Tobin Paradigm on 2020-07-26, 11:05, edited 1 time in total.

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 5688
Joined: 2015-12-09, 15:45

Re: PermissionsPlus

Post by moonbat » 2020-07-26, 11:04

Good point. 10 tags is quite sufficient I'd say.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 5688
Joined: 2015-12-09, 15:45

Re: PermissionsPlus

Post by moonbat » 2020-08-05, 15:45

Changelog for 2.3
  • Add default icon.
  • Add clean uninstall.
  • Enhancement: Add context menu access support. Block context menu interference on a per site basis.
  • Rewrite to use PermissionManager framework instead of individual site prefs.
  • Refactored code, removed duplicate functions.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 5688
Joined: 2015-12-09, 15:45

Re: PermissionsPlus

Post by moonbat » 2020-11-06, 05:25

Changelog for 2.3.1
  • Fix cleanup on shutdown.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 5688
Joined: 2015-12-09, 15:45

Re: PermissionsPlus

Post by moonbat » 2021-03-19, 14:33

Changelog for 2.3.2
  • Remove superfluous toolbar initialization.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 5688
Joined: 2015-12-09, 15:45

Re: PermissionsPlus

Post by moonbat » 2021-04-06, 03:41

Changelog for 2.4
  • New feature: Don't save history for current domain.
  • Some code cleanup.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net

User avatar
_yup_
Moonbather
Moonbather
Posts: 59
Joined: 2025-04-26, 11:45

Re: PermissionsPlus

Post by _yup_ » 2025-10-10, 02:02

Yesterday I learned about the existence of this extension and decided that I definitely need it. But almost immediately I realized that its most useful (for me) function - possibility to set a site-specific useragent string - is not very convenient (not much better then doing this via about:config): a user have to type it manually, or copy-paste from somewhere (spending time to finding the source), and extension does not provide it with any assistance.

So I quickly enhanced the extension with a new window, where user can edit and store an arbitrary text, and now this part of extension looks like:
Image

During this I have found and fixed a bug in the Page Info initialization: PMPlus.PageInfo.init() used a wrong about:config parameter to decide whether "Manipulate Context menu" row should be displayed.

As my browser is Iceape-UXP, I have added support for it and Seamonkey.

Adding Iceape was trivial - it’s a matter of two chrome.manifest lines. But for Seamonkey I had to add a lot of try - catch, because it does not support a second parameter (default value) in Services.prefs.get*Pref() functions.

The result is here: https://repo.palemoon.org/yup/permissionsplus
(Though integration with Seamonkey's permission manager window is not complete yet: extension works, but this window displays permissions' technical names (pmplus-clipboard, etc.) instead of user-friendly ones. The task is doable, but requires a lot of typing - comparable to adding a new column to the Bookmarks window.)

User avatar
frostknight
Astronaut
Astronaut
Posts: 740
Joined: 2022-08-10, 02:25

Re: PermissionsPlus

Post by frostknight » 2025-10-10, 05:30

_yup_ wrote:
2025-10-10, 02:02
The result is here: https://repo.palemoon.org/yup/permissionsplus
Is this addon still any use?

Did you update it at all?

curious if its relevant still though. Maybe you or moonbat could tell me
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Say NO to Fascism and Corporatism as much as possible!
Also, Peace Be With us All!

User avatar
_yup_
Moonbather
Moonbather
Posts: 59
Joined: 2025-04-26, 11:45

Re: PermissionsPlus

Post by _yup_ » 2025-10-12, 15:01

frostknight wrote:
2025-10-10, 05:30
Is this addon still any use?
During last year I frequently see a famous: "Your browser is outdated. Update it". And every time, before forgetting about existence of this site forever, I am trying to cheat the protection by using some fake useragent string (even knowing that this rarely helps), so convenient way to add this string to browser settings is a good thing.

The second useful (for me) feature is selective preventing web sites from accessing the clipboard contents.
frostknight wrote:
2025-10-10, 05:30
Did you update it at all?
I have some questions to moonbat, but I use Iceape, and all my essential additions (if any) will be developed on it and applicable to it, as I can not run modern versions of Pale Moon at all.

User avatar
frostknight
Astronaut
Astronaut
Posts: 740
Joined: 2022-08-10, 02:25

Re: PermissionsPlus

Post by frostknight » 2025-10-13, 20:31

_yup_ wrote:
2025-10-12, 15:01
During last year I frequently see a famous: "Your browser is outdated. Update it". And every time, before forgetting about existence of this site forever, I am trying to cheat the protection by using some fake useragent string (even knowing that this rarely helps), so convenient way to add this string to browser settings is a good thing.
Yeah... there is a solution for discourse if needed. However, just that as I far as I know.

Other useragent sniffers need a cure
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Say NO to Fascism and Corporatism as much as possible!
Also, Peace Be With us All!

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 5688
Joined: 2015-12-09, 15:45

Re: PermissionsPlus

Post by moonbat » 2025-10-14, 22:54

_yup_ wrote:
2025-10-10, 02:02
a user have to type it manually, or copy-paste from somewhere (spending time to finding the source)
That is true for whatever method you use to change the user agent, the extension can't magically figure out what will work! The other one that does this, Sasuga, also expects you to enter the UA manually.
Also consider that the extension modifies about:permissions in addition to the page info dialog. Both these locations aren't designed for complicated UI so adding a plain textbox in a bigger dialog doesn't help much.
_yup_ wrote:
2025-10-10, 02:02
During this I have found and fixed a bug in the Page Info initialization: PMPlus.PageInfo.init() used a wrong about:config parameter to decide whether "Manipulate Context menu" row should be displayed.
Which one would that be if not dom.event.contextmenu.enabled?
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net

User avatar
_yup_
Moonbather
Moonbather
Posts: 59
Joined: 2025-04-26, 11:45

Re: PermissionsPlus

Post by _yup_ » 2025-10-15, 01:01

moonbat wrote:
2025-10-14, 22:54
the extension can't magically figure out what will work!
Nobody tells about automatic suggestion. The added window just holds a user's collection of strings, so he can do a copy-paste.

Also text editing in a big resizable window is much more convenient than in a narrow input field.
Also consider that the extension modifies about:permissions in addition to the page info dialog. Both these locations aren't designed for complicated UI so adding a plain textbox in a bigger dialog doesn't help much.
Oh, no. The textbox on my screenshot is not a part of the current UI. It is in a separate window - moveable and resizable. I just placed this window over the UI to reduce the screenshot dimensions.
The only new element in the UI itself is the "Samples" button (and it does not change the UI size :)).
Which one would that be if not dom.event.contextmenu.enabled?
pageinfo.js - lines 98 - 103:
PMPlus.Common.initPermissions(permclipboard,PMPlus.PageInfo.rbgClipboard, PMPlus.Common.globals.chkPgClipboard,"dom.event.clipboardevents.enabled");
PMPlus.Common.initPermissions(permctxmenu,PMPlus.PageInfo.rbgctxMenu, PMPlus.Common.globals.chkPgctxMenu,"dom.event.clipboardevents.enabled");
PMPlus.Common.initPermissions(permhistory,PMPlus.PageInfo.rbgHistory, PMPlus.Common.globals.chkPgHistory,"places.history.enabled");
Whereas in permissionsmanager.js correspondent lines are completely correct:
PMPlus.Common.initPermissions(permclipboard,PMPlus.Pmgr.rbgClipboard,PMPlus.Common.globals.chkPmgrClipboard,"dom.event.clipboardevents.enabled");
PMPlus.Common.initPermissions(permctxmenu,PMPlus.Pmgr.rbgctxMenu,PMPlus.Common.globals.chkPmgrctxMenu,"dom.event.contextmenu.enabled");
PMPlus.Common.initPermissions(permhistory,PMPlus.Pmgr.rbgHistory,PMPlus.Common.globals.chkPmgrHistory,"places.history.enabled");
Looks like a copy-paste issue.

User avatar
moonbat
Knows the dark side
Knows the dark side
Posts: 5688
Joined: 2015-12-09, 15:45

Re: PermissionsPlus

Post by moonbat » 2025-10-15, 01:17

_yup_ wrote:
2025-10-15, 01:01
Also text editing in a big resizable window is much more convenient than in a narrow input field.
That field is anyway just meant to paste the string gotten from elsewhere, it's not an editor :)

Thanks for pointing out the copy paste error, I'll push a fix for it.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."

Image
KDE Neon on a Slimbook Excalibur (Ryzen 7 8845HS, 64 GB RAM)
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Jabber: moonbat@hot-chili.net

User avatar
_yup_
Moonbather
Moonbather
Posts: 59
Joined: 2025-04-26, 11:45

Re: PermissionsPlus

Post by _yup_ » 2025-10-15, 01:26

moonbat wrote:
2025-10-15, 01:17
That field is anyway just meant to paste the string gotten from elsewhere
Oh yeah. And I decided that this "elsewhere" should be somewhere nearby :)