One Manga Full Chapter Loader

By sillymokona Last update Jul 2, 2010 — Installed 49,669 times.

Title of Manga dissapears?

in
Subscribe to Title of Manga dissapears? 6 posts, 3 voices



Josso Scriptwright
FirefoxMacintosh

As you are erasing the title the URLs of the page are shown as the title in Firefox:
http://cl.ly/1AuP

It would be nice if you added a title to the page, so it looked like this:
[Manga] [Chapter] | One Manga
For example:
Naruto 1 | One Manga

Just do it on load and on chapter-change. :)

document.title = manga + ' ' + chapter + ' | One Manga' // or something

 
Josso Scriptwright
FirefoxMacintosh

Lol…
My guess was without looking at the source code.
But after having looked, I can see that the following has to be added in the end of the "loadChapter()"-function:

document.title = manga.replace('/', '') + ' ' + chapter.replace(/([0-9]+).*/gi, '$1') + ' | OneManga';

 
ShadowExile User
FirefoxWindows

Yeah, but this looks bad when something other than Naruto is loaded.

For example, it would become One_Piece/ 1 | One Manga

 
RisingStart User
FirefoxWindows

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.
http://pikchur.com/sKm
I’m glad to see others are interested in this for different reasons. I hope to see this end up in the main script, or for full patching instructions to be posted.

 
ShadowExile User
FirefoxWindows

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';

 
Josso Scriptwright
ChromeMacintosh

An updated code that'll show "Bloody Monday Season 2 1 | One Manga".
Maybe it should say " 'Bloody Monday Season 2' 1 | One Manga" or maybe it should be c1 instead of just 1. (Chapter)

document.title = manga.replace(/\//g, '').replace(/_/g,' ') + ' ' + chapter.replace(/([0-9]+).*/gi, '$1') + ' | OneManga';

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel