// ==UserScript==
// @name         广告屏蔽
// @namespace    http://tampermonkey.net/
// @version      1.1.1
// @update       2021.01.19
// @description  自用,屏蔽一些网站的广告,如果也符合你的需求就下载吧(=・ω・=) 具体屏蔽列表看简介
// @author       charghet
// @run-at document-start
// @license GPL
// @include http*://www.imomoe.ai/*
// @include http*://api.xiaomingming.org/cloud/mp6.php*
// @include http*://www.bilibili.com/
// @include http*://live.bilibili.com/*
// @include http*://www.bilibili.com/video/*
// @include http*://www.baidu.com/
// @include http*://fanyi.baidu.com/*
// @downloadURL none
// ==/UserScript==
//屏蔽列表
  //樱花动漫
  var imomoe = RegExp("http.*://www.imomoe.ai/.*");
  var imomoe2 = RegExp("http.*://api.xiaomingming.org/cloud/mp6.php.*");
  //哔哩哔哩
  var bilibili = RegExp("http.*://www.bilibili.com/$");
  var bilibili2 = RegExp("http.*://live.bilibili.com/.*");
  var bilibili3 = RegExp("http.*://www.bilibili.com/video/.*");
  //百度首页
  var baidu = RegExp("http.*://www.baidu.com/$");
  //百度翻译
  var baidufanyi = RegExp("http.*://fanyi.baidu.com/.*");
(function() {
    if(imomoe.test(location.href)){//樱花动漫
        //右下角屏蔽
        document.head.insertAdjacentHTML('beforeend','')
    }else if(imomoe2.test(location.href)){
        //暂停页面屏蔽
        document.head.insertAdjacentHTML('beforeend','');
    }else if(bilibili.test(location.href)){//哔哩哔哩
        //主页横幅屏蔽
        document.head.insertAdjacentHTML('beforeend','');
    }else if(bilibili2.test(location.href)){//哔哩哔哩直播
        //礼物屏蔽
        document.head.insertAdjacentHTML('beforeend','');
    }else if(bilibili3.test(location.href)){//哔哩哔哩视频
        //右下角、横幅屏蔽
        document.head.insertAdjacentHTML('beforeend','');
    }else if(baidu.test(location.href)){//百度首页
        document.head.insertAdjacentHTML('beforeend','');
    }else if(baidufanyi.test(location.href)){//百度翻译
        document.head.insertAdjacentHTML('beforeend','');
    }else{
        console.log('广告屏蔽:无匹配');
    }
})();