diff --git a/RIP-hltv-BET.user.js b/RIP-hltv-BET.user.js index b99ff86..6e3c3a4 100644 --- a/RIP-hltv-BET.user.js +++ b/RIP-hltv-BET.user.js @@ -2,7 +2,7 @@ // @name RIP HLTV BET // @name:zh-CN HLTV 广告去除插件 // @namespace https://github.com/wolfcon/RIP-HLTV-BET -// @version 1.4 +// @version 1.5 // @description Remove hltv.org Annoy AD // @description:zh-cn 清除那些🤮背景赌博广告. // @author Frank @@ -32,6 +32,9 @@ const filters = [ document.body.removeAttribute("data-href"); document.body.removeAttribute("style"); +// set background to bar Color +$(document.body).css("background-color", $(".navbar").css("background-color")); + (function removeTopAds() { var topDiv = document.getElementsByClassName("logoCon")[0]; var adCount = topDiv.children.length - 1; @@ -40,4 +43,4 @@ document.body.removeAttribute("style"); topDiv.removeChild(topDiv.lastElementChild); adCount--; } -})(); \ No newline at end of file +})();