diff options
Diffstat (limited to 'res/script/qz.js')
-rw-r--r-- | res/script/qz.js | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/res/script/qz.js b/res/script/qz.js new file mode 100644 index 0000000..9a98bab --- /dev/null +++ b/res/script/qz.js @@ -0,0 +1,36 @@ +fqterm.importFile("libpost.js"); +fqterm.importFile("testz.js"); + +qz=function(){ + articleID = lastPost(); + ++articleID; + var IDStr=isz(articleID); + if (IDStr==-1){ + var cont = true; + try + { + if (fqterm.yesnoBox("似乎不是整哦,继续抢吗?")==false){ + cont = false; + } + } + catch(err) + { + } + if (cont){ + IDStr = articleID; + }else{ + return; + } + } + postEmpty(IDStr); + if (isBoard()){ + fqterm.sendString("j=_"); //focus to the new post + sleep(500); + myFile=copyline(); + fqterm.sendString("E"); //Edit the post + pastefile(myFile); + } +} + +qz(); + |