Comment

Comment by marban

Related, if you're looking to clean urls on the backend, here's my current pattern used on https://upstract.com and some other news aggregators I've built:

startswith: 'utm_', 'ga_', 'hmb_', 'ic_', 'fb_', 'pd_rd', 'ref_', 'share_', 'client_', 'service_'

or has: '$/ref@amazon.', '.tsrc', 'ICID', '_xtd', '_encoding@amazon.', '_hsenc', '_openstat', 'ab', 'action_object_map', 'action_ref_map', 'action_type_map', 'amp', 'arc404', 'affil', 'affiliate', 'app_id', 'awc', 'bfsplash', 'bftwuk', 'campaign', 'camp', 'cip', 'cmp', 'CMP', 'cmpid', 'curator', '[email protected]', 'efg', 'ei@google.', 'fbclid', 'fbplay', '[email protected]', 'feedName', 'feedType', '[email protected]', 'forYou', 'fsrc', 'ftcamp', 'ga_campaign', 'ga_content', 'ga_medium', 'ga_place', 'ga_source', 'ga_term', 'gi', '[email protected]', 'gs_l', 'gws_rd@google.', 'igshid', 'instanceId', 'instanceid', '[email protected]', 'maca', 'mbid', 'mkt_tok', 'mod', 'ncid', 'ocid', 'offer', 'origin', 'partner','[email protected]', 'print', 'printable', 'psc@amazon.', '[email protected]', 'rebelltitem', 'ref', 'referer', 'referrer', 'rss', 'ru', '[email protected]', 'scrolla', 'sei@google.', 'sh', 'share', '[email protected]', 'source', '[email protected]', 'sref', 'srnd', 'supported_service_name', 'tag', 'taid', 'time_continue', 'tsrc', 'twsrc', 'twcamp', 'twclid', 'tweetembed', 'twterm', 'twgr', 'utm', 'ved@google.', 'via', 'xid', 'yclid', 'yptr'

Edit: Will turn this into a Gist at some point.

parent marban 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton