jd_force_submit

try to open tab

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name           jd_force_submit
// @description    try to open tab 
// @include        http://trade.jd.com/shopping/order/getOrderInfo.action?rid=*
// @author         nemoDebug
// @grant          GM_getValue
// @grant          GM_setValue
// @grant          GM_deleteValue
// @grant          GM_xmlhttpRequest
// @version        2015.7.21.23
// @namespace      https://greasyfork.org/scripts/153
// ==/UserScript==


if(document.getElementById("order-submit")==null)
{
    console.log("-----------no submit-----------");

    setTimeout('location.href="http://"+location.hostname+location.pathname+location.search',100)
}
else
{

    setTimeout('var result=document.getElementById("shopping-lists").innerText.indexOf("有货");if(result>0){console.log("----goods--have-submit--");javascript:submit_Order();}else{ console.log("--reloading--");location.href="http://"+location.hostname+location.pathname+location.search;}',3000);
    
    setTimeout('location.href="http://"+location.hostname+location.pathname+location.search',7000);

}