Skip to content

Instantly share code, notes, and snippets.

@antlis
Last active December 28, 2017 14:01
Show Gist options
  • Save antlis/1f37610889dc0b3dc317e22deeef9c31 to your computer and use it in GitHub Desktop.
Save antlis/1f37610889dc0b3dc317e22deeef9c31 to your computer and use it in GitHub Desktop.
Bookmarklet that will show get native article properties
javascript: (function () {
var h = document.head;
length = h.querySelector("[property='native:length']").content,
bill = h.querySelector("[property='native:billable']").content,
priority = h.querySelector("[property='native:priority']").content,
lang = document.querySelector("select.content-heading__value option[value='ru']"),
alert('Length: ' + length + '\n\nBillable: ' + bill + '\n\nPriority: ' + priority + '\n\nYour Lang: ' + lang);
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment