Last active
October 7, 2016 21:12
-
-
Save dorukcan/99358085eb517bdc26cd940d7b4bb05d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Dizipub Video Downloader | |
// @match http://dizipub.com/* | |
// @grant none | |
// ==/UserScript== | |
if($("#embed-wrapper").length === 0){ | |
return; | |
} | |
var iframeurl = $("#embed-wrapper iframe").attr("src"); | |
$.get(iframeurl, function(data){ | |
var videourl = data.match(/{"file": "(.*?)", "label": "720", "type": "mp4"}/)[1]; | |
$("#reportPost").after('<a target="_blank" class="button btn-dark btn-icon right" href="' + videourl + '" id="reportPost">İndir<i class="fa fa-download fa-lg"></i> </a>'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment