Userscript to hide stuff you don't want to read

Dex-chan lover
Joined
May 18, 2019
Messages
3,747
My own script I have been using for a fairly long time to hide stuff: https://github.com/MangaDexPP/userscript/
PP is plusplus, so it's MD++. Not PeePee.

Stuff it can do:
  • You mark a manga as "to read" or "to ignore", toggle a button or 2 to hide all manga that belong to either of these groups. Now the feeds only have truly new manga that you haven't seen before.
  • Hide a manga entirely from your feeds or updates if you have read all chapters. Toggleable.
  • Hide chapters from certain uploaders or groups.

Stuff that it should be able to do but it can't and won't because I'm lazy:
* Import all followed manga into the "to read" category: Just open the updates tab and spam click them.

Try to limit your MD block list to uploaders with high upload frequency/quantity like official publishers or those manhwa groups, and let this script handle infrequent uploaders/MTLs. Or at least that's how I use it.

Spend more time reading, less time browsing.
 
Dex-chan lover
Joined
May 18, 2019
Messages
3,747
Any possibility it could also hide things based on tags?
Without a lot of efforts, only on recently added or advanced search pages. Not on the feeds/follow page without sending a bunch of requests to fetch the tags.
 
Dex-chan lover
Joined
May 18, 2019
Messages
3,747
Any possibility it could also hide things based on tags?
added this feature because of the recent flood of bl stuff
unchecked entries will be rechecked when you change your blacklisted tag list, or you can force a recheck by clicking on the "clear" button
there will be race conditions and stuff because i don't know how to do threading properly in JS, but fuck it, just click on the clear button to recheck if you think it's sussy, or just manually click on the ignore button.
 
Group Leader
Joined
Jul 15, 2019
Messages
7,478
My own script I have been using for a fairly long time to hide stuff: https://github.com/MangaDexPP/userscript/
PP is plusplus, so it's MD++. Not PeePee.

Stuff it can do:
  • You mark a manga as "to read" or "to ignore", toggle a button or 2 to hide all manga that belong to either of these groups. Now the feeds only have truly new manga that you haven't seen before.
  • Hide a manga entirely from your feeds or updates if you have read all chapters. Toggleable.
  • Hide chapters from certain uploaders or groups.

Stuff that it should be able to do but it can't and won't because I'm lazy:
* Import all followed manga into the "to read" category: Just open the updates tab and spam click them.

Try to limit your MD block list to uploaders with high upload frequency/quantity like official publishers or those manhwa groups, and let this script handle infrequent uploaders/MTLs. Or at least that's how I use it.

Spend more time reading, less time browsing.
shit you mkae this stuff? such a huge peepee do you agree @bigtiddyoneesan
 
Dex-chan lover
Joined
Mar 15, 2019
Messages
3,076
@EOTFOFYL for you... yeah... just keep doing your thing sir.
Don't hold yourself back,
Embrace the horny content
With full confidence.
honkai-honkai-star-rail.gif
 
Dex-chan lover
Joined
Sep 20, 2018
Messages
719
How do you use the script? The toxic amount of loli is bone chilling, and I want to keep some faith in humanity while browsing the latest upload section
 
Member
Joined
Apr 19, 2018
Messages
316
Can you please make it a file that is exportable and a selection if I want to use an external file(to read/write) or firefox internal storage? At this point its really easy for settings to reset if you just change profiles and then change back or of firefox exits weirdly.
 
Dex-chan lover
Joined
Apr 26, 2023
Messages
179
Added a userscript, got the buttons and stuff, but the "auto ignore tag" option just doesn't work. Though apparently it has bl shit added to the ignored tag list by default, it displays this stuff in latest/advanced, etc., so you have to click "ignore" individually, which doesn't make much sense, sadly.
---
By the way, if some of you use uBlock Origin, you can add this line to Custom Filters and it will hide all the BL shit list items (cards) from the lists where it displays tags:
mangadex.org##div.manga-card:has(.self-start.tags.tags-row.gap-1.flex-wrap.flex a.bg-accent.tag:has-text(Boys)):style(display: none !important)
Just Boys because I was unable to find a way to escape the single quote character and it works like this just fine. You can block other tags this way, just replace the Boys part.
This way you don't have to:
1) Install Tampermonkey or its alternatives.
2) Enable developer mode for extensions
3) Run custom scripts
...if you just want to hide results with certain tags and don't need other functionality. Sadly, it won't hide them from the "Latest updates" screen, as it doesn't display tags there for some stupid reason, but it will work for the "Advanced search" and the "Recently added" ones. You can also try and add similar ones for other elements which contain tags if you are a bit familiar with HTML/CSS.
For example, you can use
mangadex.org##div.gap-4.flex.z-20.relative.h-full:has(span.bg-accent.tag:has-text(Boys)):style(display: none !important)
to hide stuff from the carousel from the header of the main page. It will display empty items, so you'll have to scroll/navigate further on to skip them, but at least you won't see the shit, so it won't bother you.
---
Also, it would be nice if the script actually saved the state of toggles like the "Hide All Read?" one to localStorage as well. Other than that, thanks to the author, you did an amazing job!
 
Last edited:
Dex-chan lover
Joined
Apr 26, 2023
Messages
179
So I've checked the code of the script, rechecked its behaviour in a browser and it actually works for automatically blocking titles with certain tags. But it works in a very specific way.

You need to navigate to the "Latest Updates" screen and visit each page, one by one, so that the script receives the IDs of the titles from the page you visited and puts them into the queue, and then starts checking them.

And it needs some time to take effect though, as it checks titles one by one, by fetching the details for each title from Mangadex individually, one item per second, and blocks them if they contain a blacklisted tag. As you may guess, doing it this way is not very efficient and you will face the stuff you don't like for the first time, like it or not.

It will store the list of checked items in your browser data (pairs of title ID and a numeric value), so as long as you don't clear it, you won't need to recheck the values, but the only titles that will get blocked are the ones you'll actually see while paginating through the "Latest Updates". The script could be modified to actually go through the whole database page by page to automatize the process, but I guess it is probably better to leave it the way it is now.

So I'll leave this script to take care of the "Latest Updates" page. I've modified the script to check for other tags and also for publication demographic. Meanwhile, I'll continue using filters for the uBlock Origin I've made to automatically hide this stuff from other lists, whenever it occurs there.

By the way, you can also use the uBlock Origin custom filters to block titles which have certain tags/keywords in their descriptions (for "Recently Added" and "Advanced Search" pages).
You can also style title cards (by adding custom background colors, for example) for certain tags you are interested in. Or add a scrollbar for cards which have long descriptions, etc. Basically, any manipulations, which can be done using some basic CSS.
 
Last edited:

Users who are viewing this thread

Top