42 ms·
20 SERPs complete. Let's make it 21. To add a new SERP-type, we add a few bits to the top 1/3 of 084.l. Two new states and a case: line in the switch stateme
by 1vuio0pswjnm7 3y ago
20 SERPs complete. Let's make it 21.
To add a new SERP-type, we add a few bits to the top 1/3 of 084.l.
Two new states and a case: line in the switch statement.
%s QWANT_DESC GITHUB_DESC GOOGLE_DESC MWMBL_DESC
%s MODE24
case 24: jmp MODE24;break;
Then insert as usual into the 2nd 1/3
/*`````````mwmbl`````````*/
<MODE24>"<div class=\"result-link\">"\n[ ]{6}"<a href=\""[^\"]+ {
CDp8iULPuCinsert(24);
for(x=41;x<yyleng;x++)putc(yytext[x],yyout);
fwrite("','",1,3,yyout);
}
<MODE24>"<p class='title'>" jmp MWMBL_DESC;
<MWMBL_DESC>"</p>" fwrite("');\n",1,4,yyout);jmp MODE24;
<MWMBL_DESC>"<strong>"|"</strong>"
<MWMBL_DESC>. putc(yytext[0],yyout);
To test:
$!/bin/sh
read x;
echo TWVGHkppk6Q6cODqP7Kqquery:\""$x"\"
echo TWVGHkppk6Q6cODqP7Kqdate:\"$(epoch)\"
echo TWVGHkppk6Q6cODqP7Kqmode:\"24\"
x=$(echo "$x"|sed 's/ /+/g;s/++/+/g')
curl -si04A "" "https://mwmbl.org/app/home/?q=$x"
echo this is a test.|024.sh > 1.htm
yy084 < 1.htm|sqlite3 test.db