Running a shell script
Moderators: FranklinDM, Lootyhoof
-
- Fanatic
- Posts: 141
- Joined: 2018-07-12, 02:42
- Location: Win7
Running a shell script
Is there an add-on that lets me run a shell script or executable when I click on a certain domain?
For example, I'd like that when I click on a youtube link, instead of continuing to the youtube website, PM would run a short batch script I've prepared that downloads the video to a certain folder and opens it in VLC
For example, I'd like that when I click on a youtube link, instead of continuing to the youtube website, PM would run a short batch script I've prepared that downloads the video to a certain folder and opens it in VLC
-
- Knows the dark side
- Posts: 4981
- Joined: 2015-12-09, 15:45
Re: Running a shell script
I don't think there are any extensions that do exactly that but there's a workaround - you can install GetEmAll and have it download the video to a specified folder and then use inotifywait as described here. (The package to install it from on Ubuntu derivatives if absent is inotify-tools).
"One hosts to look them up, one DNS to find them and in the darkness BIND them."
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
-
- Knows the dark side
- Posts: 4981
- Joined: 2015-12-09, 15:45
Re: Running a shell script
Can it invoke scripts from the local filesystem? Since that's what his original request was about.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
-
- Lunatic
- Posts: 399
- Joined: 2016-12-27, 00:12
Re: Running a shell script
Yes.Can it invoke scripts from the local filesystem?
1. with Path2file
-
- Moon lover
- Posts: 79
- Joined: 2021-12-04, 22:07
Re: Running a shell script
Utnapishtim wrote: ↑2021-12-28, 07:56Is there an add-on that lets me run a shell script or executable when I click on a certain domain?
Actually, there are.
Both can automatically open chosen web sites in a browser of choice / video player / downloader / executable.
IE View 1.5.1 (last "clean" version) (LGPL 3.0) and IE View Lite 1.3.5 (MPL 1.1) with its super lean code, but the "OK" button in the preferences doesn't work.
Download:
Code: Select all
IE View 1.5.1
https://ca-archive.us.to/storage/0/35/ie_view-1.5.1-sm+fx-windows.xpi?origin=caa&action=download
IE View Lite 1.3.5 (needs a fix):
https://ca-archive.us.to/storage/1/1429/ie_view_lite-1.3.5-fx.xpi?origin=caa&action=download
You do not have the required permissions to view the files attached to this post.
-
- Fanatic
- Posts: 141
- Joined: 2018-07-12, 02:42
- Location: Win7
Re: Running a shell script
Thanks guys I've installed both IE View 1.5.1 and CustomButtons. Had some problems getting IE View to work initially, but that turned out to be the fault of my batch file
Also a big <3 to all Pale Moon & XUL maintainers! I'd bet this would be a big no in a WebEx browser
Also a big <3 to all Pale Moon & XUL maintainers! I'd bet this would be a big no in a WebEx browser
-
- Knows the dark side
- Posts: 4981
- Joined: 2015-12-09, 15:45
Re: Running a shell script
Web Extensions are just glorified Greasemonkey scripts, given they can't do much beyond modifying webpages. They cannot modify or extend the browser UI in any way, let alone interact with the OS like these ones do. That's why you only see them as buttons, or at the most launch in a separate tab.
"One hosts to look them up, one DNS to find them and in the darkness BIND them."
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
Linux Mint 21 Xfce x64 on HP i5-5200 laptop, 12 GB RAM.
AutoPageColor|PermissionsPlus|PMPlayer|Pure URL|RecordRewind|TextFX
-
- Pale Moon guru
- Posts: 35637
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: Running a shell script
A hint is in the name... WEB extensions.
As opposed to BROWSER extensions.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
-
- Fanatic
- Posts: 122
- Joined: 2016-02-07, 17:15
Re: Running a shell script
Legacy version-6.8.6 of openwith https://github.com/darktrojan/openwith/tree/legacy does what you seek.
voidlinux_x64 glibc-2.78 / selfcompiled latest Palemoon (gcc-13.2.0) / GTK2