From 5c8b533e3aed0fcf081eb6c063fc77f3726458c1 Mon Sep 17 00:00:00 2001 From: Sriram Hariharan Date: Thu, 10 Jan 2019 20:57:57 -0600 Subject: [PATCH] fixed next still showing --- js/content.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/js/content.js b/js/content.js index 38b2db65..7046672d 100644 --- a/js/content.js +++ b/js/content.js @@ -33,6 +33,11 @@ const butdelay = 75; //Matthew Tran's twitter and insta: @MATTHEWTRANN and @matthew.trann $(function () { next = $("#next_nav_link"); + chrome.storage.sync.get('loadAll', function (data) { + if (data.loadAll) { + $('[title*="next listing"]').remove(); + } + }); loadDataBase(); //make heading and modal if (!$("#kw_results_table").length) { @@ -156,7 +161,6 @@ $(function () { function loadNextPages() { chrome.storage.sync.get('loadAll', function (data) { if (data.loadAll) { - $('[title*="next listing"]').remove(); let link = next.prop('href'); if (done && next && link) { $("#nextlabel").css('display', 'inline-block');