User can disable backlinks if they want to, off by default

This commit is contained in:
8chan 2014-10-06 18:39:38 -07:00 committed by czaks
parent 1f28316fca
commit 894faf989c

View File

@ -124,6 +124,7 @@ onready(function() {
} }
App.options.add('hidePost', 'Hide inlined backlinked posts') App.options.add('hidePost', 'Hide inlined backlinked posts')
App.options.add('useBacklinks', 'Enable backlinks')
$('head').append( $('head').append(
'<style>' + '<style>' +
@ -135,7 +136,10 @@ onready(function() {
'</style>') '</style>')
// don't attach to outbound links // don't attach to outbound links
if (App.options.get('useBacklinks')) {
$('.body a:not([rel]), .mentioned a') $('.body a:not([rel]), .mentioned a')
.attr('onclick', null)// XXX disable highlightReply .attr('onclick', null)// XXX disable highlightReply
.click(inline) .click(inline)
}
}) })