You will need to install a user script manager extension to install this script.
A full featured UI is included, activated by clicking on the pale purplish line on the left side of the page.
Complex Blacklist Rules
The complex blacklist feature is an enhancement of the blacklist tags feature. It allows specification of rules with | (OR) and & (AND) operators. The operators are accepted in any order.
Be careful in specifying many nested OR tags as they can translate to a massive number of rules affecting performance.
How does it work?
Rules with only OR operators are broken down to normal blacklisted tags. Essentially this form is only for grouping similar tags and has no operational benefit.
Rules with only AND operators or only one tag, are the actual actionable rules, checking specified tags against the galleries.
Rules with both AND and OR operators are reduced to AND operator only combinations.
Settings backup and restore
Note: This version is incompatible with previous version blacklist rules, it will corrupt them. To avoid losing them, cut and paste them elsewhere, save and upgrade to this version. Then paste them back.