@@ -32,10 +32,13 @@ const docEmbedJsAssets =
32
32
'script[src="https://assets.readthedocs.org/static/javascript/readthedocs-doc-embed.js"]' ;
33
33
const docEmbedJsAssetsCore =
34
34
'script[src="https://assets.readthedocs.org/static/core/js/readthedocs-doc-embed.js"]' ;
35
+ const docEmbedJsAssetsProxied =
36
+ 'script[src="/_/static/core/js/readthedocs-doc-embed.js"]' ;
35
37
const badgeOnlyCssAssets =
36
38
'link[href="https://assets.readthedocs.org/static/css/badge_only.css"]' ;
37
39
const badgeOnlyCssAssetsProxied = 'link[href="/_/static/css/badge_only.css"]' ;
38
- const readthedocsExternalVersionWarning = "[role=main] > div:first-child > div:first-child.admonition.warning" ;
40
+ const readthedocsExternalVersionWarning =
41
+ "[role=main] > div:first-child > div:first-child.admonition.warning" ;
39
42
const readthedocsFlyout = "div.rst-versions" ;
40
43
41
44
// "readthedocsDataParse" is the "<script>" that calls:
@@ -93,6 +96,7 @@ async function handleRequest(request) {
93
96
. on ( docEmbedCssAssets , new removeElement ( ) )
94
97
. on ( docEmbedJsAssets , new removeElement ( ) )
95
98
. on ( docEmbedJsAssetsCore , new removeElement ( ) )
99
+ . on ( docEmbedJsAssetsProxied , new removeElement ( ) )
96
100
. on ( badgeOnlyCssAssets , new removeElement ( ) )
97
101
. on ( badgeOnlyCssAssetsProxied , new removeElement ( ) )
98
102
. on ( readthedocsExternalVersionWarning , new removeElement ( ) )
0 commit comments