Skip to content

Commit

Permalink
fixes #104, #105
Browse files Browse the repository at this point in the history
  • Loading branch information
shu8 committed Oct 1, 2016
1 parent 56a6e0c commit 0edac9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion sox.features.js
Original file line number Diff line number Diff line change
Expand Up @@ -699,12 +699,14 @@
link = 'http://meta.' + $(this).attr('href').substr(2, $(this).attr('href').length - 1);
if (blogSites.indexOf($(this).attr('href').split('/')[2].split('.')[0]) != -1) {
blogLink = '//' + $(this).attr('href').split('/')[2].split('.')[0] + '.blogoverflow.com';
} else {
blogLink = '#';
}

$(this).find('.rep-score').hide();
$(this).append('<div class="related-links" style="float: right;"> \
<a href="' + link + '">meta</a> \
<a href="http://chat.stackexchange.com">chat</a> \
<a href="http://chat.stackexchange.com?tab=site&host=' + $(this).attr('href').substr(2) + '">chat</a> \
<a href="' + blogLink + '">blog</a> \
</div>');
}
Expand Down
2 changes: 1 addition & 1 deletion sox.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name Stack Overflow Extras (SOX)
// @namespace https://github.com/soscripted/sox
// @version 2.0.1l
// @version 2.0.1m
// @description Extra optional features for Stack Overflow and Stack Exchange sites
// @contributor ᴉʞuǝ (stackoverflow.com/users/1454538/)
// @contributor ᔕᖺᘎᕊ (stackexchange.com/users/4337810/)
Expand Down

0 comments on commit 0edac9b

Please sign in to comment.