Can that be done from an extension? Maybe by manipulating headers before they reach the browser engine?

If so, we should probably have more generic "simple rule detection" that can act on the default rulesets too.