YaWK  24.1
Yet another WebKit
fuckAdBlock.js File Reference

Go to the source code of this file.

Functions

 if (window.fuckAdBlock===undefined)
 

Variables

FuckAdBlock prototype _bait = null
 
FuckAdBlock prototype _checkBait
 
FuckAdBlock prototype _creatBait
 
FuckAdBlock prototype _destroyBait
 
FuckAdBlock prototype _log
 
FuckAdBlock prototype _options = null
 
FuckAdBlock prototype _stopLoop
 
FuckAdBlock prototype _var = null
 
FuckAdBlock prototype check
 
FuckAdBlock prototype clearEvent
 
FuckAdBlock prototype emitEvent
 
window FuckAdBlock = FuckAdBlock
 
FuckAdBlock prototype on
 
FuckAdBlock prototype onDetected
 
FuckAdBlock prototype onNotDetected
 
FuckAdBlock prototype setOption
 
function window
 

Function Documentation

◆ if()

if ( window.  fuckAdBlock = == undefined)

Definition at line 244 of file fuckAdBlock.js.

244  {
245  window.fuckAdBlock = new FuckAdBlock({
246  checkOnLoad: true,
247  resetOnEnd: true
248  });
249  }
function window
Definition: fuckAdBlock.js:8
window FuckAdBlock
Definition: fuckAdBlock.js:242

References FuckAdBlock, and window.

Variable Documentation

◆ _bait

FuckAdBlock prototype _bait = null

Definition at line 54 of file fuckAdBlock.js.

◆ _checkBait

FuckAdBlock prototype _checkBait

Definition at line 139 of file fuckAdBlock.js.

◆ _creatBait

FuckAdBlock prototype _creatBait
Initial value:
= function() {
var bait = document.createElement('div');
bait.setAttribute('class', this._options.baitClass);
bait.setAttribute('style', this._options.baitStyle);
this._var.bait = window.document.body.appendChild(bait);
this._var.bait.offsetParent;
this._var.bait.offsetHeight;
this._var.bait.offsetLeft;
this._var.bait.offsetTop;
this._var.bait.offsetWidth;
this._var.bait.clientHeight;
this._var.bait.clientWidth;
if(this._options.debug === true) {
this._log('_creatBait', 'Bait has been created');
}
}
FuckAdBlock prototype _var
Definition: fuckAdBlock.js:53
FuckAdBlock prototype _log
Definition: fuckAdBlock.js:56
FuckAdBlock prototype _options
Definition: fuckAdBlock.js:52

Definition at line 75 of file fuckAdBlock.js.

◆ _destroyBait

FuckAdBlock prototype _destroyBait
Initial value:
= function() {
window.document.body.removeChild(this._var.bait);
this._var.bait = null;
if(this._options.debug === true) {
this._log('_destroyBait', 'Bait has been removed');
}
}

Definition at line 93 of file fuckAdBlock.js.

◆ _log

Initial value:
= function(method, message) {
console.log('[FuckAdBlock]['+method+'] '+message);
}

Definition at line 56 of file fuckAdBlock.js.

◆ _options

FuckAdBlock prototype _options = null

Definition at line 52 of file fuckAdBlock.js.

◆ _stopLoop

Initial value:
= function(detected) {
clearInterval(this._var.loop);
this._var.loop = null;
this._var.loopNumber = 0;
if(this._options.debug === true) {
this._log('_stopLoop', 'A loop has been stopped');
}
}

Definition at line 189 of file fuckAdBlock.js.

◆ _var

FuckAdBlock prototype _var = null

Definition at line 53 of file fuckAdBlock.js.

◆ check

Definition at line 102 of file fuckAdBlock.js.

◆ clearEvent

FuckAdBlock prototype clearEvent
Initial value:
= function() {
this._var.event.detected = [];
this._var.event.notDetected = [];
if(this._options.debug === true) {
this._log('clearEvent', 'The event list has been cleared');
}
}

Definition at line 218 of file fuckAdBlock.js.

◆ emitEvent

Initial value:
= function(detected) {
if(this._options.debug === true) {
this._log('emitEvent', 'An event with a '+(detected===true?'positive':'negative')+' detection was called');
}
var fns = this._var.event[(detected===true?'detected':'notDetected')];
for(var i in fns) {
if(this._options.debug === true) {
this._log('emitEvent', 'Call function '+(parseInt(i)+1)+'/'+fns.length);
}
if(fns.hasOwnProperty(i)) {
fns[i]();
}
}
if(this._options.resetOnEnd === true) {
this.clearEvent();
}
return this;
}
FuckAdBlock prototype clearEvent
Definition: fuckAdBlock.js:218
function i(e, t)
Definition: plyr.js:1

Definition at line 199 of file fuckAdBlock.js.

◆ FuckAdBlock

window FuckAdBlock = FuckAdBlock

Definition at line 242 of file fuckAdBlock.js.

Referenced by if().

◆ on

Initial value:
= function(detected, fn) {
this._var.event[(detected===true?'detected':'notDetected')].push(fn);
if(this._options.debug === true) {
this._log('on', 'A type of event "'+(detected===true?'detected':'notDetected')+'" was added');
}
return this;
}

Definition at line 227 of file fuckAdBlock.js.

Referenced by ready().

◆ onDetected

FuckAdBlock prototype onDetected
Initial value:
= function(fn) {
return this.on(true, fn);
}
FuckAdBlock prototype on
Definition: fuckAdBlock.js:227

Definition at line 235 of file fuckAdBlock.js.

◆ onNotDetected

FuckAdBlock prototype onNotDetected
Initial value:
= function(fn) {
return this.on(false, fn);
}

Definition at line 238 of file fuckAdBlock.js.

◆ setOption

Initial value:
= function(options, value) {
if(value !== undefined) {
var key = options;
options = {};
options[key] = value;
}
for(var option in options) {
this._options[option] = options[option];
if(this._options.debug === true) {
this._log('setOption', 'The option "'+option+'" he was assigned to "'+options[option]+'"');
}
}
return this;
}
undefined
Definition: plyr.js:1

Definition at line 60 of file fuckAdBlock.js.

◆ window

window

Definition at line 8 of file fuckAdBlock.js.

Referenced by !function(), YAWK\webmail::drawHeaders(), if(), and ready().