My first Greasemonkey script


Finally, I wrote a Greasemonkey script. The script is target on a Chinese comic website. You can download the script here. I wrote the script because the links are not named in sequence. To offline read the comic, I would like to download the comic first. Then I can read the comic offline. After that, I can delete the comic.

But the name are not in sequence, I cannot download the comic using batch downloading. Thus, writing this script to produce the link, then from the link, I can download the comic with any download manager.

Before writing this script, actually I plan to wrote a comic download manager, target on any website. But suddenly I wonder why don’t I use javascript to generate the link.

Tieba Comic Download


I have written a commandline using python, which can download the comic in “tieba.baidu.com”.

Because I can find the updated comic in “tieba”. But I prefer to use my own comic viewer to read the comic images. However, the image files in “tieba” are not named in sequence. So, if I want to save the images, I need to download the image 1 by 1 and rename them 1 by 1 in sequence. That is a repetitive and boring task.

So, the commandline I wrote, will download all the images in a tieba link, and rename all the images in sequence.

If you are interested, you can try it here.

One Piece 海賊王


“海賊王”,我非常喜愛的一部漫畫。一部少年漫畫。除了精彩的故事及突出的角色性格,它還反映了社會的問題。

所謂的“海軍”,掛著“正義”的招牌,但故事裡,“斧手 蒙卡”、“老鼠”等等,就是海軍裡的敗類。並有人相信,“海軍”=“正義”。所以,就有人仗著“正義”的招牌,剝削民脂民膏。但,故事裡,也不是所有的“海軍”都是惡勢力。比如“斯摩格”,就是真正站在“正義”一邊的“海軍”。

“七武海”,海軍承認的海賊。既然海賊都可以被海軍承認。這就好像,警方不抓某些大賊一樣,因為那些賊很有實力。

“海賊”,就是海賊,也沒什麽好說的。反正就是一些壞蛋。雖然故事裡,主角一行人等和他的朋友,比如“紅髮”,都不算壞蛋,但整個故事裡,多數的海賊都是壞蛋來的。

“100年空白歷史”,這是故事裡神秘的一點。因為,歷史都可以修改。真是神奇。如果歷史被修改了,那後人只是在一個欺詐的世代,扭曲真理的世代。這就是為何“歷史”是非常重要的。因為它記載的,應該是真實的事情,并能讓後人知道過去的因果。因為每一個今天,都有一個昨天。如果你昨天做錯了事,這就是事實,因為它已經發生了。你不能說,你沒做錯,因為事實就是事實,不應該被否認。

“世界政府”,就因為有人要探知歷史的事實,所謂的世界政府,就可以把一座島毀滅,屠殺整座島的人民。那其實只是害怕自己的地位被動搖,所以要將一切障礙消除。人往往都是如此,當自己高高在上,有權有勢時,就會害怕掉下來,因此就做出許多扭曲真理的事情,爲了鞏固自己的勢力。

“天龍人”,故事裡是世界的貴族,說是開拓世界者的後裔。就因為是後裔,所以擁有貴族的身份和崇高的權利。誰要是動了他們,就會株連九族。但,讀者一定認為“天龍人”根本就是垃圾,仗勢欺人,欺人太甚。什麽海賊,多少億貝里,都不敢動他們。但故事裡的草帽,一拳把一個天龍人打到黏在地板,真是大快人心。

“魚人族”,故事裡的種族問題,因為魚人族受到世界的歧視。不要說魚人,人往往會歧視其他種族,這是一個非常不好的態度。因為很多人沒有共識,這是因為自私和驕傲的心理。

“草帽海賊團”。理想的團體。不要說他們的職業是海賊,只說他們的友誼和團體精神。草帽海賊團裡,朋友也是會吵架的,但他們還是會互相幫忙。團長是白癡,但團長不是個自私自利的白癡,所以才會備受其他團員的愛戴。團員既然跟隨了一個團長,就絕對服從,這是個很好的服從精神。每個人都有每個人的才能,各各都發揮了自己的能力。就算沒有才能,還是會努力幫助整個團體,比如“烏索普”,他是到後期才表現出狙擊手的才能。就如團長所說的,團員一個都不可以少,因為少了任何一個,他就不能繼續航海了。雖然各有各的理想,但還是會互相幫忙,這就是所謂的共識,因為他們知道,只要少了一個團員,他們就不能達到自己的理想。

