Last active
May 23, 2020 03:37
-
-
Save ThomasG77/96f29b1687fef0a0735345d3ad542ccb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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`);} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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`); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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