Skip to content

Commit

Permalink
Establishment of an old feature (auto check after the ready) with mod…
Browse files Browse the repository at this point in the history
…ifications (condition on self check after the ready) and change the version number.
  • Loading branch information
Valentin committed Mar 13, 2014
1 parent bd9a693 commit e75e941
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "FuckAdBlock",
"author": ["Valentin Allaire <[email protected]>",
"Stephan Hesse <[email protected]>"],
"version": "2.2.0",
"version": "2.2.1",
"main": "fuckadblock.js",
"licenses": [],
"ignore": [
Expand Down
10 changes: 9 additions & 1 deletion fuckadblock.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
/*
FuckAdBlock 2.2
FuckAdBlock 2.2.1
http://github.com/sitexw/FuckAdBlock
*/

function FuckAdBlock() {
this.interval = 50;
this.max = 200;
this.end_reset = true;
this.check_onready = true;
var start = false;
var func_true = [];
var func_false = [];
Expand Down Expand Up @@ -78,5 +79,12 @@ function FuckAdBlock() {
}

var that = this;
window.addEventListener('load', function() {
setTimeout(function() {
if(that.check_onready === true) {
fuckAdBlock.check();
}
}, 1);
}, false);
}
var fuckAdBlock = new FuckAdBlock();
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "FuckAdBlock",
"version": "2.2.0",
"version": "2.2.1",
"description": "Detects ad blockers",
"main": "fuckadblock.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion test.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title>FuckAdBlock 2.2 Exemple</title>
<title>FuckAdBlock 2.2.1 Exemple</title>
<style>
body {
font-family: Arial;
Expand Down

0 comments on commit e75e941

Please sign in to comment.