Greasy Fork is available in English.

openload

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

  1. // ==UserScript==
  2. // @author @leoncastro
  3. // @namespace https://github.com/leoncastro
  4. // @name openload
  5. // @version 0.14.8
  6. // @description Remove anti-adblock, ads, popups and timer waits, and show direct download link
  7. // @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=
  8. // @include http://openload.co
  9. // @include /^(https?:)?\/\/(openload\.(co|pw)|oload\.(\w+)|oladblock\.(me|services|xyz))\/*.*/
  10. // @compatible firefox+greasemonkey(3.17)
  11. // @compatible firefox+tampermonkey
  12. // @compatible chrome+tampermonkey
  13. // @grant none
  14. // @run-at document-start
  15. // ==/UserScript==
  16. (function(){
  17. //
  18. // @run-at document-start
  19. //
  20. window.adblock=false;
  21. window.adblock2=false;
  22. window.turnoff=true;
  23. window.open=function(){};
  24. //
  25. // @run-at document-end
  26. //
  27. function onready(fn){if(document.readyState!='loading')fn();else document.addEventListener('DOMContentLoaded',fn);}
  28.  
  29. onready(function(){
  30. if( document.location.href.match(/\/embed\//) || $('#realdl>a') )
  31. {
  32. $('#btnView').hide();
  33. $('#btnDl').hide();
  34. $('.dlButtonContainer').show();
  35. $('h3.dlfile.h-method').hide();
  36. $('.col-md-4.col-centered-sm *').remove();
  37. $('#mgiframe,#main>div[id]').remove();
  38. $('#downloadTimer').hide();
  39. $('#mediaspace_wrapper').prepend( $('<div/>').attr('id', 'realdl')
  40. .attr('style', 'position: absolute; top: 0 ; left: 0 ; right: 0; text-align: center; z-index: 9999; background-color: #000; padding: .5em 0;')
  41. .on('mouseenter', function(){ $(this).fadeTo(500, 1); }).on('mouseleave', function(){ $(this).fadeTo(500, 0); })
  42. .append( $('<a/>').attr('href', '').attr('style', 'color: #fff; text-decoration: none; -moz-user-select: none;').text('DOWNLOAD') )
  43. .append( $('<span/>').attr('style', 'color: #fff; padding-left: 1em;').attr('id', 'steamcopy') ) );
  44. $('#realdl').show();
  45. var streamurl_tmr = setInterval(function(){
  46. // <@snippet edited author="https://greasyfork.org/forum/profile/daedelus" src="https://greasyfork.org/forum/discussion/36362/x">
  47. var streamurl_src;
  48. var streamurl_end = false;
  49. $('p[id]').each(function(){
  50. if( !streamurl_end )
  51. {
  52. streamurl_src = streamurl_src || ($(this).text().match(/^[\w\.~-]+$/) /*TEMP_FIX: && $(this).text().match(/~/) */) ? $(this).text() : streamurl_src;
  53. if( streamurl_src )
  54. streamurl_end = true;
  55. }
  56. });
  57. // </@snippet>
  58. if( streamurl_src )
  59. {
  60. var streamurl_url = location.origin + '/stream/' + /*TEMP_FIX: streamurl_src + */$('#DtsBlkVFQx').text();
  61. $('#realdl a').attr('href', streamurl_url);
  62. $('#steamcopy').text( streamurl_url );
  63. $('#videooverlay').click();
  64. $('div[style]').each(function(){ if(this.style.zIndex&&this.id!='realdl') this.remove(); });
  65. clearInterval(streamurl_tmr);
  66. }
  67. },100);
  68. }
  69. window.onclick=function(){};
  70. document.onclick=function(){};
  71. document.body.onclick=function(){};
  72. });
  73.  
  74. })();