corporate: Remove Twitter third-party JavaScript and branding.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-09-14 16:46:38 -07:00
committed by Tim Abbott
parent 47288c7d79
commit acd0c5568a
6 changed files with 72 additions and 21 deletions

View File

@@ -593,16 +593,11 @@ html_rules: List["Rule"] = [
"bad_lines": ['<button aria-label="foo"></button>'],
},
{
"pattern": 'script src="http',
"pattern": r'<script[^<>]*\ssrc=[\'"]?(?:https?:|//)',
"description": "Don't directly load dependencies from CDNs. See docs/subsystems/html-css.md",
"exclude": {
"templates/corporate/billing.html",
"templates/corporate/hello.html",
"templates/corporate/upgrade.html",
"templates/corporate/event_status.html",
},
"bad_lines": [
'<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>'
'<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>',
'<script async src="https://platform.twitter.com/widgets.js"></script>',
],
},
{