MCPcopy Index your code
hub / github.com/ClearURLs/Addon / pureCleaning

Function pureCleaning

core_js/pureCleaning.js:28–38  ·  view source on GitHub ↗

* Cleans given URLs. Also do automatic redirection. * * @param {String} url url as string * @param {boolean} quiet if the action should be displayed in log and statistics * @return {String} cleaned URL

(url, quiet = false)

Source from the content-addressed store, hash-verified

26 * @return {String} cleaned URL
27 */
28function pureCleaning(url, quiet = false) {
29 let before = url;
30 let after = url;
31
32 do {
33 before = after;
34 after = _cleaning(before, quiet);
35 } while (after !== before); // do recursive cleaning
36
37 return after;
38}
39
40/**
41 * Internal function to clean the given URL.

Callers 3

historyCleanerFunction · 0.85
contextMenuStartFunction · 0.85
watchdog.jsFile · 0.85

Calls 1

_cleaningFunction · 0.85

Tested by

no test coverage detected