mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
17 lines
377 B
JavaScript
17 lines
377 B
JavaScript
(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();
|
|
})();
|