在 Safari 应用程序扩展内容阻止程序中,我是否可以将一个分配action
给一个trigger
允许我重定向到另一个页面而不是直接阻止它的页面?
1 回答
Safari Content blocker only supports the following actions
block
Stops loading of the resource. If the resource was cached, the cache is ignored.
block-cookies
Strips cookies from the header before sending to the server. Only cookies otherwise acceptable to Safari's privacy policy can be blocked. Combining with ignore-previous-rules doesn't override the browser’s privacy settings.
css-display-none
Hides elements of the page based on a CSS selector. A selector field contains the selector list. Any matching element has its display property set to none, which hides it.
ignore-previous-rules
Ignores previously triggered actions.
make-https
Changes a URL from http to https. URLs with a specified (nondefault) port and links using other protocols are unaffected.