mirror of
https://gitlab.com/KevinRoebert/ClearUrls
synced 2025-12-20 08:05:35 +07:00
Refactoring
This commit is contained in:
@@ -35,9 +35,9 @@ var currentURL;
|
|||||||
* 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
|
||||||
* @return {Array} Array with changes and url fields
|
* @return {object} Object with changes and url fields
|
||||||
*/
|
*/
|
||||||
function removeFieldsFormURL(provider, pureUrl, quiet = false) {
|
function removeFieldsFormURL(provider, pureUrl, quiet = false) {
|
||||||
let url = pureUrl;
|
let url = pureUrl;
|
||||||
@@ -84,7 +84,7 @@ function removeFieldsFormURL(provider, pureUrl, quiet = false) {
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* 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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user