[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111732":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":9,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":9,"pushedAt":25,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":15,"starSnapshotCount":15,"syncStatus":16,"lastSyncTime":29,"discoverSource":30},111732,"ThreadsPulse","mumuisdog\u002FThreadsPulse","mumuisdog","An iOS tweak for Threads",null,"Objective-C",225,77,138,3,0,2,23,80,9,66.13,false,"main",true,[],"2026-11-21 12:05:13","2026-11-23 12:41:22","# ThreadsPulse\n\n**English** | [繁體中文](README.zh-TW.md)\n\nAn iOS tweak for Threads (`com.burbn.barcelona`). Current version: **1.20.2**\n\nNo jailbreak needed: build your own Threads IPA with ThreadsPulse injected using GitHub Actions, then install it with your own signing tool.\n\n## Features\n\n| Section | Feature | Description |\n|---|---|---|\n| Ads & Privacy | Block Ads | Hide sponsored posts in the feed |\n| | Block Screenshot Detection | Threads won't know when you take a screenshot or record the screen |\n| | Block Analytics | Stop Threads from sending usage data such as what you view, how long you stay and what you tap. Recommendations may become less accurate (off by default) |\n| | Remove URL Tracking | Strip `xmt`, `igshid`, `utm_*` and more when copying, sharing or opening links, and unwrap `l.threads.com` redirects |\n| Download | Download Button | ↓ at the top-right of a post: tap to download all photos and videos; long-press to download only photos or only videos |\n| | Download Original-Size Photos | Fetches the original resolution from threads.com; WebP is converted to JPEG for Photos |\n| | Download Original-Size Profile Pictures | Long-press a profile picture on a profile, or open it full screen and tap ↓ |\n| Video | Disable Autoplay | Videos in the feed won't play until you tap them |\n| | Default Playback Speed | 1x \u002F 1.25x \u002F 1.5x \u002F 2x |\n| Home Feed | Keep Feed Position | Coming back from the background won't refresh the home feed or jump to the top. Keep for 10 min \u002F 30 min \u002F No Limit |\n| | Disable Pull to Refresh | Pulling down at the top of the home feed won't refresh it |\n| | Home Tab: Don't Scroll to Top | When you're scrolled down, tapping the Home tab keeps you where you were |\n| | Home Tab: Don't Refresh | When you're at the top, tapping the Home tab won't load new posts |\n| Hidden Items | Hide Follow Suggestions | Stop the follow suggestions sheet from popping up |\n| | Hide Instagram Button | Hide the Instagram button at the top of profiles |\n| | Hide Suggested Accounts in Feed | Hide suggested-account cards in the feed, and the \"Suggested for you\" section on profiles and after you follow someone |\n| Links | Detect Copied Links | When you come back or switch accounts, detect a copied Threads link and open that post |\n| | When a Link Is Found | **Ask** shows a prompt (Top \u002F Middle \u002F Bottom); **Auto-open** opens it right away |\n| | Open Links in External Browser | Links in posts and bios open in Safari (or your default browser) instead of the in-app browser. Threads links still open in the app |\n| Interface & Interactions | Theme Color | Accent color of the plugin: Coral \u002F Ocean \u002F Mint \u002F Lavender \u002F Sakura \u002F Amber |\n| | Like Confirmation | Ask before a like is sent, to prevent accidental taps |\n| | Post Time Format | Relative \u002F Date & Time \u002F With Seconds |\n| | Keep Tab Bar Visible | The tab bar at the bottom no longer hides while scrolling |\n| | Copy Profile Info | On a profile, long-press the name, username, bio or profile picture to copy the name, username or bio |\n| | Long-Press Home Tab for Settings | Long-pressing the Home tab at the bottom opens ThreadsPulse settings instead (off by default) |\n| Backup | Export \u002F Import Settings | JSON file |\n| Advanced | Debug Hints | Shows `[TP]` hints when features are active, to find out which one broke after a Threads update |\n| | Sideload Compatibility Fix | Keeps you signed in and app group data working after re-signing. Turns itself off on the original signature (jailbreak) |\n\n**Settings**: tap **〰 Pulse** at the top-right of Threads' Settings page, long-press anywhere with three fingers for 1 second, or (with **Long-Press Home Tab for Settings** on) long-press the Home tab.\n\n---\n\n## Build your own IPA with GitHub Actions (no jailbreak, recommended)\n\n### What you need\n\n1. **A decrypted Threads IPA.** This project does **not** provide Threads itself. The App Store version is encrypted and won't work; you need a decrypted IPA.\n2. **A direct download link to the IPA.** Put the IPA somewhere it can be downloaded directly (for example, a Dropbox link ending in `?dl=1`). Opening the link in a browser should start the download, not show a web page.\n3. **A signing tool** to install the IPA on your phone. Your tool decides which variant to pick (see below).\n\n### Two variants\n\n| Variant | For | Contents |\n|---|---|---|\n| **sideload** | Certificate signing: ESign, Feather, Sideloadly with a paid developer account, etc. | Keeps Threads' own extensions (widgets, share, etc.) and adds the \"Open in Threads\" Safari extension |\n| **noplugins** | **Free Apple IDs** with SideStore, AltStore, etc. | Removes all extensions. Free accounts can't sign extensions and have a limited number of App IDs |\n\n**\"Open in Threads\" Safari extension**: a sideloaded Threads can't receive universal links, so tapping a threads.com link in Safari just stays on the web page. This extension turns threads.com \u002F threads.net links into Threads app links and opens them: posts open the post, profiles open the profile.\nAfter installing, go to **Settings › Apps › Safari › Extensions** (on iOS 17 and earlier: **Settings › Safari › Extensions**), turn on \"Open in Threads\", and allow it on threads.com.\n\n### Set up your own repo (pick one)\n\n| Method | Pros | Cons |\n|---|---|---|\n| **Fork** (easiest) | One click; tap **Sync fork** to get new versions | A fork is always **public** |\n| **Import repository** (private) | Can be **private**, so only you can get the IPA | Re-import to get new versions |\n\n- **Fork**: click **Fork** at the top-right of this project's page → **Create fork**.\n  > **Anyone signed in to GitHub can download the Artifacts of a public repo**, and the IPA you build contains Threads itself. If you fork, save the IPA link as a Secret (see below) and delete the Artifact from the run page after downloading the IPA.\n- **Import repository**: click **＋** at the top-right of GitHub → **Import repository**, paste this project's URL into **Your old repository's clone URL**, set **Privacy** to **Private** → **Begin import**.\n  > Actions in private repos have a monthly free-minutes limit (macOS minutes count 10×). One build takes about 5–10 minutes.\n\n### Steps\n\n1. Open your repo → **Actions** tab. On a fork, first click \"I understand my workflows, go ahead and enable them\".\n2. (Recommended) Save the IPA link as a Secret: **Settings → Secrets and variables → Actions → New repository secret**, name it `DECRYPTED_IPA_URL`, and paste the IPA link as the value.\n3. Select **Build IPA** on the left → **Run workflow** on the right:\n   - **ipa_url**: the IPA link. Leave it empty if you set the Secret.\n   - **variant**: `both` (default, builds both), `sideload` or `noplugins`.\n4. Click **Run workflow**. It takes about 5–10 minutes.\n5. Open the run, and at the bottom under **Artifacts**, download `Threads_\u003Cversion>_Pulse_\u003Cversion>_sideload` or `…_noplugins`. Unzip it to get the IPA.\n6. Install it with your signing tool. Artifacts are deleted automatically after 3 days.\n\n**Common errors**\n\n| Error (shown in Chinese) | Meaning | Cause |\n|---|---|---|\n| 下載的檔案不是 IPA | The downloaded file isn't an IPA | The link opens a web page instead of downloading directly |\n| 這個 IPA 尚未解密 | This IPA isn't decrypted | It's the encrypted App Store version; use a decrypted IPA |\n| 執行檔的 header 空間不足 | Not enough header space in the executable | Very rare; please report your Threads version |\n\n> Please don't upload the IPA to a public Release or anywhere public.\n\n---\n\n## Other ways to build\n\n### GitHub Actions: tweak only (Build)\n\nPushing to `main` \u002F `master`, opening a pull request, or running **Build** → **Run workflow** in Actions produces:\n\n| File | Use |\n|---|---|\n| `ThreadsPulse_TrollFools_\u003Cversion>.zip` | For TrollFools or manual injection: `ThreadsPulse.dylib` and `ThreadsPulse.bundle` (the Safari extension is only included in the sideload IPA) |\n| `ThreadsPulse_rootless_\u003Cversion>.deb` | Rootless jailbreak (Dopamine \u002F palera1n rootless) |\n| `ThreadsPulse_rootful_\u003Cversion>.deb` | Rootful jailbreak |\n| `ThreadsPulse_roothide_\u003Cversion>.deb` | Roothide jailbreak (Dopamine roothide, Bootstrap) |\n\nPushing a tag that starts with `v` also creates a Release with these four files (Threads itself is not included):\n\n```bash\ngit tag v1.20.2\ngit push origin v1.20.2\n```\n\n### Build locally\n\nRequires [Theos](https:\u002F\u002Ftheos.dev) (macOS or Linux).\n\n```bash\nexport THEOS=~\u002Ftheos\nmake FINALPACKAGE=1            # dylib only: .theos\u002Fobj\u002FThreadsPulse.dylib\nmake package FINALPACKAGE=1    # .deb (jailbreak)\nmake -C OpenThreadsSafariExtension FINALPACKAGE=1   # Safari extension → OpenThreadsSafariExtension\u002F.theos\u002Fobj\u002F\n\n# Inject into a decrypted IPA (only needs Python 3 and zip \u002F unzip)\nBUNDLE=\"layout\u002FLibrary\u002FApplication Support\u002FThreadsPulse\u002FThreadsPulse.bundle\"\n# sideload variant\npython3 scripts\u002Finject_ipa.py -i Threads.ipa -d .theos\u002Fobj\u002FThreadsPulse.dylib -b \"$BUNDLE\" \\\n  --appex OpenThreadsSafariExtension\u002F.theos\u002Fobj\u002FOpenThreadsSafariExtension.appex -o sideload.ipa\n# noplugins variant\npython3 scripts\u002Finject_ipa.py -i Threads.ipa -d .theos\u002Fobj\u002FThreadsPulse.dylib -b \"$BUNDLE\" \\\n  --no-plugins -o noplugins.ipa\n```\n\n- Rootless jailbreak: uncomment `THEOS_PACKAGE_SCHEME = rootless` in the `Makefile`.\n- Uses the Logos `internal` generator to hook through the ObjC runtime directly, so it **doesn't depend on CydiaSubstrate \u002F ElleKit** and nothing extra needs to be injected.\n- The version number is defined only in `TPVersion.h` (also update `ThreadsPulse.bundle\u002FInfo.plist`). The iOS SDK and minimum iOS version are set by `SDK_VERSION` and `MIN_IOS` in the workflows.\n\n### What `inject_ipa.py` does\n\n1. Unpacks the IPA and copies `ThreadsPulse.dylib` into `Threads.app\u002FFrameworks\u002F` and `ThreadsPulse.bundle` into `Threads.app\u002F`.\n2. Adds an `LC_LOAD_DYLIB` load command (`@executable_path\u002FFrameworks\u002FThreadsPulse.dylib`) to the Threads executable, skipping it if already there.\n3. Checks that the app is decrypted (`cryptid` in `LC_ENCRYPTION_INFO_64`) and stops if it isn't.\n4. `--appex` copies an extension into `PlugIns\u002F` (removing any signing data inside it); `--no-plugins` removes `PlugIns\u002F`, `Extensions\u002F` and `Watch\u002F`.\n5. Repacks an **unsigned** IPA for your signing tool to sign.\n\nIt only uses the Python standard library; nothing else to install.\n\n---\n\n## Project structure\n\n```\nThreadsPulse\u002F\n├── Makefile\n├── control                         Package info\n├── ThreadsPulse.plist              Injection target (com.burbn.barcelona)\n├── Tweak.x                         All hooks (Logos)\n├── TPPrefs.h\u002F.m                    Settings storage, defaults, export \u002F import\n├── TPURLCleaner.h\u002F.m               URL tracking removal\n├── TPDownloader.h\u002F.m               URL selection, downloads, WebP → JPEG, diagnostics\n├── TPHUD.h\u002F.m                      Progress view, toasts, prompt banner\n├── TPUI.h\u002F.m                       Round frosted buttons, long-press menus, haptics\n├── TPSettingsViewController.h\u002F.m   Settings page (data model between TP_MODEL_BEGIN and TP_MODEL_END)\n├── TPLocalization.h\u002F.m             TPL() localization\n├── TPSideloadFix.h\u002F.m              Sideload compatibility fix (keychain, app groups)\n├── TPVersion.h                     Version number (change it only here)\n├── scripts\u002Finject_ipa.py           Injects the tweak into an IPA\n├── OpenThreadsSafariExtension\u002F     \"Open in Threads\" Safari extension (sideload variant only)\n│   ├── OpenInThreadsHandler.m      Native side (only lets the extension load)\n│   └── Resources\u002F                  content.js (link conversion and redirect), manifest.json, icons\n├── .github\u002F\n│   ├── actions\u002Fsetup-theos\u002F        Shared: installs Theos and the iOS SDK\n│   └── workflows\u002F\n│       ├── build.yml               Builds the tweak (zip \u002F deb)\n│       └── build-ipa.yml           Builds and injects the IPA\n└── layout\u002FLibrary\u002FApplication Support\u002FThreadsPulse\u002FThreadsPulse.bundle\u002F\n    ├── Info.plist\n    ├── en.lproj\u002FLocalizable.strings\n    └── zh-Hant.lproj\u002FLocalizable.strings\n```\n\n## Localization\n\n- The code always uses `TPL(@\"English text\")`; **the English text is the key**, and it's shown as-is when no translation exists.\n- The language follows the system: Traditional Chinese uses `zh-Hant`, everything else uses `en`.\n- To add a language, copy `en.lproj` (for example to `ja.lproj`), translate it, and add the language code to `CFBundleLocalizations` in `Info.plist`.\n\n## Implementation notes\n\n- **Swift classes**: hooked by mangled name (for example `_TtC6BCNUFI12BCNUFIButton`), with ivars read through the runtime. Pointers and classes are validated before reading Swift enum memory, to avoid crashes.\n- **Batch download**: reads every item from the carousel cell's data model (`BCNFeedMediaViewModel` → `IGPhoto` \u002F `IGVideo`), unaffected by cell reuse.\n- **Original-size photos \u002F profile pictures**: fetches `https:\u002F\u002Fwww.threads.com\u002Ft\u002F\u003Ccode>` or `\u002F@\u003Cusername>` and picks the largest candidate from the page JSON by matching file names.\n- **Clipboard**: first checks for a URL with `detectPatternsForPatterns:` (no paste prompt); the content is only read when you tap Open or use Auto-open. The link is handed to Threads through `NSUserActivity` (BrowsingWeb).\n- **Account switching**: hooks `IGAccountSwitcher` and checks the clipboard 1.5 s after the last switch event; 0.8 s after returning from another app.\n- **Keep Feed Position**: passes 0 seconds to `applicationWillWarmStartWithTimeIntervalSinceBackgrounded:` (home feed and `BCNAppViewController`), sets the feed's `lastBgTime` to now before it comes to the foreground, and raises the server thresholds in `IGFeedRefreshInstructionsStore` to the keep time.\n- **Pull to refresh**: in the home feed's `scrollViewDidScroll:`, the offset is kept from going past the top while dragging, so the refresh control never triggers.\n- **Home tab**: with the new tab bar (`BCNLucentTabBarCoordinator`), re-selecting the same tab first checks whether the feed is at the top, then decides whether Threads gets to handle the tap (`tabBarController:shouldSelectTab:`, `didSelectTab:previousTab:`, `handleTabBarDoubleTap:`). The legacy tab bar (`BCNLegacyTabBarController`) decides in Swift where it can't be intercepted, so the tap time is recorded and upward scrolls \u002F refreshes of the feed are blocked for 1 s. These fallback hooks are only installed the first time the legacy tab bar is tapped.\n- **Keep Tab Bar Visible**: keeps `scrollViewDidScroll:` \u002F `scrollViewDidEndScrolling:` from reaching `BCNLucentTabBarCoordinator`, and sets iOS 26's `tabBarMinimizeBehavior` to never.\n- **Sideload Compatibility Fix**: on load, stores a probe item in the keychain and reads back the access group the system actually assigned. It only activates when the Team ID isn't Meta's (`MH9GU9K5PX`). It rewrites `SecItemAdd` \u002F `CopyMatching` \u002F `Update` \u002F `Delete` in the symbol pointer tables of the app's own images (main executable and `Frameworks\u002F`) to swap Threads' access groups for the usable one, and falls back to `Library\u002FThreadsPulseAppGroups\u002F\u003Cgroup>` when `containerURLForSecurityApplicationGroupIdentifier:` returns nil. Threads doesn't use iCloud, so CloudKit isn't touched.\n- **Copy Profile Info**: copies the name (`fullNameLabel`), username (`usernameLabel`, without `@`) or bio. Adds long-press gestures to the profile picture, `fullNameLabel`, `usernameLabel` and `IGProfileBioView` in `BCNProfileHeaderView`. The full bio comes from `_fullCollapsibleBioString` (when collapsed) or `_stringForView`. When the feature is off the gestures don't begin, so Threads' own long-press works as usual.\n- **Hide Instagram Button**: hides `$__lazy_storage_$_appSwitcherButton` (the Instagram app-switcher button) of `BCNProfileViewController` in `viewDidLayoutSubviews`, together with any wrapper view that holds only it. Inside a stack view the gap closes by itself; otherwise the buttons in the same row are shifted with a transform to fill it.\n- **Open Links in External Browser**: hooks both `handleLinkWithURL:` methods of `BCNLinkHandlerImpl` (an ObjC protocol, so calls go through ObjC dispatch). `l.threads.com` redirect wrappers are unwrapped first; `threads.net` \u002F `threads.com` and non-web links keep the original behaviour, everything else is opened with `-[UIApplication openURL:]` (tracking parameters are removed when Remove URL Tracking is on).\n- **Long-Press Home Tab for Settings**: hooks `-[BCNLucentTabBarCoordinator handleTabBarLongPress:]`. When the press begins on the first (Home) tab button, ThreadsPulse settings open and the rest of that gesture is swallowed; long-presses on other tabs (e.g. switching accounts on the profile tab) work as usual.\n- **Block Analytics**: usage events are dropped where they are collected (`-[FBAnalyticsCoreLogger _captureAnalyticsEvent:]`, `_captureAnalyticsEventForBatchUpload:`, and `_shouldStreamEvent:` returns NO), and uploads of anything already stored go through Meta's own `FBAnalyticsNoOpNetworkConfigurator` instead of `IGAnalyticsNetworkConfigurator`, so no request is sent. Normal API calls (login, posting, loading the feed) don't go through this path.\n- **Disable Autoplay**: when a feed video scrolls into view (`-[IGFNFVideoPlayer playWithReason:callsiteContext:]`, reason 1), Threads is allowed to start playback as usual so its UI (including the sound icon) appears, but the underlying `FNFPlayer` is held: its first `play` runs with volume 0 so Threads reaches \"initial play\" and shows the sound icon, then it is paused on the first frame (`videoPlayerDidInitialPlay:`); later `play` \u002F `playWithContext:` calls are ignored. Tapping the video (a touch that barely moved, so scrolling doesn't count) releases the hold and starts `FNFPlayer`. Other play reasons (full screen, etc.) and videos outside the feed play as usual. Once started, the same player isn't held again until it's stopped. The single-video download button now reads the URL from nearby data objects first, so videos that never played can still be downloaded.\n- **Hide Follow Suggestions**: intercepts `presentViewController:` when `BCNUserRecommendationsViewController` is presented as a sheet; pushed pages aren't affected.\n\n## Notes\n\nWhen Threads updates, some features may stop working for a while (no crash). Turn on Debug Hints to see which one, and feel free to report it.\n\n## Disclaimer\n\n1. This project is independently developed, unofficial software. It is not affiliated with, sponsored, authorized or endorsed by Meta Platforms, Inc. (\"Meta\") or Apple Inc. \"Threads\" and related marks are trademarks of Meta and are used here only to identify compatibility.\n2. This project does not include or distribute the Threads application or any part of it. Users must obtain any required files lawfully and must not publicly distribute modified applications.\n3. Modifying third-party applications may violate the applicable terms of service and may result in account restrictions, suspension or other consequences. Users assess and bear these risks on their own.\n4. All content downloaded through this project remains the property of its respective rights holders. Users may only use it for personal purposes to the extent permitted by law and must not infringe the rights of others.\n5. This project is provided \"as is\", without warranty of any kind, express or implied. In no event shall the author be liable for any direct, indirect, incidental or consequential damages arising from the use of, or inability to use, this project.\n6. By downloading, building or using this project, you acknowledge that you have read, understood and agreed to this disclaimer in full.\n\n## Author\n\nh4x_0x30vm · [Ko-fi](https:\u002F\u002Fko-fi.com\u002Fmumuisdog)\n\n© 2026 h4x_0x30vm. All rights reserved.\n","ThreadsPulse 是一款面向 iOS 平台的 Threads 应用增强插件，无需越狱即可通过重签名方式注入使用。它提供广告屏蔽、截图检测绕过、分析数据拦截、链接追踪参数清理等隐私保护功能；支持媒体下载（含原图\u002F原视频）、视频播放控制（禁用自动播放、自定义倍速）、信息流行为优化（保持滚动位置、禁用下拉刷新）、界面定制（主题色、点赞确认、时间格式）及链接行为调整（外部浏览器打开、自动跳转检测）。适用于注重隐私、希望提升使用效率与自定义体验的 Threads 普通用户和进阶用户。","2026-11-24 04:41:37","CREATED_QUERY"]