Prevent LinkedIn from tracking your visits to other websites
A Firefox extension that isolates LinkedIn in a dedicated container to prevent cross-site tracking and protect your privacy. Based on Mozilla's Facebook Container with comprehensive adaptations for LinkedIn.
LinkedIn Container is an add-on you can install on Firefox to prevent LinkedIn from tracking your activity on other websites, so you can continue to use LinkedIn while protecting your privacy.
Note: To learn more about Containers in general, see Firefox Multi-Account Containers.
The Add-on keeps LinkedIn in a separate Container to prevent it from following your activity on other websites. When you first install the add-on, it signs you out of LinkedIn and deletes the cookies that LinkedIn uses to track you on other websites.
Every time you visit LinkedIn, it will open in its own container, separate from other websites you visit. You can login to LinkedIn within its container. When browsing outside the container, LinkedIn won't be able to easily collect your browsing data and connect it to your LinkedIn identity.
We've made it easy to take steps to protect your privacy so you can go on with your day.
- Install LinkedIn Container (see Installation section below). This will log you out of LinkedIn and delete the cookies it's been using to track you.
- Open LinkedIn and use it like you normally would. Firefox will automatically switch to the LinkedIn Container tab for you.
- If you click on a link to a page outside of LinkedIn or type in another website in the address bar, Firefox will load them outside of the LinkedIn Container
LinkedIn Container prevents LinkedIn from linking your activity on other websites to your LinkedIn identity. Therefore, the following will not work:
Because you are logged into LinkedIn only in the Container, "Sign in with LinkedIn" buttons on other websites will not work.
Websites that allow you to share content to LinkedIn or display LinkedIn widgets will generally not work properly while you're logged into your contained LinkedIn account.
This add-on does not prevent LinkedIn from mishandling the data it already has or permitted others to obtain about you. LinkedIn still will have access to everything that you do while you are on linkedin.com, including your profile updates, posts, connections, messages, and any data you share with LinkedIn connected apps, etc.
Other ad networks may try to link your LinkedIn activities with your regular browsing. In addition to this add-on, there are other things you can do to maximize your protection, including changing your LinkedIn privacy settings, using Private Browsing and Tracking Protection, blocking third-party cookies, and/or using Firefox Multi-Account Containers extension to further limit tracking.
Good news! Containers aren't just for LinkedIn. You can use Containers to prevent websites from linking your identities across the Web by installing Firefox Multi-Account Containers.
To learn more about how Multi-Account Containers work, see our support page at Firefox Multi-Account Containers.
- Clone this repository
npm install --legacy-peer-depsnpm run devto run in Firefox- Or load as temporary add-on in Firefox:
about:debugging→ Load Temporary Add-on → selectmanifest.jsonfromsrc/directory
npm run build- Use the add-on zip file generated in the
web-ext-artifactsfolder - Install in Firefox via
about:addons→ Install Add-on From File
- Node.js 16.14.1+ (see
package.jsonvolta config) - npm 8.5.0+
- Firefox 140+ (required for modern data consent features)
npm install --legacy-peer-deps # Install dependencies
npm run dev # Run extension in Firefox
npm run lint # Run ESLint
npm test # Run all tests
npm run build # Build for productionnpm test- Run full test suite (unit + functional + lint)npm run test-watch- Watch mode for unit testsnpm run test-functional- Functional tests onlynpm run coverage- Generate coverage report
This project is a comprehensive fork and adaptation of Mozilla's Facebook Container (v2.3.12).
- Source: Mozilla Facebook Container
- Authors: Mozilla Corporation
- License: MPL-2.0 (maintained)
- Version: Based on v2.3.12
✅ Container isolation technology
✅ Third-party tracker blocking via webRequest API
✅ Domain management and allowlist system
✅ Multi-Account Containers (MAC) integration
✅ Service worker clearing
✅ Comprehensive test suite
🔹 35+ LinkedIn domains covered (core, CDN, tracking, business products, owned properties)
🔹 LinkedIn tracking parameter removal: li_source, trk, trkInfo, lipi, licu, original_referer
🔹 Owned properties: lynda.com, slideshare.net support
🔹 LinkedIn branding: Custom UI with LinkedIn blue (#0A66C2)
🔹 74 locales: Complete internationalization
The Facebook Container provides a battle-tested, production-ready architecture for website isolation. Rather than building from scratch, this project leverages Mozilla's excellent work and adapts it specifically for LinkedIn's ecosystem, ensuring:
- Proven reliability and security
- Active maintenance patterns
- Community-tested privacy protection mechanisms
- Professional code quality and test coverage
✅ Container Isolation - LinkedIn opens in dedicated container
✅ Tracker Blocking - Blocks LinkedIn Insight Tag and px.ads.linkedin.com
✅ Cookie Isolation - Prevents cross-site tracking via cookies
✅ Tracking Parameter Removal - Strips li_source, trk, and other tracking params
✅ Service Worker Clearing - Removes persistent tracking mechanisms
✅ Domain Management - User control over which sites can access LinkedIn
Contributions are welcome! Please see CONTRIBUTING.md for guidelines.
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Make your changes and test thoroughly
- Run tests:
npm test - Commit:
git commit -m 'Add amazing feature' - Push:
git push origin feature/amazing-feature - Open a Pull Request
- Bug Reports: GitHub Issues
- Feature Requests: GitHub Issues
- Questions: Check existing issues or open a new one
See CHANGELOG.md for version history and release notes.
- Publish to Firefox Add-ons (AMO)
- Custom LinkedIn-themed icons
- Enhanced content script selectors for LinkedIn UI elements
- Performance optimizations
- Additional domain discovery and refinement
Disclaimer: This is an unofficial, open-source extension and is not affiliated with, endorsed by, or connected to LinkedIn Corporation or Microsoft Corporation.
License: MPL-2.0 (same as original Facebook Container)
Trademark Notice: LinkedIn is a registered trademark of LinkedIn Corporation.