Skip to content

Instantly share code, notes, and snippets.

@alxndr

alxndr/metatags.js

Last active Dec 6, 2019
Embed
What would you like to do?
Log out all the `<meta name="" content="">` tags on the current page in Chrome Dev Tools
console.table(
$$("meta[content]").reduce((obj, tag) => Object.assign(obj, {[tag.name || tag.getAttribute("property")]: tag.content}), {})
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.