diff --git a/_locales/de/messages.json b/_locales/de/messages.json index 05a5624..0a59a72 100644 --- a/_locales/de/messages.json +++ b/_locales/de/messages.json @@ -467,6 +467,10 @@ "message": "API auf {url} blockiert, weil die CanvasBlocker-Einstellungen nicht rechtzeitig geladen wurden.", "description": "" }, + "blocked": { + "message": "API auf {url} blockiert.", + "description": "" + }, "fakedReadout": { "message": "Auslese vorgetäuscht auf {url}", "description": "" diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 4fd4a9f..aaa16bc 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -467,6 +467,10 @@ "message": "API blocked on {url} because CanvasBlocker-settings were not loaded in time.", "description": "" }, + "blocked": { + "message": "API blocked on {url}.", + "description": "" + }, "fakedReadout": { "message": "Faked readout on {url}", "description": "" diff --git a/lib/modifiedAPIFunctions.js b/lib/modifiedAPIFunctions.js index c3ddedd..3b76b8a 100644 --- a/lib/modifiedAPIFunctions.js +++ b/lib/modifiedAPIFunctions.js @@ -27,6 +27,7 @@ } return callback.call(object, args, check); } + check.notify.call(object, "blocked"); return undefined; }; }()); \ No newline at end of file diff --git a/releaseNotes.txt b/releaseNotes.txt index c333aed..52011b2 100644 --- a/releaseNotes.txt +++ b/releaseNotes.txt @@ -2,6 +2,7 @@ Version 0.4.6: changes: - Changes in the random supply API - Added grouping to API white list + - Show page action when API is blocked new features: - Can protect Audio API