"Video Assistant" Firefox Plugin Pale Moon equivalent

Add-ons for Pale Moon and other applications
General discussion, compatibility, contributed extensions, themes, plugins, and more.

Moderators: FranklinDM, Lootyhoof

Kiray

"Video Assistant" Firefox Plugin Pale Moon equivalent

Unread post by Kiray » 2016-09-17, 15:28

Hello,
I'm currently switching from Firefox to Pale Moon and because the builtin (and Custom like youtube) Players had (and still have) horrible Performance (or even just Crash), I heavily used the "Video Assistant" Plugin, which Play's all videos with an freely chooseable external Player (by exec()'ing the Player with the Video's URL as argument). However this Plugin isn't installable on Pale Moon.
Are there any alternatives?

dark_moon

Re: "Video Assistant" Firefox Plugin Pale Moon equivalent

Unread post by dark_moon » 2016-09-17, 16:45

You can use Youtube without flash. Just visit the site and Pale Moon use then HTML5.
In Tycho (Pale Moon 27) you have 720+ resolutions (read the warning before use PM 27 alpha)

Thehandyman1957

Re: "Video Assistant" Firefox Plugin Pale Moon equivalent

Unread post by Thehandyman1957 » 2016-09-17, 18:03

Kiray wrote:However this Plugin isn't installable on Pale Moon.
Are there any alternatives?
As far as I know, there is not. I too had looked at this add on and searched for another but could not find. Sorry.

Kiray

Re: "Video Assistant" Firefox Plugin Pale Moon equivalent

Unread post by Kiray » 2016-09-18, 12:43

dark_moon wrote:You can use Youtube without flash. Just visit the site and Pale Moon use then HTML5.
In Tycho (Pale Moon 27) you have 720+ resolutions (read the warning before use PM 27 alpha)
I meant the HTML5 Players. Sadly Greasemonkey Scrpts can't exec() anything.

Kiray

Re: "Video Assistant" Firefox Plugin Pale Moon equivalent

Unread post by Kiray » 2016-10-08, 18:36

Ok so i finally developed a Greasemonkey Script that filters out HTML5 Video Sources and "youtube.com/watch" URLs and copies them to the Clipboard, where an small bash one-liner picks them up and executes the Videoplayer.

Here the Greasemonkey Script:

Code: Select all

// ==UserScript==
// @name        Video2Clipboard
// @namespace   none
// @description Copies "youtube.com/watch" URL and HTML5 Video Sources to Clipboard and removes the element. So External Programs can pick them up. 
// @include     *
// @version     1.0
// @grant       GM_setClipboard
// ==/UserScript==
var clipprefix="extplay ";
var regex = /https*:\/\/www.youtube.*\/watch/;

//Check if Youtube
if (regex.test(window.location.href)) {
    GM_setClipboard(clipprefix+window.location.href)
    return;
}

//Remove and copy HTML5 Videos
//document.addEventListener('DOMContentLoaded',function() {
var elems = document.querySelectorAll("video");
for (var i = 0; i < elems.length; i++) {
    elems[i].remove();
    GM_setClipboard(clipprefix+elems[i].querySelector("source").getAttribute("src"));
}
//});

//Remove and copy newly created video elements
document.addEventListener("DOMNodeInserted", function(e) {
    var elem = e.target;
    if (elem.nodeName == "VIDEO") {
        elem.remove();
        GM_setClipboard(clipprefix+elem.querySelector("source").getAttribute("src"));
    }
}, false);
And here the Bash Script:

Code: Select all

while true; do if [[ -n $( xclip -o | grep '^extplay') ]]; then url=$(xclip -o | awk '{print $2}'); smplayer $url; echo $url | xclip -i; fi; sleep 1; done

Locked