MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / strip_tracking

Function strip_tracking

Scripts/Developer Base/Free Internet.py:318–325  ·  view source on GitHub ↗
(url: str)

Source from the content-addressed store, hash-verified

316
317
318def strip_tracking(url: str) -> str:
319 try:
320 p = urllib.parse.urlsplit(url)
321 q = urllib.parse.parse_qsl(p.query, keep_blank_values=True)
322 q = [(k, v) for k, v in q if k.lower() not in TRACKING_PARAMS]
323 return urllib.parse.urlunsplit((p.scheme, p.netloc, p.path, urllib.parse.urlencode(q, doseq=True), p.fragment))
324 except Exception:
325 return url
326
327
328def is_blocked_url(url: str) -> bool:

Callers 10

history_itemsFunction · 0.70
add_historyFunction · 0.70
replFunction · 0.70
absolute_or_searchFunction · 0.70
tools_save_screenshotFunction · 0.70
browser_save_bookmarkFunction · 0.70
browser_delete_bookmarkFunction · 0.70
browser_delete_historyFunction · 0.70
browser_save_pageFunction · 0.70
browser_openFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected