mirror of https://github.com/torappinfo/uweb
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
377 B
JavaScript
18 lines
377 B
JavaScript
3 years ago
|
(function () {
|
||
|
class removeDom {
|
||
|
constructor(classList = []) {
|
||
|
this.adClassList = classList;
|
||
|
};
|
||
|
|
||
|
remove() {
|
||
|
this.adClassList.forEach((c) => {
|
||
|
$(`${c}`).length > 0 && $(`${c}`).remove();
|
||
|
});
|
||
|
};
|
||
|
};
|
||
|
|
||
|
let adClassList = ['.ec_wise_ad', '.ec_wise_pp', '.na-like-container'];
|
||
|
let ad = new removeDom(adClassList);
|
||
|
ad.remove();
|
||
|
})();
|