代码拉取完成,页面将自动刷新
同步操作将从 devaper/TamperMonkey-CLI 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
import type { ScriptManifest } from "../../declarations/script-manifest.js";
import { debug, AdRules, alertLog } from "./buildConfig.mjs";
import presets from "./_preset.mjs";
const manifest: ScriptManifest = {
name: "AdBlock Script for WebView",
"name:zh-CN": "套壳油猴的广告拦截脚本",
author: "Lemon399",
version: "2.8.6",
description: "Parse ABP Cosmetic rules to CSS and apply it.",
"description:zh-CN": "将 ABP 中的元素隐藏规则转换为 CSS 使用",
resource: {},
match: ["http://*/*", "https://*/*"],
"run-at": "document-start",
grant: null,
namespace: "https://lemon399-bitbucket-io.vercel.app/",
source: [
"https://gitee.com/lemon399/tampermonkey-cli/tree/master/projects/abp_parse",
"https://bitbucket.org/lemon399/tampermonkey-cli/src/master/projects/abp_parse/",
],
connect: [],
copyright: "GPL-3.0",
license: "GPL-3.0",
};
for (const rule of presets.onlineRules) {
const domain = /:\/\/([\w.-]+?)\//.exec(rule.地址)?.[1];
if (manifest.resource) {
manifest.resource[rule.标识] = rule.地址;
}
if (
domain &&
Array.isArray(manifest.connect) &&
!manifest.connect.includes(domain)
) {
manifest.connect.push(domain);
}
}
if (debug) {
manifest.name += " Debug";
(manifest["name:zh-CN"] as string) += " 调试";
manifest.version += "c";
}
if (AdRules) {
manifest.version += "r";
}
if (alertLog) {
manifest.version += "a";
}
export default manifest;
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。