-
-
Save Bhargav-Rao/95324a2d4eab9dbd2eca3a08cac59e15 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
// ==UserScript== | |
// @name Adds a Sentinel link to answers | |
// @namespace https://gist.github.com/Bhargav-Rao | |
// @author Bhargav | |
// @match *://*.stackoverflow.com/* | |
// @version 0.01010 | |
// ==/UserScript== | |
(function(){ | |
$(".post-menu").each ( function (index) { | |
var thisObj = $(this) | |
var postLink = thisObj.find('a[class="short-link"]').attr("href"); | |
if(postLink && postLink.indexOf('a')>=0){ | |
thisObj.append('<span class="lsep">|</span><a href="http://sentinel.erwaysoftware.com/posts/aid/' + postLink.split("/")[2] +'">sentinel</a>'); | |
} | |
} ); | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you please change the header to something like this:
The current version can't be automatically installed/updated by Tampermonkey