Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ampproject/amphtml
/ content_script.js
File
content_script.js
validator/js/chromeextension/content_script.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
const
globals = {};
2
globals.amphtmlRegex =
new
RegExp(
'(^\\s*)amphtml(\\s*$)'
);
3
globals.ampCaches = [
4
{
Callers
nothing calls this directly
Calls
5
isAmpDocument
Function · 0.85
isAmpCache
Function · 0.85
getAmpHtmlLinkHref
Function · 0.85
getAmpCacheHref
Function · 0.85
addListener
Method · 0.80
Tested by
no test coverage detected