hideLiveAd

Remove Live ad Link

  1. // ==UserScript==
  2. // @name hideLiveAd
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Remove Live ad Link
  6. // @author LoganGong
  7. // @match [https://cc.btlm.live/,https://sofan.pro/]
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=btlm.live
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. var links = document.querySelectorAll('a[href*="//ad."]');
  16. links.forEach(function(item){
  17. var ul = item.closest('ul');
  18. if(ul) {
  19. item.closest('ul').remove();
  20. }
  21. });
  22. })();