Skip to content

Instantly share code, notes, and snippets.

@dorukcan
Last active October 7, 2016 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dorukcan/99358085eb517bdc26cd940d7b4bb05d to your computer and use it in GitHub Desktop.
Save dorukcan/99358085eb517bdc26cd940d7b4bb05d to your computer and use it in GitHub Desktop.
// ==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