Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ThomasG77/96f29b1687fef0a0735345d3ad542ccb to your computer and use it in GitHub Desktop.
Save ThomasG77/96f29b1687fef0a0735345d3ad542ccb to your computer and use it in GitHub Desktop.
javascript:var stackoverflowGalaxyUrl = window.location.toString();var matchingStackoverflowPostId = stackoverflowGalaxyUrl.match(/\/questions\/(\d+)\//); if (matchingStackoverflowPostId && matchingStackoverflowPostId.length === 2) { var stackoverflowPostId = matchingStackoverflowPostId[1]; console.log('Revision url', `http://gis.stackexchange.com/posts/${stackoverflowPostId}/revisions`); console.log('Timeline url', `https://gis.stackexchange.com/posts/${stackoverflowPostId}/timeline`);} else { console.log(`U're not part of the galaxy`);}
var stackoverflowGalaxyUrl = window.location.toString();
var matchingStackoverflowPostId = stackoverflowGalaxyUrl.match(/\/questions\/(\d+)\//);
if (matchingStackoverflowPostId && matchingStackoverflowPostId.length === 2) {
var stackoverflowPostId = matchingStackoverflowPostId[1];
console.log('Revision url', `http://gis.stackexchange.com/posts/${stackoverflowPostId}/revisions`);
console.log('Timeline url', `https://gis.stackexchange.com/posts/${stackoverflowPostId}/timeline`);
} else {
console.log(`U're not part of the galaxy`);
}
<!DOCTYPE html>
<html>
<head>
<title>StackOverflow Galaxy Hidden Secrets</title>
</head>
<body>
<p>I've discovered the "hidden features" for history and timeline when contributing to StackOverflow and it galaxy websites browsing <a href="https://meta.stackoverflow.com/questions/253012/is-there-a-way-to-see-the-history-of-changes-made-to-a-question-or-an-answer" target="_blank">this Meta StackOverflow post</a></p>
<p>You can bookmark <a title="Stackoveflow galaxy secrets" href="javascript:var stackoverflowGalaxyUrl = window.location.toString();var matchingStackoverflowPostId = stackoverflowGalaxyUrl.match(/\/questions\/(\d+)\//); if (matchingStackoverflowPostId && matchingStackoverflowPostId.length === 2) { var stackoverflowPostId = matchingStackoverflowPostId[1]; console.log('Revision url', `http://gis.stackexchange.com/posts/${stackoverflowPostId}/revisions`); console.log('Timeline url', `https://gis.stackexchange.com/posts/${stackoverflowPostId}/timeline`);} else { console.log(`U're not part of the galaxy`);}">the current link as a bookmarket</a> to get in the console the url to revision and timeline</p>
<p>Each time you will visit StackOverflow or a "parent", you can click on the bookmarklet to get the URLs for revision and timeline. Not need to remember now!</p>
</body>
</html>
index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment