Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function beginCheck(th, cx) {
- var ck = {}, bd = th.board;
- // cx.setCheckRawText(false); //テキスト置換関数checkRawTextを実行しない。
- cx.setCheckAA(false); //AA判定関数checkAAを実行しない。
- cx.setCheckNG(false); //非表示判定関数checkNGを実行しない。
- ck.forceNanashi = (/streaming|poverty/.test(bd.key)) ? bd.key : null;
- return (Object.keys(ck)==0) ? false : ck;
- };
- function checkRawText(res, cx) {
- var num = res.number;
- var name = res.name;
- var mail = res.mail;
- var msg = res.message;
- var ck = cx.checkObject;
- if (ck.forceNanashi!==null && ck.forceNanashi!==undefined) {
- if (forceNanashi(ck.forceNanashi, name)) res.setNanasi(true);
- };
- };
- function checkAA(res, cx) {};
- function checkNG(res, cx) {};
- function endCheck(th, cx) {};
- function forceNanashi(board, name) {
- var defaltNanashi = {
- "streaming":"名無しさん@お腹いっぱい。"
- ,"poverty":"番組の途中ですがアフィサイトへの転載は禁止です"
- };
- var addition = /^ <\/b>\(([ヲ-゚]+|JP|HappyBirthday!)[A-Z]? [-\w\/=+]+\)<b>( <small>.+?<\/small>)?$/;
- return addition.test(name.replace(defaltNanashi[board], ""));
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement