Close Mature alert

Dlive.tv auto close Mature alert dialog

目前為 2025-03-30 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name Close Mature alert
  3. // @namespace http://tampermonkey.net/
  4. // @version 2025-03-30
  5. // @description Dlive.tv auto close Mature alert dialog
  6. // @author dotladcop
  7. // @match https://dlive.tv/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=dlive.tv
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. const buttonDlive = '.agree';
  14. var onMutate = function(mutationsList) {
  15. mutationsList.forEach(mutation => {
  16. if(document.querySelector(buttonDlive)){
  17. document.getElementsByClassName("v-input--selection-controls__ripple")[0].click();
  18. document.getElementsByClassName("v-input--selection-controls__ripple")[1].click();
  19. document.getElementsByClassName("agree")[0].click();
  20. }
  21. })
  22. }
  23. //const targetNode = document.getElementById('genius');
  24.  
  25. var observerDlive = new MutationObserver(onMutate);
  26. observerDlive.observe(document.body , {childList: true});

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址