commit 39d17d88892b737ae4520a1263581ee2941fb7d0 Author: Klaus-Uwe Mitterer Date: Sun Sep 6 21:20:07 2020 +0200 Version 1.0 diff --git a/.gitignore b/.gitignore new file mode 100755 index 0000000..500aabb --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +web-ext-artifacts/ \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..e4a042b --- /dev/null +++ b/LICENSE @@ -0,0 +1,7 @@ +Copyright 2020 Klaus-Uwe Mitterer + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..f85f590 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# History Purger + +Firefox addon that deletes the entire browsing history when loading a page. \ No newline at end of file diff --git a/extension/background.js b/extension/background.js new file mode 100755 index 0000000..3bb550b --- /dev/null +++ b/extension/background.js @@ -0,0 +1,10 @@ +browser.webNavigation.onCompleted.addListener( + function() { + browser.history.deleteRange( + { + startTime: 0, + endTime: new Date() + } + ); + } +); diff --git a/extension/icon.png b/extension/icon.png new file mode 100644 index 0000000..aeb0df7 Binary files /dev/null and b/extension/icon.png differ diff --git a/extension/manifest.json b/extension/manifest.json new file mode 100644 index 0000000..0fde6c2 --- /dev/null +++ b/extension/manifest.json @@ -0,0 +1,17 @@ +{ + "manifest_version": 2, + "name": "History Purger", + "version": "1.0", + "description": "Keeps your navigation history clean without using Private Mode", + + "icons": { + "48": "icon.png" + }, + "background": { + "scripts": ["background.js"] + }, + "permissions": [ + "history", + "webNavigation" + ] +}