Skip to content

Commit

Permalink
release: version 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesRayne committed Mar 14, 2023
1 parent 9825696 commit 20b769b
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 20 deletions.
10 changes: 0 additions & 10 deletions background.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
var originalConsoleLog = console.log;
console.log = function() {
args = [];
args.push('[Rayne Plugin] ');
for (var i = 0; i < arguments.length; i++) {
args.push(arguments[i]);
}
originalConsoleLog.apply(console, args);
}

function listener(details) {
let filter = browser.webRequest.filterResponseData(details.requestId);
let decoder = new TextDecoder("utf-8");
Expand Down
2 changes: 1 addition & 1 deletion functionalities.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
`);

console.log('[Clutterfree] Content script loaded.');
console.log('Content script loaded.');

const $ = selector => document.querySelector(selector);
const $$ = a => Array.from(document.querySelectorAll(a));
Expand Down
22 changes: 13 additions & 9 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
{
"manifest_version": 3,
"manifest_version": 2,
"name": "Clutterfree for AniList",
"description": "Minimal extension to remove clutter from AniList notifications",
"version": "1.0.0",
"version": "1.0.1",
"minimum_chrome_version": "60.0.3112",
"author": "Miles Rayne",
"browser_specific_settings": {
"gecko": {
"id": "{45748bd3-6236-480c-a6eb-26757edd9266}"
}
},

"icons": {
"128": "icons/icon128.png"
},

"permissions": [
"webRequest",
"webRequestBlocking",
"webRequestFilterResponse"
],
"host_permissions": [
"https://graphql.anilist.co/*",
"https://anilist.co/graphql"
"https://anilist.co/graphql",
"webRequest",
"webRequestBlocking"
],

"background": {
"scripts": ["background.js"]
"scripts": ["background.js"],
"persistent": false
},

"content_scripts": [
Expand Down
10 changes: 10 additions & 0 deletions polyfill.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,14 @@ function inject(func) {
const target = document.head || document.body || document.documentElement || document;
target.appendChild(script);
target.removeChild(script); // Removing since once it executes it is no longer needed
}

var originalConsoleLog = console.log;
console.log = function() {
args = [];
args.push('[Clutterfree for Anilist] ');
for (var i = 0; i < arguments.length; i++) {
args.push(arguments[i]);
}
originalConsoleLog.apply(console, args);
}

0 comments on commit 20b769b

Please sign in to comment.