- 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:
(This is the actual code, url decoded--no %##)
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.
})
})()