Skip to content

Commit

Permalink
Correcting small errors due to merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin committed Mar 13, 2014
1 parent 862f682 commit bd9a693
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
12 changes: 1 addition & 11 deletions fuckadblock.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
/*
FuckAdBlock 2.2 - some modifications to the original script:
- removed automatic check at beginning because was failing in my case (window onload)
- added function "removeAll()" to dettach all the callbacks (to be able to conveniently use anonymous functions passed by value)
- removed the "body" closure and using document.body everywhere instead (trying to initialize the closure var on window load was kinda not always working)
https://github.com/tchakabam/FuckAdBlock
*/

/*
FuckAdBlock 2.1
FuckAdBlock 2.2
http://github.com/sitexw/FuckAdBlock
*/

Expand Down Expand Up @@ -89,4 +80,3 @@ function FuckAdBlock() {
var that = this;
}
var fuckAdBlock = new FuckAdBlock();

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"repository": {
"type": "git",
"url": "git://github.com/tchakabam/FuckAdBlock.git"
"url": "git://github.com/sitexw/FuckAdBlock.git"
},
"keywords": [
"ad",
Expand All @@ -17,7 +17,7 @@
],
"author": "Valentin Allaire <[email protected]>, Stephan Hesse <[email protected]>",
"bugs": {
"url": "https://github.com/tchakabam/FuckAdBlock/issues"
"url": "https://github.com/sitexw/FuckAdBlock/issues"
},
"homepage": "https://github.com/tchakabam/FuckAdBlock"
"homepage": "https://github.com/sitexw/FuckAdBlock"
}
4 changes: 2 additions & 2 deletions 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.0 Exemple</title>
<title>FuckAdBlock 2.2 Exemple</title>
<style>
body {
font-family: Arial;
Expand All @@ -13,7 +13,7 @@
background-color: red;
}
</style>
<script src="./fuckadblock.min.js"></script>
<script src="./fuckadblock.js"></script>
<script>
fuckAdBlock.add(true, function() {
alert('AdBlock detected !');
Expand Down

0 comments on commit bd9a693

Please sign in to comment.