diff options
| author | 8chan <admin@8chan.co> | 2014-10-06 18:39:38 -0700 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2014-10-07 04:41:41 +0200 |
| commit | 894faf989c3d414a50f8b7215189c33467f6c426 (patch) | |
| tree | 23effa5f88a8adc38a1fb978eedd47de09cb1995 /js | |
| parent | 1f28316fca47c89ecc888291ddbd615db1215196 (diff) | |
User can disable backlinks if they want to, off by default
Diffstat (limited to 'js')
| -rw-r--r-- | js/inline.js | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/js/inline.js b/js/inline.js index a267b4cd..c1aed4dd 100644 --- a/js/inline.js +++ b/js/inline.js @@ -124,6 +124,7 @@ onready(function() { } App.options.add('hidePost', 'Hide inlined backlinked posts') + App.options.add('useBacklinks', 'Enable backlinks') $('head').append( '<style>' + @@ -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) + } }) |
