Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds rule for thefreedictionary.com #3149

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions anti-adblock-killer.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -1563,6 +1563,26 @@
}
}
},
thefreedictionary_com : {
// Site: www.thefreedictionary.com
// shows back the site's word meaning when it tries to remove it.
host : ['thefreedictionary.com', 'tfd.com'],
onIdle : function () {
var contentDiv = document.getElementById('content'),
bodyDiv = document.getElementById('w1');

// Tamper the 'warn()' function not to create the top 'terror' banner
if (warn) {
warn = function() {
console.log("Tampermonkey/anti-adblock-killer(avengerx): Suppressed thefreedictionary snag banner!");
};
}

if (contentDiv && contentDiv.classList.length > 0) {
contentDiv.classList = {};
}
}
},
openuserjs_org : {
host : ['openuserjs.org'],
onIdle : function () {
Expand Down Expand Up @@ -3785,7 +3805,7 @@
// issue: https://github.com/reek/anti-adblock-killer/issues/178
// issue: https://github.com/reek/anti-adblock-killer/issues/196
// issue: https://github.com/reek/anti-adblock-killer/issues/56
host : ['kissanime.com', 'kissanime.to'],
host : ['kissanime.com', 'kissanime.to', 'kissanime.me', 'kissanime.ru'],
onStart : function () {
// Masking ads
Aak.addStyle('iframe[id^="adsIfrme"], .divCloseBut { display:none; }');
Expand Down Expand Up @@ -5774,4 +5794,4 @@

Aak.initialize();

})(window);
})(window);