Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install
One Simple Manga Ajax Viewer
This script hides everything in the page except for the picture and the bottom navigation buttons and preloads both the next and previous pictures. You can browse the images using the arrow keys, as well as the A and D keys on your keyboard.
This script hides everything in the page except for the picture and the bottom navigation buttons on a black background and preloads both the next and previous pictures. The picture change is done without reloading of the page, using a transition effect.
|
|
Boupher: I toyed with that idea for a while, tried a few things which didn't work, got lazy, left it for the future. Also, right now my priority is getting it working on FF3, which I haven't even started yet, so it might be a while till (if) I get to that. |
|
|
Very good job with the script and I like it a lot as I surf onemanga almost every day. Just a request from me.... Can you add a progressbar or something to the webpage which shows when the prefetching of the next page is done??? I hope I am not bothering you too much.... Anyway great work and thanks for this great script!!! Cheers!!! |
|
|
I should have been more optimistic. :) I rollbacked greasemonkey to 7, still have FF2, and it *WORKS* again. The only "mod" I can remember is the "make FF2 not leak as much memory" tweak in some FAQ that I forgot the details to. Might have made me play with the cache. That, and some left over veoh add-on and obligatory(?) talkback. No other GM script either. I don't mod or add-on much to FF, fell in love with Opera first and learned to live with its flaws. Except the flaw of sites not working at all with it. In that case I use FF. Don't mind me anymore, just go and "update" the script for FF3 AND GM8 and make it work for yourself, first. |
|
|
That's really odd. I'm using what I believe is the latest GM version for FF2 (0.8.20080609.0) and Firefox 2.0.0.14 and it still works just like it always did. Do you have firebug (extension) installed? If you don't, could you please install it and see if it shows any javascript errors on the bottom right corner? What about your settings? Have you changed anything like disabling the cache or anything like that? Also, have you tried it on different mangas? As I couldn't possibly test it with every manga, there may be one that has some different html or something that may cause the code that fetches the next image not to work. Do you have any other extensions installed which may be interfering? Also, are the next and previous buttons enabled or disabled (gray)? That's all I can think of right now, please let me know what happens, I'm really curious about what's going on there. And once again thanks for your support, it's really cool to know some people find it useful :) |
|
|
Okay, I uninstalled FF3, installed FF2, got the latest greasemonkey, and got your script too... It does the same thing. It's as if the script works until i want to "turn the page." The browser says loading, but the image stays the same. I will maybe try a previous version of greasemonkey to test as well, but I'm not too optimistic. I'm so jealous that this still works, except for me. :p |
|
|
I am really a big fan of this script as well, and your response here is very much appreciated. About preloading whole chapters: I am also against this, this could be very big strain on the servers. I would even get a script from you that even has the ads back! :) All I want (need) is preloading pages really, something that crunchyroll had that I missed. The way the script "works" for my Firefox 3 now is, the drop-down chapter titles and pages are back and if you did this, thanks, it adds more navigational options. But as I said, i click next or press right, but the first image is just still there. No error msgs, no "code" appears, it just feels like it is stuck. I thought onemanga "combatted" your script which would be a shame, but if it still works for you, then I guess... I should rollback to FF 2? Pls update here when it works for you with FF 3. Thanks again! |
|
|
Ryuzaki: first of all thanks for your support :D About the script, it may be advanced, but it's far from well written. In fact, when I wrote it I hadn't quite grasped the concepts of GreaseMonkey scripting, so I kinda worked around its limitations by embedding most of the javascript into the page, which, while it works just fine, has some disadvantages if the onemanga staff decided to block my script. As for installing it into a vBulletin forum, I have no idea how easy or hard it could be since I'm not really familiar with them plus I'm not even sure I get what you'd want to use it there for. But I can tell you that trying to use this script with any page other than onemanga will mean changing much of the code, if not most of it. I made it with only that site in mind, since I wanted to make something usable really quick. Making it more generic so that it could be used with minor modifications in other pages would have taken a lot more time in design and development. Also not too sure about what you mean when you ask for an installation guide. Unless you mean when putting it on a different site, in which case, there's never gonna be any for the reasons listed above. Nicolai: Do you get any javascript errors in your console? What version of firefox are you using? I haven't tested this in FF3 yet, I have no idea whether it works or not. It is still working in Firefox 2, at least I'm using it right now on my home computer without problems, and was using it yesterday at work also fine. Sorry for the delay in the response, I'll try to check here more often in case any other questions or problems arise. Also, development is pretty much stopped at this point unless I think of a new feature I'd really like to add or for bug fixes (also, if it's not compatible with Firefox 3, I'll probably try to fix that since I'm planning on upgrading soon anyway). About preloading more pages, I've decided not to do it, since it would put some extra strain on the server, and I received some negative comments regarding that in the onemanga forum. Code cleaning and making the bookmarks a little less ugly is still postponed until a possible but not too plausible future in which I'm less lazy. Finally, thanks guys for the comments and the support, and I'm glad you liked it. |
|
|
I don't think the script works for onemanga anymore, when I click next/press right, the first image remains. |
|
|
This is an extremely advanced well written script. I really like your style and usage of javascript and AJAX. However, I have a few questions, how do I go about installing this into a vBulletin Forum? Or should I make it stand-alone. And if so what aspects of the script should I edit? If it's not too much trouble, could you possibly create an installation guide for those who aren't really code savvy. And thanks for making such a cool script! |
|
|
Another update: I added the possibility to bookmark pages and be able to go to any of your bookmarks without reloading the page. I put this together today at work, I tested it and it seems to be working fine. If you have any problems let me know. The bookmarks are hidden by default, to see them, you have to press the Bookmarks button at the top left corner, and that will show the bookmarks at the bottom of the screen. As I just started doing this without any real planning, the code is pretty ugly right now, please bear with it for the time being, I'll clean it up as soon as I can. |
|
|
Alright, I updated the script with the latest changes I made to the top menu. You can now from any page pick a manga, a chapter from that manga, then a page from that chapter, and it will reload only the image to show that page. I must say it's working quite nicely here, tho I saw some problems when going back a page right after picking a page in the select, so for the time being until I see what's up with that I'd advise you to give it some time before browsing pages after choosing from the select box. As always, if you find any problems with the script, I ask you to please post it here so I can have a look. Next update will probably be to get rid of as much AJAX as I can and leave only the strictly necessary. Then I'll take a look at preloading more pages, although if I do it, it will only be a few, I don't want to stress the server unnecessarily. |
|
|
I added the top navigation menu to the script, and some logic to handle first and last manga pages. It's not done yet, since I plan to change the behaviour of the selects to avoid any page reloads. I also plan to add a manga select so that you can go to any page of any chapter of any manga at any time, without reloading the page. For now, tho, I'll just leave it as it is, where it takes you to the selected page. Since I originally took it out so I could fit more of the image on the screen, here's the code you have to change to hide it: Uncomment the line:
so that it ends up like this:
|
|
|
I put the image inside a table so that it doesn't get selected when you click to the right of the image, which was annoying the hell out of me (it still gets selected when you triple click on the right or left sides of it, but I can live with that). |
|
|
The script wasn't working on the warning page on seinen manga so I added some code to skip it altogether. |
|
|
Thanks for the comments guys, I'm glad you like it. About preloading the next chapter, it already preloads the first page of the next chapter whenever you're on the last page of one. About preloading more pages, I was thinking about doing that, but I didn't want to put unnecessary load on the server by downloading so many pictures at the same time, which maybe you're not gonna view anyway, since you're gonna stop reading at some point. You're right about the battle scenes, tho, so I'm thinking maybe preloading the next 2, or add a selector to let you decide how many pages you want to preload (like, from 1 to 5 or something). I'll get working on that as soon as I can. Thanks for the feedback :) |
|
|
And let's add the chapter number on the top of the page to keep track of chapter we have read. ^_ |
|
|
This script is amazing. I like it very much. <3> And it'll be perfect if it doesn't only preload the only the next page but several next pages (will be even better if it continue to preload until the chapter is finished) because sometimes there're pages that contain only action (no talking) and we read that fast don't we? And there're pages that contain many dialogs and we need more time to read it, and it'll be a waste if half of the time the script load the next page and then does nothing. |
|
|
Works great, it'll be even better if it preloads the the next chapter if I'm on the last page. |
|
|
It should be working fine now, tho I have only tested it in two different computers, so your mileage may vary. If you find any problem with the script, please post a comment and I'll be sure to check it out and fix it as soon as possible. |
You could comment on this script if you were logged in.
