remove ublock

This commit is contained in:
yeongpin
2025-02-13 12:13:06 +08:00
parent 637f923c16
commit 9521c0ce75
634 changed files with 185 additions and 353078 deletions

View File

@@ -76,10 +76,10 @@ class BrowserManager:
def get_extension_block(self):
"""获取插件路径"""
root_dir = os.getcwd()
extension_path = os.path.join(root_dir, "uBlock0.chromium")
extension_path = os.path.join(root_dir, "PBlock")
if hasattr(sys, "_MEIPASS"):
extension_path = os.path.join(sys._MEIPASS, "uBlock0.chromium")
extension_path = os.path.join(sys._MEIPASS, "PBlock")
if not os.path.exists(extension_path):
raise FileNotFoundError(f"插件不存在: {extension_path}")