Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
Remove �advertising script v 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
molecul committed Dec 25, 2018
1 parent 9e9da6a commit 3cd0eb2
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions removeAdv.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
var curCleanCycles = 0
var maxCleanCycles = 60

function removeAds_videopotok(){
let existingAdv1 = document.querySelectorAll("#videpotok_over_float");
for (let currAdv1 of existingAdv1) {
currAdv1.remove();
};
}



function removeAds()
{
document.querySelector("#anime-episode_last_html5_api").controls = true;
document.querySelector(".vjs-control-bar").remove();
document.querySelector("#overley-content").remove();

curCleanCycles++;
if (curCleanCycles == maxCleanCycles) {
console.log("[NoAdsOnSovetRomantica] - Work is finished!")
clearInterval(refreshIntervalId);
};
}

var refreshIntervalId = setInterval(removeAds, 1000);
console.log("[NoAdsOnSovetRomantica] - Start removeAds");
removeAds_videopotok();

0 comments on commit 3cd0eb2

Please sign in to comment.