diff options
Diffstat (limited to 'src/stack-exchange-fix-cookienotice/index.json')
-rw-r--r-- | src/stack-exchange-fix-cookienotice/index.json | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/src/stack-exchange-fix-cookienotice/index.json b/src/stack-exchange-fix-cookienotice/index.json new file mode 100644 index 0000000..095fdec --- /dev/null +++ b/src/stack-exchange-fix-cookienotice/index.json @@ -0,0 +1,63 @@ +// SPDX-License-Identifier: CC0-1.0 + +// Copyright (C) 2022 Wojtek Kosior <koszko@koszko.org> +// Available under the terms of Creative Commons Zero v1.0 Universal. + +{ + "$schema": "https://hydrilla.koszko.org/schemas/package_source-2.schema.json", + "source_name": "stack-exchange-fix-cookienotice", + "copyright": [ + {"file": "report.spdx"}, + {"file": "LICENSES/Apache-2.0.txt"}, + {"file": "LICENSES/CC0-1.0.txt"} + ], + "upstream_url": "https://git.koszko.org/hydrilla-fixes-bundle/tree/src/stack-exchange-fix-cookienotice", + "definitions": [{ + + "type": "mapping_and_resource", + "identifier": "stack-exchange-fix-cookienotice", + "long_name": "StackExchange cookie notice fix", + "version": [2022, 2, 18], + "revision": 2, + "description": "Make cookie notice on StackExchange websites closable without relying on site-served JavaScript.", + "dependencies": [], + "scripts": [{"file": "stack_exchange_cookienotice.js"}], + "payloads": { + // The list of domains can be constructed by going to + // https://stackexchange.com/sites and there, on the page, executing: + // [...document.querySelector(".grid-view-container").children] + // .filter(n => n.nodeName === "A" && n.href) + // .map(n => n.href) + // .filter(u => !/^https:\/\/[^.]+\.stackexchange.com\/$/.test(u)) + // + // * https://academia.stackexchange.com/questions/182562/results-that-are-too-good-to-be-true-peer-review + // * https://stackoverflow.com + // * https://superuser.com + "https://serverfault.com/***": { + "identifier": "stack-exchange-fix-cookienotice" + }, + "https://superuser.com/***": { + "identifier": "stack-exchange-fix-cookienotice" + }, + "https://askubuntu.com/***": { + "identifier": "stack-exchange-fix-cookienotice" + }, + "https://stackapps.com/***": { + "identifier": "stack-exchange-fix-cookienotice" + }, + "https://mathoverflow.net/***": { + "identifier": "stack-exchange-fix-cookienotice" + }, + // Handle stackoverflow.com, ru.stackoverflow.com, and all other + // language-specific SO sites. With one pattern. + "https://***.stackoverflow.com/***": { + "identifier": "stack-exchange-fix-cookienotice" + }, + // Finally, handle all the other StackExchange sites. + "https://*.stackexchange.com/***": { + "identifier": "stack-exchange-fix-cookienotice" + } + } + }], + "reuse_generate_spdx_report": true +} |