Skip to content

Instantly share code, notes, and snippets.

@mattcuk
Last active March 23, 2018 13:08
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mattcuk/400131c08acf9074e2c5230c9344c5a2 to your computer and use it in GitHub Desktop.
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