aboutsummaryrefslogtreecommitdiff
path: root/src/stack-exchange-fix-cookienotice/index.json
blob: 095fdec27120103fe027e60153e4515296676771 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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
}