Skip to content

Commit

Permalink
Merge pull request #27 from Theblockbuster1/master
Browse files Browse the repository at this point in the history
Update to work with new lumendatabase set up
  • Loading branch information
Ibit-to authored Jul 19, 2021
2 parents 6b634f2 + 31f9913 commit 1f362f6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion extension/b.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"]);


2 changes: 1 addition & 1 deletion extension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
"activeTab",
"webRequest",
"webRequestBlocking",
"*://www.lumendatabase.org/*",
"*://lumendatabase.org/*",
"*://www.google.com/*",
"*://www.google.ad/*",
"*://www.google.ae/*",
Expand Down
8 changes: 2 additions & 6 deletions extension/u.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down

0 comments on commit 1f362f6

Please sign in to comment.