From 9dbc4e93be260b86d51e809e9f4e67f1270e5fd5 Mon Sep 17 00:00:00 2001 From: 8chan Date: Mon, 15 Dec 2014 23:35:39 -0800 Subject: [PATCH] Show backlinks on OP --- js/show-backlinks.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/show-backlinks.js b/js/show-backlinks.js index fa4865fd..6f4cafa9 100644 --- a/js/show-backlinks.js +++ b/js/show-backlinks.js @@ -15,7 +15,7 @@ onready(function(){ var showBackLinks = function() { - var reply_id = $(this).attr('id').replace(/^reply_/, ''); + var reply_id = $(this).attr('id').replace(/^(reply|op)_/, ''); $(this).find('div.body a:not([rel="nofollow"])').each(function() { var id, post, $mentioned; @@ -26,6 +26,9 @@ onready(function(){ return; $post = $('#reply_' + id); + if($post.length == 0) + $post = $('#op_' + id); + if($post.length == 0) return;