Greasy Fork is available in English.

[email protected]

place a bookmark automatically when you open a chapter

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey to install this script.

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        [email protected]
// @namespace   zhang
// @description place a bookmark automatically when you open a chapter
// @include     http://www.du00.com/read/*/*/*.html
// @grant       GM_log
// @version     1
// ==/UserScript==


var ajax_prefix = 'javascript:Ajax.Request(';

var linkright = document.getElementById('linkright');
if (linkright) {
    var links = linkright.getElementsByTagName('a');
    for (var i = 0; i < links.length; i++) {
        var link = links[i];
        if (link.text == '加入书签') {
            if (link.href.substring(0, ajax_prefix.length) == ajax_prefix) {
                var quote = link.href.charAt(ajax_prefix.length);
                if (quote == "'" || quote == '"') {
                    var start = ajax_prefix.length + 1;
                    var end = link.href.indexOf(quote, start);
                    if (end > start) {
                        var url = link.href.substring(start, end);
                        //GM_log(url);
                        unsafeWindow.Ajax.Request(url);
                    }
                }
            }
        }
    }
}