Close Mature alert

Dlive.tv auto close Mature alert dialog

目前为 2025-03-30 提交的版本。查看 最新版本

// ==UserScript==
// @name         Close Mature alert
// @namespace    http://tampermonkey.net/
// @version      2025-03-30
// @description  Dlive.tv auto close Mature alert dialog
// @author       dotladcop
// @match        https://dlive.tv/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=dlive.tv
// @grant        none
// @license      MIT
// ==/UserScript==

const buttonDlive = '.agree';
var onMutate = function(mutationsList) {
	mutationsList.forEach(mutation => {
		if(document.querySelector(buttonDlive)){
			document.getElementsByClassName("v-input--selection-controls__ripple")[0].click();
			document.getElementsByClassName("v-input--selection-controls__ripple")[1].click();
			document.getElementsByClassName("agree")[0].click();
		}
	})
}
//const targetNode = document.getElementById('genius');

var observerDlive = new MutationObserver(onMutate);
observerDlive.observe(document.body , {childList: true});

QingJ © 2025

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