Title of Manga dissapears?
![]() ![]() |
As you are erasing the title the URLs of the page are shown as the title in Firefox:
It would be nice if you added a title to the page, so it looked like this:
Just do it on load and on chapter-change. :) document.title = manga + ' ' + chapter + ' | One Manga' // or something |
![]() ![]() |
Lol…
document.title = manga.replace('/', '') + ' ' + chapter.replace(/([0-9]+).*/gi, '$1') + ' | OneManga';
|
![]() ![]() |
Yeah, but this looks bad when something other than Naruto is loaded. For example, it would become One_Piece/ 1 | One Manga |
![]() ![]() |
I really hope something comes of this and it ends up in the main script. I was hoping this would be added because of my “circumstances.” I use this script, in combination with scrapbook because I do not have broadband internet at home, and I often save many chapters of comics for later reading.
|
![]() ![]() |
I'm really a novice at JavaScript, but I've created a way to remove both the first / and the underscore in some titles. However, I can't figure out how to get rid of the final slash. And if it was a manga such as Bloody Monday Season 2, it would come up as Bloody Monday_Season_2/. At the moment, my title appears like so: One Piece/ 1 | One Manga I did this by using Josso's script, but I added in a number on top of manga. (Still placed at the same spot) Example:
manga1 = manga.replace('_', ' ');
document.title = manga1.replace('/', '') + ' ' + chapter.replace(/([0-9]+).*/gi, '$1') + ' | OneManga';
|
![]() ![]() |
An updated code that'll show "Bloody Monday Season 2 1 | One Manga".
document.title = manga.replace(/\//g, '').replace(/_/g,' ') + ' ' + chapter.replace(/([0-9]+).*/gi, '$1') + ' | OneManga'; |



