Acg18NoMusic

自动停止播放音乐!

// ==UserScript==
// @name         Acg18NoMusic
// @namespace    https://greasyfork.org/zh-CN/scripts/380634-acg18nomusic
// @version      0.1
// @description  自动停止播放音乐!
// @author       gfbxy
// @match        https://acg18.life/*
// @grant        none
// @run-at       document-end
// ==/UserScript==

(function() {
    'use strict';

    checkAp();
})();

function checkAp(){
    if(ap.length<1){
        setTimeout(function(){
            checkAp();
        },200)
    }
    else{
        for(var i=0;i<ap.length;i++){
            ap[i].pause();
        }
    }
}