!function(win, doc, $){
    $(doc).ready(function() {

        chrome.runtime.sendMessage({method: "getLocalStorage", key: "xiami_status"}, function(res) {
            var status = res.data;
            var today = (new Date()).toDateString();
            if (! (status && today === status)) {
                // check if logined
                if (doc.cookie.match(/user=\d+/)) {
                    $.ajax({
                        type     : "POST",
                        url      : 'http://www.xiami.com/task/signin',
                        dataType : 'html',
                        success  : function(data) {
                            if (parseInt(data) === 1 || parseInt(data) === 2) {
                                chrome.runtime.sendMessage({
                                    method: "setLocalStorage", key: "xiami_status", val: today
                                }, function(res) {});
                            }
                        }
                    });
                }
            } else {
                console.log('[qiandao][xiami] already signIn today.');
            }
        });
    });
}(window, document, Zepto);
@@ -664,40 +664,224 @@
 ta) 
-=== 1 %7C%7C parseInt(data) === 2) %7B
+%3E 0) %7B%0A                                chrome.runtime.sendMessage(%7B%0A                                    method: %22setLocalStorage%22, key: %22xiami_status%22, val: today%0A                                %7D, function(res) %7B%7D);
 %0A   
@@ -1005,37 +1005,37 @@
 e%22, key: %22xiami_
-statu
+point
 s%22, val: today%0A 
@@ -1019,37 +1019,46 @@
 i_points%22, val: 
-today
+parseInt(data)
 %0A               

fix as > 1 for days