diff --git a/4chan_x.user.js b/4chan_x.user.js index 62a79733a..9925be6d3 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2049,6 +2049,9 @@ }, toggle: function(e) { var el, hidden, id, inline, inlined, pathname, root, table, threadID, _i, _len, _ref; + if (e.shiftKey || e.altKey || e.ctrlKey || e.button !== 0) { + return; + } e.preventDefault(); /* https://bugzilla.mozilla.org/show_bug.cgi?id=674955 diff --git a/script.coffee b/script.coffee index a4b3ce200..c10d2d644 100644 --- a/script.coffee +++ b/script.coffee @@ -1589,6 +1589,8 @@ quoteInline = quote.removeAttribute 'onclick' $.bind quote, 'click', quoteInline.toggle toggle: (e) -> + return if e.shiftKey or e.altKey or e.ctrlKey or e.button isnt 0 + e.preventDefault() ### https://bugzilla.mozilla.org/show_bug.cgi?id=674955