Skip to content

Instantly share code, notes, and snippets.

Created Feb 17, 2019
What would you like to do?
const code = `(function getUrls(){
const forkUrl = document.querySelector('meta[name="octolytics-dimension-repository_parent_nwo"]')
? document.querySelector('meta[name="octolytics-dimension-repository_parent_nwo"]').content
: undefined;
const url = document.querySelector('meta[name="go-import"]')
? document.querySelector('meta[name="go-import"]').content.split(' ')[0]
: undefined;
return { forkUrl, url };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment