Sleazy Fork is available in English.

dnvod.tv hack

open the mp4 source when a player page is loaded

Ekde 2017/04/20. Vidu La ĝisdata versio.

// ==UserScript==
// @name         dnvod.tv hack
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  open the mp4 source when a player page is loaded
// @author       march511@gmail.com
// @match        http://www.dnvod.tv/Movie/Readyplay.aspx?id=*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    let xhr = window.XMLHttpRequest;
    let open = xhr.prototype.open;
    xhr.prototype.open = function (method, url, async, user, password) {

        if (url.startsWith('/Movie/GetResource.ashx')) {

            this.addEventListener('load', function (e) {

                let result = JSON.parse(this.responseText);
                let url = result.http.provider;
                window.open(url);

            });

        }

        return open.apply(this, arguments);
    };

}) ();