1. Treat errors as warnings and try again. 2. filmix.my uses more than one video hosts, we'll assume that page displays no more than one video element.
50 lines
1.4 KiB
JavaScript
50 lines
1.4 KiB
JavaScript
// ==UserScript==
|
|
// @name Filmix.my downloader
|
|
// @namespace http://lesbian.ddns.net/
|
|
// @version 2025-11-24
|
|
// @description Adds download URL to videos in filmix.my
|
|
// @author Tomas
|
|
// @match https://filmix.my/play/*
|
|
// @icon https://www.google.com/s2/favicons?sz=64&domain=filmix.my
|
|
// @grant none
|
|
// ==/UserScript==
|
|
|
|
(function() {
|
|
'use strict';
|
|
|
|
let desc = document.getElementById("play-descr");
|
|
|
|
for (let i = 0; i < 2; i++)
|
|
{
|
|
let br = document.createElement("BR");
|
|
desc.append(br);
|
|
}
|
|
|
|
let url = document.createElement("A");
|
|
url.textContent = "👀";
|
|
desc.append(url);
|
|
|
|
let timer = setInterval(()=>{
|
|
try
|
|
{
|
|
let players = document.getElementsByTagName("video");
|
|
if (players.length == 0) return;
|
|
|
|
for (const player of players)
|
|
{
|
|
// if (new URL(player.src).hostname.endsWith("werkecdn.me"))
|
|
if (true)
|
|
{
|
|
let filename = new URL(player.src).pathname.split("/").pop();
|
|
url.textContent = `Parsisiūsti 😜 (${filename}) 🏴☠️`;
|
|
url.href = `${player.src}`;
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
catch (ex)
|
|
{
|
|
console.warn(ex);
|
|
}
|
|
}, 500);
|
|
})(); |