Project

General

Profile

Download (2.38 KB) Statistics
| Branch: | Revision:

hydrilla-fixes-bundle / src / stack-exchange-fix-cookienotice / index.json @ ecc6c218

1
// SPDX-License-Identifier: CC0-1.0
2

    
3
// Copyright (C) 2022 Wojtek Kosior <koszko@koszko.org>
4
// Available under the terms of Creative Commons Zero v1.0 Universal.
5

    
6
{
7
    "$schema": "https://hydrilla.koszko.org/schemas/package_source-2.schema.json",
8
    "source_name": "stack-exchange-fix-cookienotice",
9
    "copyright":  [
10
	{"file": "report.spdx"},
11
	{"file": "LICENSES/Apache-2.0.txt"},
12
	{"file": "LICENSES/CC0-1.0.txt"}
13
    ],
14
    "upstream_url": "https://git.koszko.org/hydrilla-fixes-bundle/tree/src/stack-exchange-fix-cookienotice",
15
    "definitions": [{
16

    
17
	"type":         "mapping_and_resource",
18
	"identifier":   "stack-exchange-fix-cookienotice",
19
	"long_name":    "StackExchange cookie notice fix",
20
	"version":      [2022, 2, 18],
21
	"revision":     2,
22
	"description":  "Make cookie notice on StackExchange websites closable without relying on site-served JavaScript.",
23
	"dependencies": [],
24
	"scripts":      [{"file": "stack_exchange_cookienotice.js"}],
25
	"payloads": {
26
	    // The list of domains can be constructed by going to
27
	    // https://stackexchange.com/sites and there, on the page, executing:
28
	    // [...document.querySelector(".grid-view-container").children]
29
	    //     .filter(n => n.nodeName === "A" && n.href)
30
	    //     .map(n => n.href)
31
	    //     .filter(u => !/^https:\/\/[^.]+\.stackexchange.com\/$/.test(u))
32
	    //
33
	    // * https://academia.stackexchange.com/questions/182562/results-that-are-too-good-to-be-true-peer-review
34
	    // * https://stackoverflow.com
35
	    // * https://superuser.com
36
	    "https://serverfault.com/***": {
37
		"identifier": "stack-exchange-fix-cookienotice"
38
	    },
39
	    "https://superuser.com/***": {
40
		"identifier": "stack-exchange-fix-cookienotice"
41
	    },
42
	    "https://askubuntu.com/***": {
43
		"identifier": "stack-exchange-fix-cookienotice"
44
	    },
45
	    "https://stackapps.com/***": {
46
		"identifier": "stack-exchange-fix-cookienotice"
47
	    },
48
	    "https://mathoverflow.net/***": {
49
		"identifier": "stack-exchange-fix-cookienotice"
50
	    },
51
	    // Handle stackoverflow.com, ru.stackoverflow.com, and all other
52
	    // language-specific SO sites. With one pattern.
53
	    "https://***.stackoverflow.com/***": {
54
		"identifier": "stack-exchange-fix-cookienotice"
55
	    },
56
	    // Finally, handle all the other StackExchange sites.
57
	    "https://*.stackexchange.com/***": {
58
		"identifier": "stack-exchange-fix-cookienotice"
59
	    }
60
	}
61
    }],
62
    "reuse_generate_spdx_report": true
63
}
(1-1/2)