Greasy Fork

Greasy Fork is available in English.

openload

Remove anti-adblock, ads, popups and timer waits, and show direct download link

当前为 2019-03-16 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @author       @leoncastro
// @namespace    https://github.com/leoncastro
// @name         openload
// @version      0.14.1
// @description  Remove anti-adblock, ads, popups and timer waits, and show direct download link
// @icon         data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAA/FBMVEUAAAAeP2MAmNkAoN8hNlgSSWwXLUgEITELKT8OMEkAn94Ant4AmtsAldQBW4MFh8YAktQBicxjT5sAnt4AX4lEcbUTeLBgVqBcXKMAnNxMS4pKbbEuQGwAmtoAY44xebwAk9QGjM1jT5tcTZUPM01jT5s7OGZfWKEAaJUAod8Ak9VYYqhSZKgVg8Ujf8AKSm4Agr5mPZRmPZRmPZRlR5gAod8AldNXXKEAltQAjMcAmNVWZKpeWaJUZqtKbbE+dbg+dLdEcLM7d7omgMExersAk9RgVqA7aKUAod8Ak9UAn99lR5gAm9wJhshRaa0ue74mgMEAjdBmPZQ7d7qePASIAAAASHRSTlMAOP75GiksAgcPxb3QS0Nh0+T+0hj+Yv796m3PSLNc0eF0vYgg7l/DOPDs/ejo11dV+LpM8et8qaduicHV0L7Jrer75omU6GL8xLQIAAABaklEQVR42u1S2XaCMBQMaxJAAcUFRcG673Zzb9VWW4Pi0v7/vzSCcDz9hfY+3pnMmZkb8IcG8YIoVNDtQhRFPlyg+LQgy3JhE4fBAjLr5evrbFS2fAqeJDl3v9+zrDbwGShtv6VSh0M7O89hipearsuZTotliaMiAFH6/fidWnU67WymShmx5pZLpjHAaY2QggiQ2j0dbQrg3DyTeHoE8nYrNXzpuOZseKjq3sm2Aiv1xO4BcNvnIrp66wtwoHtez4KB+1p1dw+oABPFgwON4v0wn3i3+6KEQiXCY9rZ0yMcVAKCJIaFUPysFxGGNwqBh/A9Oeuqoa6ZWw80hRykoDjRSzDePdnMTQragysVDWSoCiGtEr4QjotPHvG1ut8DnnKuayYVxWRJa4ghrZY2ucrnXzrZTKKMAcRD0w1u4UwQBJeue9dbfJR56F9zLCmKIo0bYTxmuaAKs5GFwvyGIAgG/PVB6Ov/ieYHpLEydStkqm4AAAAASUVORK5CYII=
// @include      http://openload.co
// @include      /^(https?:)?\/\/(openload\.(co|pw)|oload(\.(club|download|fun|live|space)|block\.services))\/*.*/
// @compatible   firefox+greasemonkey(3.17)
// @compatible   firefox+tampermonkey
// @compatible   chrome+tampermonkey
// @grant        none
// @run-at       document-start
// ==/UserScript==
(function(){
 //
 // @run-at document-start
 //
 window.adblock=false;
 window.adblock2=false;
 window.turnoff=true;
 window.open=function(){};
 //
 // @run-at document-end
 //
 function onready(fn){if(document.readyState!='loading')fn();else document.addEventListener('DOMContentLoaded',fn);}

 onready(function(){
  if( document.location.href.match(/\/embed\//) || $('#realdl>a') )
  {
   $('#btnView').hide();
   $('#btnDl').hide();
   $('.dlButtonContainer').show();
   $('h3.dlfile.h-method').hide();
   $('.col-md-4.col-centered-sm *').remove();
   $('#mgiframe,#main>div[id]').remove();
   $('#downloadTimer').hide();
   $('#mediaspace_wrapper').prepend( $('<div/>').attr('id', 'realdl')
    .attr('style', 'position: absolute; top: 0 ; left: 0 ; right: 0; text-align: center; z-index: 9999; background-color: #000; padding: .5em 0;')
    .on('mouseenter', function(){ $(this).fadeTo(500, 1); }).on('mouseleave', function(){ $(this).fadeTo(500, 0); })
    .append( $('<a/>').attr('href', '').attr('style', 'color: #fff; text-decoration: none; -moz-user-select: none;').text('FREE DOWNLOAD') )
    .append( $('<span/>').attr('style', 'color: #fff; padding-left: 1em;').attr('id', 'steamcopy') ) );
   $('#realdl').show();
   var streamurl_tmr = setInterval(function(){
    // <@snippet edited author="http://greasyfork.icu/forum/profile/daedelus" src="http://greasyfork.icu/forum/discussion/36362/x">
    var streamurl_src;
    var streamurl_end = false;
    $('p[id]').each(function(){
     if( !streamurl_end )
     {
      streamurl_src = streamurl_src || ($(this).text().match(/^[\w\.~-]+$/) /*TEMP_FIX: && $(this).text().match(/~/) */) ? $(this).text() : streamurl_src;
      if( streamurl_src )
       streamurl_end = true;
     }
    });
    // </@snippet>
    if( streamurl_src )
    {
     var streamurl_url = location.origin + '/stream/' + /*TEMP_FIX: streamurl_src + */$('#lqEH1').text();
     $('#realdl a').attr('href', streamurl_url);
     $('#steamcopy').text( streamurl_url );
     $('#videooverlay').click();
     $('div[style]').each(function(){ if(this.style.zIndex&&this.id!='realdl') this.remove(); });
     clearInterval(streamurl_tmr);
    }
   },100);
  }
  window.onclick=function(){};
  document.onclick=function(){};
  document.body.onclick=function(){};
 });

})();