NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name DPStream - remove Timer and launch directly video
// @copyright 2017, Lithium73
// @licence MIT
// @namespace http://tampermonkey.net/
// @version 0.1
// @description remove Timer and launch directly video
// @author You
// @match https://www.dpstream.net/external_link/*
// @grant none
// ==/UserScript==
(function() {
jQuery.get(document.location.href,function(data){
var indexOfOnClick = data.indexOf("window.open(");
var indexOfReturnFalse = data.indexOf("return false") - indexOfOnClick;
var str = data.substr(indexOfOnClick,indexOfReturnFalse);
str = str.replace(/\\/g, '');
str = str.replace(/\(/g, '');
str = str.replace(/\)/g, '');
str = str.replace("window.open","");
var commaIndex = str.indexOf(",");
str = str.substr(0,commaIndex);
str = str.replace(/\'/g, '');
location.href = str;
});
// Your code here...
})();