mirror of
https://gitlab.com/KevinRoebert/ClearUrls
synced 2025-12-17 06:35:37 +07:00
Compare commits
17 Commits
496-reques
...
next-gen
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d58756f716 | ||
|
|
3ade08f344 | ||
|
|
ea256a8081 | ||
|
|
90ab42a510 | ||
|
|
c60e33d327 | ||
|
|
9f47a35318 | ||
|
|
e931674dfe | ||
|
|
ed87f72c75 | ||
|
|
ee2e544223 | ||
|
|
368e96edf1 | ||
|
|
ec4baefaa1 | ||
|
|
f46af5615c | ||
|
|
b602b0431a | ||
|
|
fa1c3b35ac | ||
|
|
49717332a9 | ||
|
|
2d9e7c63bb | ||
|
|
5096150723 |
@@ -75,8 +75,9 @@ Please push your translation into the folder `_locales/{country code}/messages.j
|
|||||||
## Recommended by...
|
## Recommended by...
|
||||||
* [ghacks-user.js](https://github.com/ghacksuserjs/ghacks-user.js/wiki/4.1-Extensions)
|
* [ghacks-user.js](https://github.com/ghacksuserjs/ghacks-user.js/wiki/4.1-Extensions)
|
||||||
* [Awesome Humane Tech List](https://github.com/humanetech-community/awesome-humane-tech#tracking)
|
* [Awesome Humane Tech List](https://github.com/humanetech-community/awesome-humane-tech#tracking)
|
||||||
|
* [PrivacyTools](https://www.privacytools.io/browsers/#addons)
|
||||||
* ClearURLs is part of Mozilla's recommended extensions program
|
* ClearURLs is part of Mozilla's recommended extensions program
|
||||||
|
|
||||||
## Permissions
|
## Permissions
|
||||||
Reasoning for needed permissions you can find under [this discussion](https://gitlab.com/KevinRoebert/ClearUrls/issues/159).
|
Reasoning for needed permissions you can find under [this discussion](https://gitlab.com/KevinRoebert/ClearUrls/issues/159).
|
||||||
|
|
||||||
|
|||||||
14
clearurls.js
14
clearurls.js
@@ -32,10 +32,10 @@ var os;
|
|||||||
* for each provider given as parameter.
|
* for each provider given as parameter.
|
||||||
*
|
*
|
||||||
* @param {Provider} provider Provider-Object
|
* @param {Provider} provider Provider-Object
|
||||||
* @param pureUrl URL as String
|
* @param {string} pureUrl URL as String
|
||||||
* @param {boolean} quiet if the action should be displayed in log and statistics
|
* @param {boolean} quiet If the action should be displayed in log and statistics
|
||||||
* @param {requestDetails} request the request details
|
* @param {requestDetails} request The request details
|
||||||
* @return {Array} Array with changes and url fields
|
* @return {object} Object with changes and url fields
|
||||||
*/
|
*/
|
||||||
function removeFieldsFormURL(provider, pureUrl, quiet = false, request = null) {
|
function removeFieldsFormURL(provider, pureUrl, quiet = false, request = null) {
|
||||||
let url = pureUrl;
|
let url = pureUrl;
|
||||||
@@ -82,7 +82,7 @@ function removeFieldsFormURL(provider, pureUrl, quiet = false, request = null) {
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Expand the url by provider redirections. So no tracking on
|
* Expand the url by provider redirections. So no tracking on
|
||||||
* url redirections form sites to sites.
|
* url redirections form site to site.
|
||||||
*/
|
*/
|
||||||
let re = provider.getRedirection(url);
|
let re = provider.getRedirection(url);
|
||||||
if (re !== null) {
|
if (re !== null) {
|
||||||
@@ -92,8 +92,8 @@ function removeFieldsFormURL(provider, pureUrl, quiet = false, request = null) {
|
|||||||
if (!quiet) {
|
if (!quiet) {
|
||||||
pushToLog(pureUrl, url, translate('log_redirect'));
|
pushToLog(pureUrl, url, translate('log_redirect'));
|
||||||
increaseGlobalURLCounter(1);
|
increaseGlobalURLCounter(1);
|
||||||
increaseBadged(false, request)
|
increaseBadged(false, request);
|
||||||
};
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"redirect": true,
|
"redirect": true,
|
||||||
|
|||||||
@@ -3,6 +3,62 @@
|
|||||||
"amazon": {
|
"amazon": {
|
||||||
"urlPattern": "(https:\\/\\/|http:\\/\\/)([a-zA-Z0-9-.]*\\.)?(amazon)(\\.[a-zA-Z]{2,}).*",
|
"urlPattern": "(https:\\/\\/|http:\\/\\/)([a-zA-Z0-9-.]*\\.)?(amazon)(\\.[a-zA-Z]{2,}).*",
|
||||||
"completeProvider": false,
|
"completeProvider": false,
|
||||||
|
"rules": [
|
||||||
|
"pf_rd_[a-zA-Z]",
|
||||||
|
"qid",
|
||||||
|
"sr",
|
||||||
|
"srs",
|
||||||
|
"pd_rd_[a-zA-Z]*",
|
||||||
|
"__mk_[a-zA-Z]{1,3}_[a-zA-Z]{1,3}",
|
||||||
|
"spIA",
|
||||||
|
"ms3_c",
|
||||||
|
"[a-zA-Z%0-9]*ie",
|
||||||
|
"refRID",
|
||||||
|
"colid",
|
||||||
|
"coliid",
|
||||||
|
"[^a-zA-Z%0-9]adId",
|
||||||
|
"qualifier",
|
||||||
|
"_encoding",
|
||||||
|
"smid",
|
||||||
|
"field-lbr_brands_browse-bin",
|
||||||
|
"ref_?",
|
||||||
|
"th",
|
||||||
|
"sprefix",
|
||||||
|
"crid",
|
||||||
|
"keywords",
|
||||||
|
"cv_ct_[a-zA-Z]+",
|
||||||
|
"linkCode",
|
||||||
|
"creativeASIN",
|
||||||
|
"ascsubtag",
|
||||||
|
"aaxitk",
|
||||||
|
"hsa_cr_id",
|
||||||
|
"sb-ci-[a-zA-Z]+",
|
||||||
|
"rnid",
|
||||||
|
"dchild",
|
||||||
|
"camp",
|
||||||
|
"creative",
|
||||||
|
"s"
|
||||||
|
],
|
||||||
|
"referralMarketing": [
|
||||||
|
"tag"
|
||||||
|
],
|
||||||
|
"exceptions": [
|
||||||
|
".*(amazon\\.).*(\\/gp).*\\/redirector.html\\/.*",
|
||||||
|
".*(amazon\\.).*(\\/hz\\/reviews-render\\/ajax\\/).*",
|
||||||
|
".*(amazon\\.).*(\\/gp).*\\/cart\\/ajax-update.html\\/.*",
|
||||||
|
".*(amazon\\.).*\\/message-us\\?.*",
|
||||||
|
".*(amazon\\.).*(\\/gp).*\\/video\\/api\\/.*",
|
||||||
|
".*(amazon\\.).*\\/s\\?.*"
|
||||||
|
],
|
||||||
|
"rawRules": [
|
||||||
|
"\\/ref=[^\\/\\?]*"
|
||||||
|
],
|
||||||
|
"redirections": [],
|
||||||
|
"forceRedirection": false
|
||||||
|
},
|
||||||
|
"amazon search": {
|
||||||
|
"urlPattern": "(https:\\/\\/|http:\\/\\/)([a-zA-Z0-9-.]*\\.)?(amazon)(\\.[a-zA-Z]{2,}).*\\/s.*\\?.*",
|
||||||
|
"completeProvider": false,
|
||||||
"rules": [
|
"rules": [
|
||||||
"pf_rd_[a-zA-Z]",
|
"pf_rd_[a-zA-Z]",
|
||||||
"qid",
|
"qid",
|
||||||
@@ -41,16 +97,10 @@
|
|||||||
"referralMarketing": [
|
"referralMarketing": [
|
||||||
"tag"
|
"tag"
|
||||||
],
|
],
|
||||||
"exceptions": [
|
|
||||||
".*(amazon\\.).*(\\/gp).*\\/redirector.html\\/.*",
|
|
||||||
".*(amazon\\.).*(\\/hz\\/reviews-render\\/ajax\\/).*",
|
|
||||||
".*(amazon\\.).*(\\/gp).*\\/cart\\/ajax-update.html\\/.*",
|
|
||||||
".*(amazon\\.).*\\/message-us\\?.*",
|
|
||||||
".*(amazon\\.).*(\\/gp).*\\/video\\/api\\/.*"
|
|
||||||
],
|
|
||||||
"rawRules": [
|
"rawRules": [
|
||||||
"\\/ref=[^\\/\\?]*"
|
"\\/ref=[^\\/\\?]*"
|
||||||
],
|
],
|
||||||
|
"exceptions": [],
|
||||||
"redirections": [],
|
"redirections": [],
|
||||||
"forceRedirection": false
|
"forceRedirection": false
|
||||||
},
|
},
|
||||||
@@ -182,7 +232,7 @@
|
|||||||
"urlPattern": ".*",
|
"urlPattern": ".*",
|
||||||
"completeProvider": false,
|
"completeProvider": false,
|
||||||
"rules": [
|
"rules": [
|
||||||
"(%3F)?utm(_[a-zA-Z]*)?",
|
"(%3F)?utm(_[a-zA-Z_]*)?",
|
||||||
"(%3F)?ga_[a-zA-Z_]+",
|
"(%3F)?ga_[a-zA-Z_]+",
|
||||||
"(%3F)?yclid",
|
"(%3F)?yclid",
|
||||||
"(%3F)?_openstat",
|
"(%3F)?_openstat",
|
||||||
@@ -212,7 +262,8 @@
|
|||||||
"(%3F)?dclid",
|
"(%3F)?dclid",
|
||||||
"Echobox",
|
"Echobox",
|
||||||
"(%3F)?spm",
|
"(%3F)?spm",
|
||||||
"(%3F)?vn(_[a-zA-Z]*)+"
|
"(%3F)?vn(_[a-zA-Z]*)+",
|
||||||
|
"(%3F)?cid"
|
||||||
],
|
],
|
||||||
"referralMarketing": [],
|
"referralMarketing": [],
|
||||||
"rawRules": [],
|
"rawRules": [],
|
||||||
@@ -253,7 +304,10 @@
|
|||||||
".*(login\\.progressive\\.com).*",
|
".*(login\\.progressive\\.com).*",
|
||||||
".*(sephora\\.com\\/api\\/).*",
|
".*(sephora\\.com\\/api\\/).*",
|
||||||
".*(contestgirl\\.com).*",
|
".*(contestgirl\\.com).*",
|
||||||
".*agenciatributaria.gob.es.*"
|
".*agenciatributaria.gob.es.*",
|
||||||
|
".*login\\.ingbank\\.pl.*",
|
||||||
|
"wss?:\\/\\/.*zoom\\.us.*",
|
||||||
|
".*api\\.bilibili\\.com.*"
|
||||||
],
|
],
|
||||||
"redirections": [],
|
"redirections": [],
|
||||||
"forceRedirection": false
|
"forceRedirection": false
|
||||||
@@ -1067,7 +1121,9 @@
|
|||||||
"referralMarketing": [],
|
"referralMarketing": [],
|
||||||
"rawRules": [],
|
"rawRules": [],
|
||||||
"exceptions": [],
|
"exceptions": [],
|
||||||
"redirections": [],
|
"redirections": [
|
||||||
|
".*u=([^&]*)"
|
||||||
|
],
|
||||||
"forceRedirection": false
|
"forceRedirection": false
|
||||||
},
|
},
|
||||||
"lazada.com.my": {
|
"lazada.com.my": {
|
||||||
@@ -1655,7 +1711,10 @@
|
|||||||
"mots",
|
"mots",
|
||||||
"noredirect",
|
"noredirect",
|
||||||
"RewriteLast",
|
"RewriteLast",
|
||||||
"lien"
|
"lien",
|
||||||
|
"aComposeInputSearch",
|
||||||
|
"type_recherche_forum",
|
||||||
|
"add_mots"
|
||||||
],
|
],
|
||||||
"referralMarketing": [],
|
"referralMarketing": [],
|
||||||
"rawRules": [],
|
"rawRules": [],
|
||||||
@@ -1672,7 +1731,9 @@
|
|||||||
"type_recherche",
|
"type_recherche",
|
||||||
"noredirect",
|
"noredirect",
|
||||||
"RewriteLast",
|
"RewriteLast",
|
||||||
"lien"
|
"lien",
|
||||||
|
"aComposeInputSearch",
|
||||||
|
"type_recherche_forum"
|
||||||
],
|
],
|
||||||
"referralMarketing": [],
|
"referralMarketing": [],
|
||||||
"rawRules": [],
|
"rawRules": [],
|
||||||
@@ -1708,6 +1769,184 @@
|
|||||||
".*url=([^&]*)"
|
".*url=([^&]*)"
|
||||||
],
|
],
|
||||||
"forceRedirection": false
|
"forceRedirection": false
|
||||||
|
},
|
||||||
|
"tiktok.com": {
|
||||||
|
"urlPattern": "(https:\\/\\/|http:\\/\\/)([a-zA-Z0-9-.]*\\.)?(tiktok)(\\.com).*",
|
||||||
|
"completeProvider": false,
|
||||||
|
"rules": [
|
||||||
|
"u_code",
|
||||||
|
"preview_pb",
|
||||||
|
"language",
|
||||||
|
"_d",
|
||||||
|
"timestamp",
|
||||||
|
"user_id",
|
||||||
|
"share_app_name",
|
||||||
|
"share_iid",
|
||||||
|
"source"
|
||||||
|
],
|
||||||
|
"referralMarketing": [],
|
||||||
|
"rawRules": [],
|
||||||
|
"exceptions": [],
|
||||||
|
"redirections": [],
|
||||||
|
"forceRedirection": false
|
||||||
|
},
|
||||||
|
"autoplus.fr": {
|
||||||
|
"urlPattern": "(https:\\/\\/|http:\\/\\/)([a-zA-Z0-9-.]*\\.)?(autoplus)(\\.fr).*",
|
||||||
|
"completeProvider": false,
|
||||||
|
"rules": [
|
||||||
|
"idprob",
|
||||||
|
"hash",
|
||||||
|
"sending_id",
|
||||||
|
"site_id",
|
||||||
|
"dr_tracker"
|
||||||
|
],
|
||||||
|
"referralMarketing": [],
|
||||||
|
"rawRules": [],
|
||||||
|
"exceptions": [],
|
||||||
|
"redirections": [],
|
||||||
|
"forceRedirection": false
|
||||||
|
},
|
||||||
|
"bigfishgames.com": {
|
||||||
|
"urlPattern": "(https:\\/\\/|http:\\/\\/)([a-zA-Z0-9-.]*\\.)?(bigfishgames)(\\.com).*",
|
||||||
|
"completeProvider": false,
|
||||||
|
"rules": [
|
||||||
|
"pc",
|
||||||
|
"npc",
|
||||||
|
"npv[0-9]+",
|
||||||
|
"npi"
|
||||||
|
],
|
||||||
|
"referralMarketing": [],
|
||||||
|
"rawRules": [
|
||||||
|
"\\?pc$"
|
||||||
|
],
|
||||||
|
"exceptions": [],
|
||||||
|
"redirections": [],
|
||||||
|
"forceRedirection": false
|
||||||
|
},
|
||||||
|
"dpbolvw.net": {
|
||||||
|
"urlPattern": "(https:\\/\\/|http:\\/\\/)([a-zA-Z0-9-.]*\\.)?(dpbolvw)(\\.net).*",
|
||||||
|
"completeProvider": false,
|
||||||
|
"rules": [],
|
||||||
|
"referralMarketing": [],
|
||||||
|
"rawRules": [],
|
||||||
|
"exceptions": [],
|
||||||
|
"redirections": [
|
||||||
|
".*url=([^&]*)"
|
||||||
|
],
|
||||||
|
"forceRedirection": false
|
||||||
|
},
|
||||||
|
"humblebundle.com": {
|
||||||
|
"urlPattern": "(https:\\/\\/|http:\\/\\/)([a-zA-Z0-9-.]*\\.)?(humblebundle)(\\.com).*",
|
||||||
|
"completeProvider": false,
|
||||||
|
"rules": [],
|
||||||
|
"referralMarketing": [
|
||||||
|
"partner"
|
||||||
|
],
|
||||||
|
"rawRules": [],
|
||||||
|
"exceptions": [],
|
||||||
|
"redirections": [],
|
||||||
|
"forceRedirection": false
|
||||||
|
},
|
||||||
|
"cafepedagogique.net": {
|
||||||
|
"urlPattern": "(https:\\/\\/|http:\\/\\/)([a-zA-Z0-9-.]*\\.)?(cafepedagogique)(\\.net).*",
|
||||||
|
"completeProvider": false,
|
||||||
|
"rules": [
|
||||||
|
"actId",
|
||||||
|
"actCampaignType",
|
||||||
|
"actSource"
|
||||||
|
],
|
||||||
|
"referralMarketing": [],
|
||||||
|
"rawRules": [],
|
||||||
|
"exceptions": [],
|
||||||
|
"redirections": [],
|
||||||
|
"forceRedirection": false
|
||||||
|
},
|
||||||
|
"bloculus.com": {
|
||||||
|
"urlPattern": "(https:\\/\\/|http:\\/\\/)([a-zA-Z0-9-.]*\\.)?(bloculus)(\\.com).*",
|
||||||
|
"completeProvider": false,
|
||||||
|
"rules": [
|
||||||
|
"tl_[a-zA-Z_]+"
|
||||||
|
],
|
||||||
|
"referralMarketing": [],
|
||||||
|
"rawRules": [],
|
||||||
|
"exceptions": [],
|
||||||
|
"redirections": [],
|
||||||
|
"forceRedirection": false
|
||||||
|
},
|
||||||
|
"mailpanion.com": {
|
||||||
|
"urlPattern": "(https:\\/\\/|http:\\/\\/)([a-zA-Z0-9-.]*\\.)?(mailpanion)(\\.com).*",
|
||||||
|
"completeProvider": false,
|
||||||
|
"rules": [],
|
||||||
|
"referralMarketing": [],
|
||||||
|
"rawRules": [],
|
||||||
|
"exceptions": [],
|
||||||
|
"redirections": [
|
||||||
|
".*destination=([^&]*)"
|
||||||
|
],
|
||||||
|
"forceRedirection": false
|
||||||
|
},
|
||||||
|
"signtr.website": {
|
||||||
|
"urlPattern": "(https:\\/\\/|http:\\/\\/)([a-zA-Z0-9-.]*\\.)?(signtr)(\\.website).*",
|
||||||
|
"completeProvider": false,
|
||||||
|
"rules": [],
|
||||||
|
"referralMarketing": [],
|
||||||
|
"rawRules": [],
|
||||||
|
"exceptions": [],
|
||||||
|
"redirections": [
|
||||||
|
".*redirect=([^&]*)"
|
||||||
|
],
|
||||||
|
"forceRedirection": false
|
||||||
|
},
|
||||||
|
"mailtrack.io": {
|
||||||
|
"urlPattern": "(https:\\/\\/|http:\\/\\/)([a-zA-Z0-9-.]*\\.)?(mailtrack)(\\.io).*",
|
||||||
|
"completeProvider": false,
|
||||||
|
"rules": [],
|
||||||
|
"referralMarketing": [],
|
||||||
|
"rawRules": [],
|
||||||
|
"exceptions": [],
|
||||||
|
"redirections": [
|
||||||
|
".*url=([^&]*)"
|
||||||
|
],
|
||||||
|
"forceRedirection": false
|
||||||
|
},
|
||||||
|
"zillow.com": {
|
||||||
|
"urlPattern": "(https:\\/\\/|http:\\/\\/)([a-zA-Z0-9-.]*\\.)?(zillow)(\\.com).*",
|
||||||
|
"completeProvider": false,
|
||||||
|
"rules": [
|
||||||
|
"rtoken"
|
||||||
|
],
|
||||||
|
"referralMarketing": [],
|
||||||
|
"rawRules": [],
|
||||||
|
"exceptions": [],
|
||||||
|
"redirections": [],
|
||||||
|
"forceRedirection": false
|
||||||
|
},
|
||||||
|
"realtor.com": {
|
||||||
|
"urlPattern": "(https:\\/\\/|http:\\/\\/)([a-zA-Z0-9-.]*\\.)?(realtor)(\\.com).*",
|
||||||
|
"completeProvider": false,
|
||||||
|
"rules": [
|
||||||
|
"ex",
|
||||||
|
"identityID",
|
||||||
|
"MID",
|
||||||
|
"RID"
|
||||||
|
],
|
||||||
|
"referralMarketing": [],
|
||||||
|
"rawRules": [],
|
||||||
|
"exceptions": [],
|
||||||
|
"redirections": [],
|
||||||
|
"forceRedirection": false
|
||||||
|
},
|
||||||
|
"redfin.com": {
|
||||||
|
"urlPattern": "(https:\\/\\/|http:\\/\\/)([a-zA-Z0-9-.]*\\.)?(redfin)(\\.com).*",
|
||||||
|
"completeProvider": false,
|
||||||
|
"rules": [
|
||||||
|
"riftinfo"
|
||||||
|
],
|
||||||
|
"referralMarketing": [],
|
||||||
|
"rawRules": [],
|
||||||
|
"exceptions": [],
|
||||||
|
"redirections": [],
|
||||||
|
"forceRedirection": false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user