Show only English

Joined
Nov 16, 2019
Messages
3
Edit: Settings > Filter Chapter Languages does this.

I wrote a nifty little Javascript function to hide all chapters that are not English. It's incredibly helpful for me, so I thought I'd share it. I have it saved as a bookmark, so all I have to do is click on it to filter the chapters. There are two options to save the code as a bookmark (yes, the % needs to be there):
1) highlight the code below and drag it to your bookmarks bar.
2) create a new bookmark, and copy the code in as the URL.
(note: only tested on Chrome)
NOTE: You should never trust code that someone puts online. Always double check it. I've explained how each part works below.

Copy this:
Code:
javascript:(function()%7B%24(%22.chapter-list-flag%20span%5Btitle!%3D'English'%5D%22).each(function(a%2Cb)%7Bb.closest('.chapter-container%3E.row.no-gutters').hidden%3Dtrue%7D)%7D)()

(This is the actual code, url decoded--no %##)
Code:
javascript: (function () {  // Creates a Javascript wrapper around a function, so that the function executes when clicked.
 $(".chapter-list-flag span[title!='English']") // Gets a list of all html elements that are NOT English and...
		.each(function (a, b) { // for each of those elements...
			b.closest('.chapter-container>.row.no-gutters').hidden = true // hides the element.
		})
})()
 
Dex-chan lover
Joined
May 28, 2018
Messages
935
I don't mean to burst your bubble, but there is already a setting for this on Mangadex!
 
Member
Joined
Apr 2, 2018
Messages
159
i did the same thing on my uni website, until i found out about the setting hidden within 5 clicks of the landing page. i mean there's something to be said about the UX/UI lack of intuitiveness i guess. though mangadex did a pretty good job imo, or just that i have used to md idk
 

Users who are viewing this thread

Top