上货软件增加脚本

//保护套质地:
document.querySelectorAll('#struct-bindProp .sell-catProp-struct input')[0]

//款式
document.querySelectorAll('#struct-bindProp .sell-catProp-struct i')[1].click()

document.querySelectorAll('.sell-o-select-options .options-content .options-item').forEach((item)=>{
if(item.innerText=='支架式')
{
item.click();
}
})


//适用手机机型
document.querySelectorAll('#struct-bindProp .sell-catProp-struct input')[2]


//型号
document.querySelectorAll('#struct-bindProp .sell-catProp-struct input')[3]


//商品属性 功能
document.querySelectorAll('#base-card i')[0].click()

document.querySelectorAll('.sell-o-select-options .options-content .options-item').forEach((item)=>{
if(item.innerText=='防水')
{
item.click();
}
})

//所在地
(
   async function(){
      const  delay=(ms)=> {
            return new Promise((res, rej) => {
                setTimeout(() => {
                    res(true);
                }, ms);
            });
        }
        //所在地 广东
        document.querySelectorAll('#deliver-card .area i')[0].click()
        await delay(1000)
        document.querySelectorAll('.next-overlay-wrapper .options-content .options-item')[5].click()
        await delay(1000)
        //深圳
        document.querySelectorAll('#deliver-card .area i')[1].click()
        await delay(1000)
        document.querySelectorAll('.next-overlay-wrapper .options-content .options-item')[2].click()
    }
)()


//透明素材图
var ele=document.querySelector('#struct-whiteBgImage')
document.documentElement.scrollTop=ele.getBoundingClientRect().top+document.documentElement.scrollTop-400

//添加上传图片
document.querySelector('#struct-whiteBgImage .tmall-o-image-add')

  

//所在地(   async function(){      const  delay=(ms)=> {            return new Promise((res, rej) => {                setTimeout(() => {                    res(true);                }, ms);            });        }        //所在地 广东        document.querySelectorAll('#deliver-card .area i')[0].click()        await delay(1000)        document.querySelectorAll('.next-overlay-wrapper .options-content .options-item')[5].click()        await delay(1000)        //深圳        document.querySelectorAll('#deliver-card .area i')[1].click()        await delay(1000)        document.querySelectorAll('.next-overlay-wrapper .options-content .options-item')[2].click()    })()

//透明素材图var ele=document.querySelector('#struct-whiteBgImage')document.documentElement.scrollTop=ele.getBoundingClientRect().top+document.documentElement.scrollTop-400
//添加上传图片document.querySelector('#struct-whiteBgImage .tmall-o-image-add')

人生旅途,边走边看...
原文地址:https://www.cnblogs.com/dming4/p/15269049.html