insta-prune — Setup

Location: ~/py/insta-prune/

Dependencies: Python 3, Selenium (pip install selenium), geckodriver on PATH, Firefox installed.

Firefox Profile

A real Firefox profile is stored in firefox-profile/. It contains login cookies for john_appreciates on Instagram.

On each run the profile is copied to a temp dir so the original is not locked by Firefox. After the browser closes, the temp profile is copied back to firefox-profile/, preserving session state (cookies, localStorage etc.) for the next run.

The copy excludes: lock, storage, cache2, startupCache, thumbnails, chrome_debugger_profile.

Profile Fixes Applied

- MicrosoftRewards@microsoft.com.xpi deleted from extensions/ and removed from extensions.json — was opening a consent tab on every launch.

- permissions.default.desktop-notification = 2 added to prefs.js — blocks notification permission prompts.

version1
created2026-03-15