jd_force_submit

try to open tab

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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           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);

}