Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix twitter x rename #282

Merged
merged 1 commit into from
May 16, 2024
Merged

Fix twitter x rename #282

merged 1 commit into from
May 16, 2024

Conversation

kheina
Copy link
Collaborator

@kheina kheina commented May 15, 2024

we should also take a serious look at these codeblocks, of which there are two in shared.ts

if (root.includes('tweetdeck')) {
url = 'https://api.twitter.com/1.1/';
} else {
url = `${root}/i/api/1.1/`;
}

if (root.includes('tweetdeck')) {
url = 'https://api.twitter.com/1.1/';
} else {
url = `${root}/i/api/1.1/`;
}

anything that references their domain name may have been updated including their api endpoints

Closes #280

@kheina kheina changed the base branch from main to 0.4.2 May 15, 2024 22:14
@kheina kheina added this to the 0.4.2 milestone May 15, 2024
Copy link
Collaborator

@cooljeanius cooljeanius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cooljeanius
Copy link
Collaborator

@rougetimelord compare against #281

@rougetimelord
Copy link
Collaborator

Whoops totally missed those regexes in shared.ts!

Still waiting to see if the API endpoints have changed over to the x.com domain from the reporter of #280, probably not a bad idea to just go ahead and add x.com to the regex for API endpoints but I kind of doubt that even Elon would break so many API wrappers like that.

@rougetimelord rougetimelord added the bug Something isn't working label May 16, 2024
@cooljeanius cooljeanius merged commit 2b20f35 into 0.4.2 May 16, 2024
4 checks passed
@rougetimelord rougetimelord mentioned this pull request May 17, 2024
6 tasks
kheina added a commit that referenced this pull request May 22, 2024
* Bump version string

Need some diff to start an LLB PR

* [fix] change condition for checking legacy if user used blue

I did an oopsie whoopsie and flipped the logic in my brain!!

* [doc] add all properties to the BlueBlockUser interface

With the new integrations system I want to document everything that gets sent over so other extension devs can implement their own checks that use data that we don't.

* [fix] refix skipping TweetTombstones

Idk what happened here? Did I write code past my bed time? Maybe, no one can ever truly know

* [fix] remove reference to chrome.runtime.restartAfterDelay

* [chore] run prettier on src/background/index.ts

* [feat] add endpoint for external extensions to automatically register as an integration

External extensions can now send a request to Blue Blocker to be registered as a new integration. New integrations registered in this way are set to the disabled state by default, and the user of Blue Block still has to manually set the permissions of the new integration in order for the integration functionality to be enabled. This feature just makes it so that extension users do not have to find the extension ID of an external extension to register an integration.

* Add the ability to block users based on their offensive usernames

explain 'i'

Reapply "case insensitive"

This reverts commit ae0aa51.

Revert "case insensitive"

This reverts commit 2272caa.

case insensitive

Update index.ts

Update index.html

Update shared.ts

Stylizing changes, refactor element name, add status element

[Fix[ Unclosed textarea tag that caused safelist and integrations buttons to not render

Add a warning to the option explanation

Change to a better console log string

Use input number rules for textarea

Should make the textarea look more cohesive with the rest of the UI

[Fix] Typo

Refactor disallowed words update func, remove uneeded error logging, strip whitespace before storing

Update shared.ts

remove unused function

* switch firefox workflow to new action

* quote zip url and source filename

* simple check

* Fixes severe false positives

* Add space/end lookahead to the end of generated regex

The array.join method does not add the separator to the end of the last array entry, but we need the lookahead on each entry to make sure we don't match on fragments inside of a word

* adds the option to skip blue checkmark users

* [fix] add registerAction definition

Co-authored-by: dani <[email protected]>

* [fix] use registerAction instead of bare string

Co-authored-by: dani <[email protected]>

* [fix] Simplify regex for disallowed words

Thx Dani for saving me from being lost in the sauce <3

* Fix twitter x rename (#282)

Closes #280
Co-authored-by: dani <[email protected]>

* [fix] don't spread browser.runtime

* [fix] replace consecutive spaces with a single space, not delete them

* [fix] simplify skipBlueCheckmark check

* [fix] trim whitespace first

Co-authored-by: dani <[email protected]>

* [fix] use new api url for tweetdeck requests

* [fix] use chrome.runtime type definition

annoying annoying annoying :(

* [fix] escape regex characters

* [fix] move RegExp escaping to utilities, don't escape the word list that sits at rest

this will all make sense in a bit lol

* [fix] precompile disallowed word regex, treat emojis differently, store both list and regexp

* [fix] i forgor how escapes in strings work 💀

* compile config

* [fix] Use better emoji regex

* [fix] remove .list from config key selection

lol oops

* [fix] use null to signal an empty word list

* [chore] run prettier

* cleanup block for use and verified logic a lot, add feature use reason

* added other reason codes

* cleanup popup immensely

* add some more logging and some fixes to the page functions

* move ts-ignore

* add block disallowed words option

* prettier hell

* move use blue features block outside verified block so it still catches people when skip blue is enabled

* move block for use outside verified func

* more accurate wording

---------

Co-authored-by: MaxIsJoe <[email protected]>
Co-authored-by: dani <[email protected]>
Co-authored-by: Eric Gallager <[email protected]>
@rougetimelord rougetimelord deleted the fix-twitter-x-rename branch October 22, 2024 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants