Bellesa Download

Download videos from www.bellesa.co.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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);
})();