m.baidu.com.js 377 B

123456789101112131415161718
  1. (function () {
  2. class removeDom {
  3. constructor(classList = []) {
  4. this.adClassList = classList;
  5. };
  6. remove() {
  7. this.adClassList.forEach((c) => {
  8. $(`${c}`).length > 0 && $(`${c}`).remove();
  9. });
  10. };
  11. };
  12. let adClassList = ['.ec_wise_ad', '.ec_wise_pp', '.na-like-container'];
  13. let ad = new removeDom(adClassList);
  14. ad.remove();
  15. })();