真是一部很好的漫畫。主要不是反映社會,而是故事精彩。因為故事發展,總是意想不到。

Online comic tips


When you read online comic (or online manga), do you find that it is slow to load image when you click the next page? And do you feel incovenient to use your web browser to read comic, because image is small, and cannot scroll the page easily?

Why don’t you download the images and view with your “comic reader”?

To download the images, there are 2 problems.

First problem, which is solvable:
The webpage disallow you to right-click. Disable the right-click disallow you to see the image property, so that you cannot get the filename and the URL address. Filename and URL address are important for this tips. Therefore, your goal is to get the filename and URL address.

To get it, you can use Maxthon 2, which enable you to “copy image url” when you “mouse over” the image. It is very convenient. I don’t know whether IE7 support this or not.

Or you can use Firefox. There are many ways to get the filename and URL using Firefox. I just suggest several ways. Install Image Toolbar plugin, which will provide similar function as Maxthon. Or install Greasemonkey, and then install Anti-Disabler script, so that you can right-click to get the image property.

There are many other ways. You can use alternative web-browser such as Advant Browser. Or install Trixie for your IE so that can install Anti-Disabler script. Or using Firefox and try to read the page source and find the filename and URL address.

Second problem, also the second step:
After you get the filename, you need to check whether the filenames are in sequence or not. If the filename is not sequence, then I think you need to search an alternative online comic website that has the comic you want.

After you found the filename is in sequence, use the downloader that has “batch download” function. I suggest Free Download Manager. Because it provides best batch download I need. Using batch download, you can download the whole sequence of the image. Then, you can read the comic using ComicsViewer which I suggested.

About the sequence, there are 4 things that you need to notice: Start, end, step and wildcard. Start is the first filename. End is the last filename. Step is the next step of the filename, such as increment by 1. Wildcard is the “digit” of the filename.

The example of sequence:

  • 1.jpg, 2.jpg, 3.jpg, …, 10.jpg – The step will be “1”. Wildcard will be “1”, because it starts from “1” digit.
  • pic001.jpg, pic002.jpg, pic003.jpg, …, pic123.jpg – The step will be 1. Wildcard will be 3, because it start from 3 digits.
  • 000001.jpg, 001002.jpg, 002003.jpg, … – The step will be “1001”, just subtract the filename, you will get this. Wildcard will be 6.

There might be some files not in sequence, which you need to download manually. Please figure out how to do this using Free Download Manager by yourself.

Note: It is quite time consuming to describe step by step. But really hope that this really help.

Comic reviews: Funny comics I had read


There are 2 comics (or manga) that I would like to introduce. They are too funny, that I read and laugh non-stop.

The following order is my ranking from top to down:

  1. High School Girls 女子高生 – Very funny. I think it is shojo manga (girl’s comic). I think it is more suitable for adults. The story talks about high school girls, who study in girls’ high, and how desperate they are. And, if you are a male, you will found that, those girls are really unexpectable when there is no male…
  2. Yakitate! Japan 日式麵包王 – This manga is already completed. I like the main character. A combination of idiot and genius. The supporting character is really funny. The theory inside the story is very logic, but the story is too illogic, especially almost at the end of the comic. The story talks about “roti” (bread).

You can click and read online. It is chinese translation.

Reading comic (or manga)


I like to read comics (or manga), especially japanese comics chinese translation, such as One Piece, Bleach, Naruto, Ah! My Goddess, and other else.

What software are you using to read those comics? I suggest this one: ComicsViewer. I think it is the best one to read comics. However, one might feel hard to control the program, like the first time I used the program.

To read turn the page from page, you can just use both “” keys. If you like, you can just customise the keys.

To scroll the page, you just use the arrow keys. However, the scroll speed may be slow. So, go to “Options>Page Show”, then you can change the scroll speed.

If the quality of the comic image files is not good, you can press “p” and adjust the image quality until you see it is fit.

It can view the image files in .zip and .rar directly.