{"id":28074254,"url":"https://github.com/cherouvim/remove-fbclid","last_synced_at":"2025-05-12T23:33:00.654Z","repository":{"id":57353303,"uuid":"182207532","full_name":"cherouvim/remove-fbclid","owner":"cherouvim","description":"Removes the fbclid parameter from the URL which is appended by facebook.","archived":false,"fork":false,"pushed_at":"2020-04-08T06:33:14.000Z","size":9,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-05T17:25:07.391Z","etag":null,"topics":["facebook","hacktoberfest","javascript-library","url"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cherouvim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-19T05:34:25.000Z","updated_at":"2025-03-20T02:05:25.000Z","dependencies_parsed_at":"2022-09-18T23:23:30.829Z","dependency_job_id":null,"html_url":"https://github.com/cherouvim/remove-fbclid","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cherouvim%2Fremove-fbclid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cherouvim%2Fremove-fbclid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cherouvim%2Fremove-fbclid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cherouvim%2Fremove-fbclid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cherouvim","download_url":"https://codeload.github.com/cherouvim/remove-fbclid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253841098,"owners_count":21972590,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["facebook","hacktoberfest","javascript-library","url"],"created_at":"2025-05-12T23:32:32.916Z","updated_at":"2025-05-12T23:33:00.628Z","avatar_url":"https://github.com/cherouvim.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# remove-fbclid\n[![npm version](https://img.shields.io/npm/v/remove-fbclid.svg?color=0c0)](https://www.npmjs.com/package/remove-fbclid)\n[![build size](https://badgen.net/bundlephobia/minzip/remove-fbclid?color=0c0)](https://bundlephobia.com/result?p=remove-fbclid)\n[![travis](https://img.shields.io/travis/cherouvim/remove-fbclid.svg?color=0c0)](https://travis-ci.org/cherouvim/remove-fbclid)\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?color=0c0)](http://makeapullrequest.com)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?color=0c0)](https://github.com/prettier/prettier)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?color=0c0)](https://opensource.org/licenses/MIT)\n\nRemoves the parameter `fbclid` that facebook adds on some shared URLs.\n\nThe `fbclid` parameter will be removed via a `window.history.replaceState` on [current browsers](https://caniuse.com/#search=replacestate) and via `window.location.replace` on older ones.\n\nMore info about that parameter:\n- https://fbclid.com/\n- https://stackoverflow.com/q/52847475/72478\n\n## Usage\nDo the following once, on initial page load:\n```js\nconst removeFbclid = require(\"remove-fbclid\");\n\nremoveFbclid();\n```\nor:\n```js\nimport removeFbclid from \"remove-fbclid\";\n\nremoveFbclid();\n```\n\n## Other tips (unrelated to this JavaScript library)\nAdd the following in your `/robots.txt` to prevent indexing:\n```\nUser-agent: *\nDisallow: /?fbclid*\n```\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcherouvim%2Fremove-fbclid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcherouvim%2Fremove-fbclid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcherouvim%2Fremove-fbclid/lists"}