Created
October 27, 2017 18:52
-
-
Save chocolatkey/b6e6e89eae3fb216d0198a71069a27b7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 WebNovel video ad bypasser | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description Bypass the video ads on webnovel.com | |
// @author chocolatkey | |
// @match https://www.webnovel.com/book* | |
// @grant none | |
// @downloadURL https://gist.github.com/chocolatkey/b6e6e89eae3fb216d0198a71069a27b7/raw | |
// @supportURL https://gist.github.com/chocolatkey/b6e6e89eae3fb216d0198a71069a27b7 | |
// @homepage https:/github.com/chocolatkey | |
// ==/UserScript== | |
(function() { | |
window.adsbygoogle = 0; | |
LBF.define("en/js/common/utils/AdCreater.07dd7.js", function(require, exports, module) { | |
function o(o) { | |
n.extend(!0, this, e, o); | |
this.init(); | |
} | |
e = { | |
timeArray: [], | |
countTime: 10, | |
countStart: !1, | |
countEnd: !1 | |
}; | |
var n = require("lib.jQuery"); | |
return o.prototype.init = function() { | |
var o = this; | |
o.onCountStar(1); | |
o.onCountEnd(); | |
$( ".bt._skip" ).attr("disabled", false); | |
$( ".bt._skip" ).addClass("j_can_skip"); | |
setTimeout(function(){ $( ".bt._skip" ).trigger( "click" ); }, 3000); | |
} | |
, o.prototype.onCountStar = function(o) { | |
console.log("videoCountStart=" + o); | |
}, o.prototype.onCountEnd = function() { | |
console.log("videoCountEnd"); | |
}, o.prototype.onVideoError = function(o) { | |
console.log(o); | |
}, o; | |
}); | |
window.onload = function(e){ | |
$( ".lock-video ._play" ).trigger( "click" ); | |
}; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment