Skip to content

Commit

Permalink
User can disable backlinks if they want to, off by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlcctrlv authored and czaks committed Oct 7, 2014
1 parent 1f28316 commit 894faf9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions js/inline.js
Expand Up @@ -124,6 +124,7 @@ onready(function() {
}

App.options.add('hidePost', 'Hide inlined backlinked posts')
App.options.add('useBacklinks', 'Enable backlinks')

$('head').append(
'<style>' +
Expand All @@ -135,7 +136,10 @@ onready(function() {
'</style>')

// don't attach to outbound links
$('.body a:not([rel]), .mentioned a')
.attr('onclick', null)// XXX disable highlightReply
.click(inline)

if (App.options.get('useBacklinks')) {
$('.body a:not([rel]), .mentioned a')
.attr('onclick', null)// XXX disable highlightReply
.click(inline)
}
})

0 comments on commit 894faf9

Please sign in to comment.