Bellesa Download

Download videos from www.bellesa.co.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         Bellesa Download
// @name:zh-CN   Bellesa Download
// @namespace    uuvvser
// @version      0.9
// @description  Download videos from www.bellesa.co.
// @description:zh-cn 下载www.bellesa.co站点的视频。
// @author       uuvvser
// @match        https://www.bellesa.co/videos/*
// @grant        none
// @run-at       context-menu
// ==/UserScript==
(function() {
    'use strict';
    var blurl=document.querySelector("video source[type='video/mp4']").src;
    var bltitle=document.querySelectorAll("h2")[0].textContent;
    var bldom=document.querySelectorAll("h2")[0];
    var newdom=document.createElement("a");
    newdom.textContent="DOWNLOAD";
    newdom.href=blurl;
    newdom.download=bltitle;
    newdom.target="_blank";
    bldom.appendChild(newdom);
})();