Compare commits

..

No commits in common. "5ecc8bd63450985326136c977d84bc666a5cbfdb" and "b817d8942ccf871693f6dab4050c14cc1f864eee" have entirely different histories.

2 changed files with 5 additions and 6 deletions

View File

@ -50,19 +50,19 @@ tweet_delay = 0
# Default is 0 (which means unlimited)
toot_cap = 0
# Replace twitter.com in links by random alternative out of this list
# Replace twitter links by random alternative out of this list
# List of nitter instances
# e.g. subst_twitter = ["nitter.net", ]
# Default is []
subst_twitter = []
# Replace youtube.com in links by random alternative out of this list
# Replace youtube.com link by random alternative out of this list
# List of Invidious or Piped instances
# e.g. subst_youtube = ["piped.kavin.rocks", "invidious.flokinet.to", ]
# Default is []
subst_youtube = []
# Replace reddit.com in links by random alternative out of this list
# Replace reddit.com link by random alternative out of this list
# List of Teddit instances
# e.g. subst_reddit = ["teddit.net", ]
# Default is []

View File

@ -187,7 +187,7 @@ def deredir_url(url):
ret = None
try:
# Download the page
ret = requests.head(url, headers=headers, allow_redirects=True, timeout=5)
ret = requests.head(url, headers=headers, timeout=5)
except:
# If anything goes wrong keep the URL intact
return url
@ -213,8 +213,7 @@ def _remove_trackers_query(query_str):
# tags by Facebook
params_to_remove = {
"gclid", "_ga", "gclsrc", "dclid",
"utm_source", "utm_medium", "utm_campaign", "utm_term", "utm_content", "utm_cid",
"utm_reader", "utm_name", "utm_referrer", "utm_social", "utm_social-type", "utm_brand"
"utm_source", "utm_medium", "utm_campaign", "utm_term", "utm_content", "utm_cid", "utm_reader", "utm_name", "utm_referrer", "utm_social", "utm_social-type",
"mkt_tok",
"campaign_name", "ad_set_name", "campaign_id", "ad_set_id",
"fbclid", "campaign_name", "ad_set_name", "ad_set_id", "media", "interest_group_name", "ad_set_id"