Add-ons for Pale Moon and other applications
General discussion, compatibility, contributed extensions, themes, plugins, and more.
Moderators: FranklinDM, Lootyhoof
-
fatboy
- Astronaut
- Posts: 558
- Joined: 2017-12-19, 08:03
- Location: Canada
Unread post
by fatboy » 2023-05-15, 20:51
Good Day folks,
I am using the pentadactyl and scriptblock addons and was wondering if there is a way to add a keybinding for ScriptBlock, a keybinding that can toggle it on and off?
Something in the lines of?
Thank you
Systemd Free - MX Linux, Antix Linux & Artix Linux
-
fatboy
- Astronaut
- Posts: 558
- Joined: 2017-12-19, 08:03
- Location: Canada
Unread post
by fatboy » 2023-05-16, 03:47
Good suggestion, but Scriptblocker is not listed as an option, not sure I can bind the addon using the extension
Systemd Free - MX Linux, Antix Linux & Artix Linux
-
Kris_88
- Keeps coming back
- Posts: 937
- Joined: 2021-01-26, 11:18
Unread post
by Kris_88 » 2023-05-16, 04:25
As far as I can see from the sources, the scriptblock cannot be quickly disabled globally (or I'm wrong?). It can only be disabled in the add-on manager with a browser restart. It would be best to add the ability to disable/enable the add-on and at the same time assign a hot key.
-
smithy
- Moon lover
- Posts: 77
- Joined: 2020-07-02, 11:44
Unread post
by smithy » 2023-05-16, 06:30
Kris_88 wrote: ↑2023-05-16, 04:25
As far as I can see from the sources, the scriptblock cannot be quickly disabled globally (or I'm wrong?). It can only be disabled in the add-on manager with a browser restart…
You can place the scriptblock icon along side the URL bar. Click on or off on a per site basis. (Default is off)
Is that what you mean by disabled?
It is common to think of our own time as standing at the apex of civilisation from which the deficiencies of preceding ages may patronisingly be viewed in the light of what is assumed to be progress. The reality is that in the long perspective of history the present century will not hold an enviable position unless the second half is to redeem its first.
Chief US prosecutor Robert Jackson's closing statement - Nurenburg 1946
-
moonbat
- Knows the dark side
- Posts: 4980
- Joined: 2015-12-09, 15:45
-
Contact:
Unread post
by moonbat » 2023-05-16, 08:42
smithy wrote: ↑2023-05-16, 06:30
You can place the scriptblock icon along side the URL bar. Click on or off on a per site basis. (Default is off)
Is that what you mean by disabled?
No, fatboy is looking for a way to assign a hotkey for doing the same thing.
-
jars_
- Lunatic
- Posts: 398
- Joined: 2016-12-27, 00:12
Unread post
by jars_ » 2023-05-16, 08:57
For Scriptblock hotkey action:
-
fatboy
- Astronaut
- Posts: 558
- Joined: 2017-12-19, 08:03
- Location: Canada
Unread post
by fatboy » 2023-05-16, 15:44
moonbat wrote: ↑2023-05-16, 08:42
No, fatboy is looking for a way to assign a hotkey for doing the same thing.
This is exactly what I am looking for. I want to toggle the ScriptBlock Extension with a hotkey, as opposed to clicking on it. I want to use the keyboard as much as possible
Systemd Free - MX Linux, Antix Linux & Artix Linux
-
fatboy
- Astronaut
- Posts: 558
- Joined: 2017-12-19, 08:03
- Location: Canada
Unread post
by fatboy » 2023-05-16, 15:54
Awesome! I have found a solution, thanks to jars_!
Here it is, Control + j will toggle it on and off
Code: Select all
map <C-j> :execute yesScriptBrowserOverlay.toggle(setStyleDisabled);<CR>
Systemd Free - MX Linux, Antix Linux & Artix Linux
-
Kris_88
- Keeps coming back
- Posts: 937
- Joined: 2021-01-26, 11:18
Unread post
by Kris_88 » 2023-05-16, 16:12
For some reason, I thought that you want to turn on/off its functionality completely ...