cat >> bot.js << EOF
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch({
headless: true,
args: [
'--no-sandbox',
'disable-setuid-sandbox',
]});
while(true)
{
const context = await browser.createIncognitoBrowserContext();
const page = await context.newPage();
try{
await page.goto('https://eventos-sk.wixsite.com/altaresydisfraces-sk/planta-michoacan-2?pgid=kh73visf-0527168d-6e1a-4ac4-9993-357359e2d25d');
await page.evaluate(()=>{
setTimeout(()=>{
document.querySelector('button[class*="fullscreen-social-love"]').click()
},2000);
});
}catch(e)
{
console.log(e);
}
console.log("good");
//await context.close();
}
})();
EOF
cat >> runner.sh << EOF
while true
do
killall node
node bot.js &
sleep 120
done
EOF
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}