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

Blacklist: Implement blacklist to native filtering export (and fix) #2104

Merged
merged 19 commits into from
Dec 11, 2024

Conversation

marcustyphoon
Copy link

@marcustyphoon marcustyphoon commented Nov 24, 2022

This implements an interactive UI for exporting the user's blacklisted words into Tumblr's native tag filtering and post content filtering lists. The user is given the opportunity to customize their terms, hopefully helping them account for the functional differences between the Tumblr filtering and Blacklist's filtering, like the lack of asterisk wildcards.

I ported the dom and apiFetch helper functions from XKit Rewritten for ease of development. (Of course they don't belong inline like this, given the premise that this is an actively developed project and all.)

Also, this fixes that destroy() had a random 0.5 second delay, which would make it run after it restarted whenever you changed a setting, which would unhide every correctly hidden post on the screen, which... is... interesting.

Copy link
Member

@nightpool nightpool left a comment

Choose a reason for hiding this comment

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

This is a great feature, I'm sure it'll help out a lot of people migrating back onto Tumblr again. Left some comments below, LMK what you think:

Extensions/blacklist.js Outdated Show resolved Hide resolved
Extensions/blacklist.js Outdated Show resolved Hide resolved
Extensions/blacklist.js Outdated Show resolved Hide resolved
Extensions/blacklist.js Outdated Show resolved Hide resolved
Extensions/blacklist.js Outdated Show resolved Hide resolved
Extensions/blacklist.js Show resolved Hide resolved
Extensions/blacklist.js Outdated Show resolved Hide resolved
Extensions/blacklist.js Outdated Show resolved Hide resolved
Extensions/blacklist.js Outdated Show resolved Hide resolved
Extensions/blacklist.js Outdated Show resolved Hide resolved
Copy link

@hobinjk hobinjk left a comment

Choose a reason for hiding this comment

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

Looks like all the requested changes were made and it passed a couple of manual tests on my end

@hobinjk hobinjk dismissed nightpool’s stale review December 11, 2024 20:12

Comments were addressed, also two years have passed and this is urgent-ish now

@marcustyphoon
Copy link
Author

Looking at it now, I actually propose removing the bit Nightpool highlighted, as it'll probably cause confusion with XKit Rewritten's identical feature particularly when New XKit is removed. Agree/disagree?

@hobinjk
Copy link

hobinjk commented Dec 11, 2024

That's a fair point, cosigned

Copy link

@hobinjk hobinjk left a comment

Choose a reason for hiding this comment

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

Dramatic and unprecedented change! This review required some extreme contemplation

@marcustyphoon marcustyphoon merged commit e4c11da into new-xkit:master Dec 11, 2024
1 check passed
@marcustyphoon marcustyphoon deleted the blacklist-export-native branch December 11, 2024 20:22
marcustyphoon added a commit to marcustyphoon/XKit that referenced this pull request Dec 11, 2024
marcustyphoon added a commit that referenced this pull request Dec 11, 2024
Co-authored-by: April Sylph <[email protected]>
Co-authored-by: nightpool <[email protected]>
fix) (#2104)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants