From 5295c6366f19c6ee9b9953116339bbbbf34d0856 Mon Sep 17 00:00:00 2001 From: 8chan Date: Mon, 6 Oct 2014 18:39:38 -0700 Subject: [PATCH] User can disable backlinks if they want to, off by default --- js/inline.js | 10 +++++++--- 1 file 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( '') // 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) + } })