From 31f99131176ad25ec09299443ca805b3849525ad Mon Sep 17 00:00:00 2001 From: Theblockbuster1 <48650812+Theblockbuster1@users.noreply.github.com> Date: Mon, 19 Jul 2021 23:33:07 +0100 Subject: [PATCH] Update to work with new lumendatabase set up --- extension/b.js | 2 +- extension/manifest.json | 2 +- extension/u.js | 8 ++------ 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/extension/b.js b/extension/b.js index 191dca6..2cf8caf 100644 --- a/extension/b.js +++ b/extension/b.js @@ -2,6 +2,6 @@ chrome.webRequest.onHeadersReceived.addListener(details => { details.responseHeaders.filter(header => (header.name.toLowerCase() === 'access-control-allow-origin')) details.responseHeaders.push({name: 'Access-Control-Allow-Origin', value: '*'}) return {responseHeaders: details.responseHeaders} -}, {urls: ["https://www.lumendatabase.org/*"]}, ["blocking", "responseHeaders", "extraHeaders"]); +}, {urls: ["https://lumendatabase.org/*"]}, ["blocking", "responseHeaders", "extraHeaders"]); diff --git a/extension/manifest.json b/extension/manifest.json index 08242e6..4ca195f 100644 --- a/extension/manifest.json +++ b/extension/manifest.json @@ -216,7 +216,7 @@ "activeTab", "webRequest", "webRequestBlocking", - "*://www.lumendatabase.org/*", + "*://lumendatabase.org/*", "*://www.google.com/*", "*://www.google.ad/*", "*://www.google.ae/*", diff --git a/extension/u.js b/extension/u.js index f289780..6eccca4 100644 --- a/extension/u.js +++ b/extension/u.js @@ -6,15 +6,11 @@ $(function () { var s = $('#cc') $('div i > a').each(function (i, a) { - if (a.href.toLowerCase().indexOf('chillingeffects') === -1) { - return - } - var id = a.href.replace(/https?:\/\/www\.chillingeffects\.org\/notice.cgi\?sID=/, '') - var url = 'https://www.lumendatabase.org/notices/' + id + if (a.href === 'https://www.google.com/support/answer/1386831') return; setTimeout(function () { $.ajax({ type: 'GET', - url: url, + url: a.href, dataType: 'html', success: function (data) { var hm = {}