[PR #232] [CLOSED] [MOVED] [WIP] Tor support + FixTweet support #12417

Closed
opened 2026-05-08 08:58:07 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/imputnet/cobalt/pull/232
Author: @suprstarrd
Created: 10/30/2023
Status: Closed

Base: currentHead: current


📝 Commits (4)

  • ac60f9b start work on Tor support
  • a4c8eff More work on Tor support
  • 197c1dc only hide "paste clipboard" button for Firefox Tor users
  • 56be4ec actually fix dynamic URL reference for reddit/twitter

📊 Changes

14 files changed (+196 additions, -41 deletions)

View changed files

📝 .gitignore (+5 -2)
📝 package.json (+1 -0)
📝 src/cobalt.js (+27 -3)
📝 src/core/api.js (+6 -1)
📝 src/core/web.js (+5 -0)
📝 src/front/cobalt.js (+14 -1)
📝 src/localization/languages/en.json (+5 -0)
📝 src/modules/api.js (+4 -0)
📝 src/modules/pageRender/page.js (+27 -2)
📝 src/modules/processing/hostOverrides.js (+61 -19)
📝 src/modules/processing/matchActionDecider.js (+4 -0)
📝 src/modules/processing/services/reddit.js (+18 -6)
📝 src/modules/processing/services/twitter.js (+18 -7)
📝 src/modules/setup.js (+1 -0)

📄 Description

work for #231.

this currently WIP pull request makes a few changes currently:

  • accessing cobalt from a .onion hostname in a browser detected to be Firefox will hide the "paste from clipboard" option to discourage Tor users from changing settings that may decrease their security / increase their fingerprintability
  • .onion links for Twitter/Reddit now work in the URL textbox
  • The BetterTwitFix link fixvx.com now works in the URL textbox
  • all FixTweet links now work in the URL textbox
  • the maximum length of the textbox has been increased to 256, mainly to accommodate for allowing the very long (and maybe longer in the future) .onion links
  • host overrides have been organized alphabetically
  • [actively working on Tor support, so there will probably be more changes]

this PR is best done squashed I think but I can also re-commit these and make it properly named instead of being as it is right now


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/imputnet/cobalt/pull/232 **Author:** [@suprstarrd](https://github.com/suprstarrd) **Created:** 10/30/2023 **Status:** ❌ Closed **Base:** `current` ← **Head:** `current` --- ### 📝 Commits (4) - [`ac60f9b`](https://github.com/imputnet/cobalt/commit/ac60f9beac4105f031821c05856ccd72d780f0ad) start work on Tor support - [`a4c8eff`](https://github.com/imputnet/cobalt/commit/a4c8eff71a6db9eb802e71d92c98b97f2a810073) More work on Tor support - [`197c1dc`](https://github.com/imputnet/cobalt/commit/197c1dc0e6cc9f9cfb3f65eb7dcd4a61a6ab00c3) only hide "paste clipboard" button for Firefox Tor users - [`56be4ec`](https://github.com/imputnet/cobalt/commit/56be4ece8c429a225394a9d823a6aed681bdd2ef) actually fix dynamic URL reference for reddit/twitter ### 📊 Changes **14 files changed** (+196 additions, -41 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+5 -2) 📝 `package.json` (+1 -0) 📝 `src/cobalt.js` (+27 -3) 📝 `src/core/api.js` (+6 -1) 📝 `src/core/web.js` (+5 -0) 📝 `src/front/cobalt.js` (+14 -1) 📝 `src/localization/languages/en.json` (+5 -0) 📝 `src/modules/api.js` (+4 -0) 📝 `src/modules/pageRender/page.js` (+27 -2) 📝 `src/modules/processing/hostOverrides.js` (+61 -19) 📝 `src/modules/processing/matchActionDecider.js` (+4 -0) 📝 `src/modules/processing/services/reddit.js` (+18 -6) 📝 `src/modules/processing/services/twitter.js` (+18 -7) 📝 `src/modules/setup.js` (+1 -0) </details> ### 📄 Description work for #231. this **currently WIP** pull request makes a few changes **currently**: * accessing cobalt *from a .onion hostname* in a browser detected to be Firefox will hide the "paste from clipboard" option to discourage Tor users from changing settings that may decrease their security / increase their fingerprintability * .onion links for Twitter/Reddit now work in the URL textbox * The BetterTwitFix link `fixvx.com` now works in the URL textbox * all FixTweet links now work in the URL textbox * the maximum length of the textbox has been increased to 256, mainly to accommodate for allowing the very long (and maybe longer in the future) .onion links * host overrides have been organized alphabetically * [actively working on Tor support, so there will probably be more changes] this PR is best done squashed I think but I can also re-commit these and make it properly named instead of being as it is right now --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-08 08:58:07 -05:00
Sign in to join this conversation.