Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
https://github.com/NanoAdblocker/NanoFilters/issues/371
Browse files Browse the repository at this point in the history
  • Loading branch information
jspenguin2017 committed Jul 6, 2019
1 parent 5a2a3aa commit f1c5238
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 32 deletions.
31 changes: 0 additions & 31 deletions src/content/rules-specific.js
Original file line number Diff line number Diff line change
Expand Up @@ -1075,37 +1075,6 @@ if (a.domCmp(["thesimsresource.com"])) {
a.readOnly("gadsize", true);
a.readOnly("iHaveLoadedAds", true);
}
if (a.domCmp(["kissanime.com", "kissanime.to", "kissanime.ru"])) {
a.css("iframe[id^='adsIfrme'], .divCloseBut { display:none; }");
const magic = a.uid();
addEventListener(magic, () => {
$("iframe[id^='adsIfrme'], .divCloseBut").remove();
});
a.ready(() => {
a.inject(`(() => {
"use strict";
const divContentVideo = window.document.getElementById("divContentVideo");
if (window.DoDetect2) {
window.DoDetect2 = null;
window.CheckAdImage = null;
} else if (divContentVideo) {
const divDownload = window.document.getElementById("divDownload").cloneNode(true);
window.setTimeout(() => {
divContentVideo.innerHTML = "";
window.DoHideFake();
divContentVideo.appendChild(divDownload);
window.dispatchEvent(new window.CustomEvent("${magic}"));
}, 5500);
}
})();`, true);
});
}
if (a.domCmp(["kisscartoon.me", "kisscartoon.se"])) {
a.readOnly("xaZlE", () => { });
a.ready(() => {
$("iframe[id^='adsIfrme']").remove();
});
}
if (a.domCmp(["youwatch.org", "chouhaa.info", "ahzahg6ohb.com"])) {
a.ready(() => {
$("#player_imj, #player_imj + div[id]").remove();
Expand Down
2 changes: 1 addition & 1 deletion src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"webRequest",
"webRequestBlocking"
],
"version": "15.0.0.153",
"version": "15.0.0.154",
"web_accessible_resources": [
"resources/*"
]
Expand Down

0 comments on commit f1c5238

Please sign in to comment.