A Chrome extension that enables or disables Facebook's Profile Picture Guard with a single click.
- One-click toggle for Profile Picture Guard
- Uses Facebook's GraphQL API with multiple doc ID fallbacks
- UI fallback when API is blocked (automated menu navigation)
- Automatic extraction of
fb_dtsgandc_usertokens - Changes apply account-wide and are visible on mobile devices
- Remembers the last set state between browser sessions
- Download or clone this repository.
- Open Chrome and go to
chrome://extensions. - Enable Developer mode (toggle in the top right).
- Click Load unpacked and select the extension folder.
- The extension icon will appear in your toolbar.
- Navigate to the desktop version of Facebook (
web.facebook.comorwww.facebook.com).
The extension will not work on the mobile site (m.facebook.com). - Click the extension icon in the toolbar.
- The popup displays the last known state (or Unknown if never toggled before).
- Click the toggle to turn Profile Guard ON or OFF.
- A confirmation message will appear indicating whether the change was made via API or UI fallback.
Warning
State detection is currently unreliable on desktop.
Facebook's desktop interface does not visually reflect the Profile Guard state, and the API does not reliably report the current status. Therefore, the extension cannot automatically detect whether the guard is already enabled.
However, the extension remembers the last toggle action you performed and displays that state. The toggle itself works correctly — changes apply account‑wide and can be verified on the Facebook mobile app or mobile website.
| Permission | Purpose |
|---|---|
activeTab |
Access the current Facebook tab to extract tokens and execute toggle actions. |
scripting |
Inject scripts into Facebook pages to interact with the DOM and API. |
storage |
Save the last known guard state and update notification preferences. |
notifications |
Show update available alerts. |
webNavigation |
Detect page loads to refresh internal state. |
*://*.facebook.com/* |
Allow the extension to run only on Facebook domains. |
manifest.json– Extension configurationbackground.js– Service worker handling token extraction and toggle logicpopup.html– Extension popup interfacepopup.js– Popup interaction logic and state persistenceicons/– Extension icons in various sizes
This extension is not affiliated with, endorsed, or sponsored by Facebook. Use at your own risk. The developer is not responsible for any account issues arising from its use.
This project is licensed under the MIT License. See the LICENSE file for details.
