Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
FeatherTest - Output Page Metadata
'feathertest'
console.log('%cSUDO - HOMEPAGE', 'color:orange');
location.href = '/site_root/'
60000
console.log('%cSUDO - '+location.href, 'color:orange');
console.log('%cSUDO - meta_title = '+$('meta[name="title"]').attr('content'), 'color:orange');
console.log('%cSUDO - meta_og:title = '+$('meta[property="og:title"]').attr('content'), 'color:orange');
console.log('%cSUDO - meta_description = '+$('meta[name="description"]').attr('content'), 'color:orange');
console.log('%cSUDO - meta_og:description = '+$('meta[property="og:description"]').attr('content'), 'color:orange');
console.log('%cSUDO - meta_og:image = '+$('meta[property="og:image"]').attr('content'), 'color:orange');
console.log('%cSUDO - meta_keywords = '+$('meta[name="keywords"]').attr('content'), 'color:orange');
console.log('%cSUDO - ', 'color:orange');
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.