New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

remove-fbclid

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remove-fbclid

Removes the fbclid parameter from the URL which is appended by facebook

latest
Source
npmnpm
Version
0.9.6
Version published
Weekly downloads
3
-70%
Maintainers
1
Weekly downloads
 
Created
Source

remove-fbclid

npm version build size travis PRs Welcome code style: prettier License: MIT

Removes the parameter fbclid that facebook adds on some shared URLs.

The fbclid parameter will be removed via a window.history.replaceState on current browsers and via window.location.replace on older ones.

More info about that parameter:

Usage

Do the following once, on initial page load:

const removeFbclid = require("remove-fbclid");

removeFbclid();

or:

import removeFbclid from "remove-fbclid";

removeFbclid();

Other tips (unrelated to this JavaScript library)

Add the following in your /robots.txt to prevent indexing:

User-agent: *
Disallow: /?fbclid*

License

MIT

Keywords

fbclid

FAQs

Package last updated on 08 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts