2015-07-27 17:18:44 +00:00
|
|
|
{
|
|
|
|
"name": "CookieWarning",
|
2016-10-29 20:13:02 +00:00
|
|
|
"version": "0.2.0",
|
2015-07-27 17:18:44 +00:00
|
|
|
"author": [
|
Add option to limit the cookie warning to specific regions
With this change, CookieWarning gets two new ways to limit the warning
bar to users of specific (configurable) regions. Based on the geo location
service (which can be configured, too, defaults to freegeoip.net), the
extension will try to get the region of the user (based on the IP address)
and checks it against the configured regions.
With the configuration variable $wgCookieWarningGeoIPLookup, the wiki sysadmin
can configure, if the lookup should be done with PHP (the timeout for the
request is hardcoded to 2 sedonds max), which will save the paylod sent to
the user, or with JavaScript, which will be asynchronous.
Deactivating this feature is easily done by simply setting the configured regions
to false, instead of an object.
Bug: T145780
Change-Id: I4d9371b8608ef270c11c42bdb3a773675977ab3a
2016-09-16 19:18:49 +00:00
|
|
|
"Florian Schmidt",
|
|
|
|
"Liz Lee",
|
|
|
|
"Jack Phoenix"
|
2015-07-27 17:18:44 +00:00
|
|
|
],
|
|
|
|
"url": "https://www.droidwiki.de",
|
|
|
|
"descriptionmsg": "cookiewarning-desc",
|
|
|
|
"type": "other",
|
2016-01-10 17:58:21 +00:00
|
|
|
"license-name": "MIT",
|
2015-07-27 17:18:44 +00:00
|
|
|
"MessagesDirs": {
|
|
|
|
"CookieWarning": [
|
|
|
|
"i18n"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"Hooks": {
|
2016-09-14 15:18:52 +00:00
|
|
|
"SkinTemplateOutputPageBeforeExec": "CookieWarningHooks::onSkinTemplateOutputPageBeforeExec",
|
|
|
|
"BeforePageDisplay": "CookieWarningHooks::onBeforePageDisplay",
|
|
|
|
"GetPreferences": "CookieWarningHooks::onGetPreferences",
|
Add option to limit the cookie warning to specific regions
With this change, CookieWarning gets two new ways to limit the warning
bar to users of specific (configurable) regions. Based on the geo location
service (which can be configured, too, defaults to freegeoip.net), the
extension will try to get the region of the user (based on the IP address)
and checks it against the configured regions.
With the configuration variable $wgCookieWarningGeoIPLookup, the wiki sysadmin
can configure, if the lookup should be done with PHP (the timeout for the
request is hardcoded to 2 sedonds max), which will save the paylod sent to
the user, or with JavaScript, which will be asynchronous.
Deactivating this feature is easily done by simply setting the configured regions
to false, instead of an object.
Bug: T145780
Change-Id: I4d9371b8608ef270c11c42bdb3a773675977ab3a
2016-09-16 19:18:49 +00:00
|
|
|
"BeforeInitialize": "CookieWarningHooks::onBeforeInitialize",
|
|
|
|
"ResourceLoaderGetConfigVars": "CookieWarningHooks::onResourceLoaderGetConfigVars"
|
2015-07-27 17:18:44 +00:00
|
|
|
},
|
|
|
|
"config": {
|
2015-08-16 10:00:33 +00:00
|
|
|
"CookieWarningEnabled": false,
|
Add option to limit the cookie warning to specific regions
With this change, CookieWarning gets two new ways to limit the warning
bar to users of specific (configurable) regions. Based on the geo location
service (which can be configured, too, defaults to freegeoip.net), the
extension will try to get the region of the user (based on the IP address)
and checks it against the configured regions.
With the configuration variable $wgCookieWarningGeoIPLookup, the wiki sysadmin
can configure, if the lookup should be done with PHP (the timeout for the
request is hardcoded to 2 sedonds max), which will save the paylod sent to
the user, or with JavaScript, which will be asynchronous.
Deactivating this feature is easily done by simply setting the configured regions
to false, instead of an object.
Bug: T145780
Change-Id: I4d9371b8608ef270c11c42bdb3a773675977ab3a
2016-09-16 19:18:49 +00:00
|
|
|
"CookieWarningMoreUrl": "",
|
|
|
|
"CookieWarningGeoIPServiceURL": "//freegeoip.net/json/",
|
|
|
|
"CookieWarningGeoIPLookup": "none",
|
|
|
|
"CookieWarningForCountryCodes": {
|
|
|
|
"EU": "Europe",
|
|
|
|
"AD": "Andorra",
|
|
|
|
"AL": "Albania",
|
|
|
|
"AT": "Austria",
|
|
|
|
"BA": "Bosnia and Herzegovina",
|
|
|
|
"BE": "Belgium",
|
|
|
|
"BG": "Bulgaria",
|
|
|
|
"BY": "Belarus",
|
|
|
|
"CH": "Switzerland",
|
|
|
|
"CS": "Serbia and Montenegro",
|
|
|
|
"CZ": "Czech Republic",
|
|
|
|
"DE": "Germany",
|
|
|
|
"DK": "Denmark",
|
|
|
|
"EE": "Estonia",
|
|
|
|
"ES": "Spain",
|
|
|
|
"FI": "Finland",
|
|
|
|
"FO": "Faroe Islands",
|
|
|
|
"FR": "France",
|
|
|
|
"FX": "France, Metropolitan",
|
|
|
|
"GB": "United Kingdom",
|
|
|
|
"GI": "Gibraltar",
|
|
|
|
"GR": "Greece",
|
|
|
|
"HR": "Croatia",
|
|
|
|
"HU": "Hungary",
|
|
|
|
"IE": "Ireland",
|
|
|
|
"IS": "Iceland",
|
|
|
|
"IT": "Italy",
|
|
|
|
"LI": "Liechtenstein",
|
|
|
|
"LT": "Lithuania",
|
|
|
|
"LU": "Luxembourg",
|
|
|
|
"LV": "Latvia",
|
|
|
|
"MC": "Monaco",
|
|
|
|
"MD": "Moldova, Republic of",
|
|
|
|
"MK": "Macedonia",
|
|
|
|
"MT": "Malta",
|
|
|
|
"NL": "Netherlands",
|
|
|
|
"NO": "Norway",
|
|
|
|
"PL": "Poland",
|
|
|
|
"PT": "Portugal",
|
|
|
|
"RO": "Romania",
|
|
|
|
"SE": "Sweden",
|
|
|
|
"SI": "Slovenia",
|
|
|
|
"SJ": "Svalbard and Jan Mayen",
|
|
|
|
"SK": "Slovakia",
|
|
|
|
"SM": "San Marino",
|
|
|
|
"UA": "Ukraine",
|
|
|
|
"VA": "Holy See (Vatican City State)"
|
|
|
|
}
|
2015-07-27 17:18:44 +00:00
|
|
|
},
|
|
|
|
"ResourceModules": {
|
|
|
|
"ext.CookieWarning": {
|
|
|
|
"dependencies": [
|
2015-08-16 09:49:05 +00:00
|
|
|
"mediawiki.api",
|
2018-03-22 19:17:13 +00:00
|
|
|
"mediawiki.cookie",
|
|
|
|
"mediawiki.user"
|
2015-07-27 17:18:44 +00:00
|
|
|
],
|
2015-08-16 09:49:05 +00:00
|
|
|
"scripts": "resources/ext.CookieWarning/ext.CookieWarning.js",
|
|
|
|
"targets": [
|
|
|
|
"mobile",
|
|
|
|
"desktop"
|
|
|
|
]
|
2015-07-27 17:18:44 +00:00
|
|
|
},
|
|
|
|
"ext.CookieWarning.styles": {
|
2016-11-04 16:47:15 +00:00
|
|
|
"styles": "resources/ext.CookieWarning/ext.CookieWarning.less"
|
|
|
|
},
|
|
|
|
"ext.CookieWarning.mobile.styles": {
|
|
|
|
"styles": "resources/ext.CookieWarning/ext.CookieWarning.mobile.less",
|
2015-08-16 09:49:05 +00:00
|
|
|
"targets": [
|
2016-11-04 16:47:15 +00:00
|
|
|
"mobile"
|
2015-08-16 09:49:05 +00:00
|
|
|
]
|
Add option to limit the cookie warning to specific regions
With this change, CookieWarning gets two new ways to limit the warning
bar to users of specific (configurable) regions. Based on the geo location
service (which can be configured, too, defaults to freegeoip.net), the
extension will try to get the region of the user (based on the IP address)
and checks it against the configured regions.
With the configuration variable $wgCookieWarningGeoIPLookup, the wiki sysadmin
can configure, if the lookup should be done with PHP (the timeout for the
request is hardcoded to 2 sedonds max), which will save the paylod sent to
the user, or with JavaScript, which will be asynchronous.
Deactivating this feature is easily done by simply setting the configured regions
to false, instead of an object.
Bug: T145780
Change-Id: I4d9371b8608ef270c11c42bdb3a773675977ab3a
2016-09-16 19:18:49 +00:00
|
|
|
},
|
|
|
|
"ext.CookieWarning.geolocation": {
|
|
|
|
"scripts": "resources/ext.CookieWarning.geolocation/cookiePolicy.js",
|
2018-03-22 19:17:13 +00:00
|
|
|
"dependencies": [
|
|
|
|
"ext.CookieWarning",
|
|
|
|
"jquery.cookie"
|
|
|
|
],
|
Add option to limit the cookie warning to specific regions
With this change, CookieWarning gets two new ways to limit the warning
bar to users of specific (configurable) regions. Based on the geo location
service (which can be configured, too, defaults to freegeoip.net), the
extension will try to get the region of the user (based on the IP address)
and checks it against the configured regions.
With the configuration variable $wgCookieWarningGeoIPLookup, the wiki sysadmin
can configure, if the lookup should be done with PHP (the timeout for the
request is hardcoded to 2 sedonds max), which will save the paylod sent to
the user, or with JavaScript, which will be asynchronous.
Deactivating this feature is easily done by simply setting the configured regions
to false, instead of an object.
Bug: T145780
Change-Id: I4d9371b8608ef270c11c42bdb3a773675977ab3a
2016-09-16 19:18:49 +00:00
|
|
|
"targets": [
|
|
|
|
"mobile",
|
|
|
|
"desktop"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"ext.CookieWarning.geolocation.styles": {
|
|
|
|
"styles": "resources/ext.CookieWarning.geolocation/styles.css",
|
|
|
|
"targets": [
|
|
|
|
"mobile",
|
|
|
|
"desktop"
|
|
|
|
]
|
2015-07-27 17:18:44 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"ResourceFileModulePaths": {
|
|
|
|
"localBasePath": "",
|
|
|
|
"remoteExtPath": "CookieWarning"
|
|
|
|
},
|
|
|
|
"AutoloadClasses": {
|
Add option to limit the cookie warning to specific regions
With this change, CookieWarning gets two new ways to limit the warning
bar to users of specific (configurable) regions. Based on the geo location
service (which can be configured, too, defaults to freegeoip.net), the
extension will try to get the region of the user (based on the IP address)
and checks it against the configured regions.
With the configuration variable $wgCookieWarningGeoIPLookup, the wiki sysadmin
can configure, if the lookup should be done with PHP (the timeout for the
request is hardcoded to 2 sedonds max), which will save the paylod sent to
the user, or with JavaScript, which will be asynchronous.
Deactivating this feature is easily done by simply setting the configured regions
to false, instead of an object.
Bug: T145780
Change-Id: I4d9371b8608ef270c11c42bdb3a773675977ab3a
2016-09-16 19:18:49 +00:00
|
|
|
"CookieWarningHooks": "includes/CookieWarning.hooks.php",
|
|
|
|
"GeoLocation": "includes/GeoLocation.php"
|
2015-07-27 17:18:44 +00:00
|
|
|
},
|
|
|
|
"ConfigRegistry": {
|
|
|
|
"cookiewarning": "GlobalVarConfig::newInstance"
|
|
|
|
},
|
|
|
|
"manifest_version": 1
|
|
|
|
}
|