{
 "format": 1,
 "version": 7,
 "platforms": {
  "win": {
   "linkedin": {
    "steps": [
     {
      "t": "open",
      "url": "https://www.linkedin.com/feed/",
      "ifNot": [
       "page"
      ]
     },
     {
      "t": "wait",
      "s": 5,
      "ifNot": [
       "page"
      ]
     },
     {
      "t": "open",
      "url": "__PAGE__",
      "if": [
       "page"
      ]
     },
     {
      "t": "wait",
      "s": 6,
      "if": [
       "page"
      ]
     },
     {
      "t": "click",
      "text": "Create",
      "if": [
       "page"
      ]
     },
     {
      "t": "wait",
      "s": 1,
      "if": [
       "page"
      ]
     },
     {
      "t": "click",
      "text": "Start a post"
     },
     {
      "t": "wait",
      "s": 2
     },
     {
      "t": "arm"
     },
     {
      "t": "click",
      "text": "Add media"
     },
     {
      "t": "wait",
      "s": 3
     },
     {
      "t": "upload"
     },
     {
      "t": "wait",
      "s": 9
     },
     {
      "t": "click",
      "text": "Next"
     },
     {
      "t": "wait",
      "s": 2
     },
     {
      "t": "type",
      "sel": "div.ql-editor"
     },
     {
      "t": "wait",
      "s": 1
     },
     {
      "t": "click",
      "text": "Post"
     }
    ]
   },
   "facebook": {
    "steps": [
     {
      "t": "open",
      "url": "https://www.facebook.com/",
      "ifNot": [
       "page"
      ],
      "if": [
       "account"
      ]
     },
     {
      "t": "open",
      "url": "__PAGE__",
      "if": [
       "account",
       "page"
      ]
     },
     {
      "t": "wait",
      "s": 6,
      "if": [
       "account"
      ]
     },
     {
      "t": "script",
      "js": "(function(){function deepAll(sel){var out=[];(function w(r){r.querySelectorAll(sel).forEach(function(e){out.push(e);});r.querySelectorAll('*').forEach(function(e){if(e.shadowRoot)w(e.shadowRoot);});})(document);return out;}function rc(e){['pointerdown','mousedown','pointerup','mouseup','click'].forEach(function(t){e.dispatchEvent(new MouseEvent(t,{bubbles:true,cancelable:true,view:window}));});}var A=['Your profile','Account controls and settings','Account','Votre profil','Contrôles et paramètres du compte','Compte']; var b=deepAll('[role=button][aria-label]').filter(function(x){return A.indexOf(x.getAttribute('aria-label'))>=0;})[0]; if(!b) return 'NOTFOUND'; rc(b); return 'OK';})()",
      "optional": true,
      "if": [
       "account"
      ]
     },
     {
      "t": "wait",
      "s": 2,
      "if": [
       "account"
      ]
     },
     {
      "t": "script",
      "js": "(function(){function deepAll(sel){var out=[];(function w(r){r.querySelectorAll(sel).forEach(function(e){out.push(e);});r.querySelectorAll('*').forEach(function(e){if(e.shadowRoot)w(e.shadowRoot);});})(document);return out;}function rc(e){['pointerdown','mousedown','pointerup','mouseup','click'].forEach(function(t){e.dispatchEvent(new MouseEvent(t,{bubbles:true,cancelable:true,view:window}));});}var n='__ACCOUNT__'; var els=deepAll('[role=button],[role=menuitem],[role=radio],a,div,span').filter(function(x){return (x.innerText||'').trim()===n;}); var inner=els.filter(function(x){return !Array.from(x.children).some(function(c){return els.indexOf(c)>=0;});}); var e=inner.filter(function(x){var r=x.getBoundingClientRect(); return r.width>0&&r.height>0&&r.top<400&&r.left>window.innerWidth*0.5;})[0]; if(!e) return 'NOTFOUND'; var t=e.closest('[role=button],[role=menuitem],[role=radio],a')||e; rc(t); return 'OK';})()",
      "optional": true,
      "if": [
       "account"
      ]
     },
     {
      "t": "wait",
      "s": 6,
      "if": [
       "account"
      ]
     },
     {
      "t": "open",
      "url": "https://www.facebook.com/",
      "ifNot": [
       "page"
      ]
     },
     {
      "t": "open",
      "url": "__PAGE__",
      "if": [
       "page"
      ]
     },
     {
      "t": "wait",
      "s": 6
     },
     {
      "t": "script",
      "js": "(function(){function deepAll(sel){var out=[];(function w(r){r.querySelectorAll(sel).forEach(function(e){out.push(e);});r.querySelectorAll('*').forEach(function(e){if(e.shadowRoot)w(e.shadowRoot);});})(document);return out;}function rc(e){['pointerdown','mousedown','pointerup','mouseup','click'].forEach(function(t){e.dispatchEvent(new MouseEvent(t,{bubbles:true,cancelable:true,view:window}));});}var P=[/on your mind/i,/quoi de neuf/i,/à quoi pensez/i,/create post/i,/créer une publication/i,/write something/i,/écrivez quelque chose/i,/en qué estás pensando/i,/crear publicación/i,/no que você está pensando/i,/criar publicação/i,/was machst du gerade/i]; var els=Array.from(deepAll('[role=button], span')).filter(function(x){var t=(x.innerText||x.getAttribute('aria-label')||'').trim(); return t.length>0 && t.length<90 && P.some(function(p){return p.test(t);});}); var e=els.filter(function(x){return !Array.from(x.children).some(function(c){return els.indexOf(c)>=0;});})[0]; if(!e) return 'NOTFOUND'; var t=e.closest('[role=button]')||e; t.scrollIntoView({block:'center'}); rc(t); return 'OK';})()",
      "optional": false
     },
     {
      "t": "wait",
      "s": 3
     },
     {
      "t": "arm"
     },
     {
      "t": "script",
      "js": "(function(){function deepAll(sel){var out=[];(function w(r){r.querySelectorAll(sel).forEach(function(e){out.push(e);});r.querySelectorAll('*').forEach(function(e){if(e.shadowRoot)w(e.shadowRoot);});})(document);return out;}function rc(e){['pointerdown','mousedown','pointerup','mouseup','click'].forEach(function(t){e.dispatchEvent(new MouseEvent(t,{bubbles:true,cancelable:true,view:window}));});}var b=deepAll('[role=dialog] [role=button]').filter(function(x){return /^(photo|foto)/i.test(x.getAttribute('aria-label')||'');})[0]; if(!b) return 'NOTFOUND'; rc(b); return 'OK';})()",
      "optional": true
     },
     {
      "t": "wait",
      "s": 2
     },
     {
      "t": "upload"
     },
     {
      "t": "wait",
      "s": 4
     },
     {
      "t": "waitfor",
      "js": "(function(){function deepAll(sel){var out=[];(function w(r){r.querySelectorAll(sel).forEach(function(e){out.push(e);});r.querySelectorAll('*').forEach(function(e){if(e.shadowRoot)w(e.shadowRoot);});})(document);return out;}function rc(e){['pointerdown','mousedown','pointerup','mouseup','click'].forEach(function(t){e.dispatchEvent(new MouseEvent(t,{bubbles:true,cancelable:true,view:window}));});}var d=deepAll('[role=dialog]'); if(!d.length) return 'NOTFOUND'; var has=d.some(function(x){return !!x.querySelector('video');}) || /(^|\\s)\\d{1,3}%/.test(d.map(function(x){return x.innerText||'';}).join(' ')); return has?'OK':'NOTFOUND';})()",
      "secs": 90,
      "what": "waiting for the video to appear in the post window"
     },
     {
      "t": "wait",
      "s": 2
     },
     {
      "t": "type",
      "sel": "div[role='dialog'] div[role='textbox']"
     },
     {
      "t": "wait",
      "s": 1
     },
     {
      "t": "script",
      "js": "(function(){function deepAll(sel){var out=[];(function w(r){r.querySelectorAll(sel).forEach(function(e){out.push(e);});r.querySelectorAll('*').forEach(function(e){if(e.shadowRoot)w(e.shadowRoot);});})(document);return out;}function rc(e){['pointerdown','mousedown','pointerup','mouseup','click'].forEach(function(t){e.dispatchEvent(new MouseEvent(t,{bubbles:true,cancelable:true,view:window}));});}var tb=deepAll('[role=dialog] [role=textbox]')[0]; if(tb&&tb.blur) tb.blur(); var h=deepAll('[role=dialog] h1, [role=dialog] h2, [role=dialog] [role=heading]')[0]; if(h) rc(h); return 'OK';})()",
      "optional": true
     },
     {
      "t": "wait",
      "s": 1
     },
     {
      "t": "script",
      "js": "(function(){function deepAll(sel){var out=[];(function w(r){r.querySelectorAll(sel).forEach(function(e){out.push(e);});r.querySelectorAll('*').forEach(function(e){if(e.shadowRoot)w(e.shadowRoot);});})(document);return out;}function rc(e){['pointerdown','mousedown','pointerup','mouseup','click'].forEach(function(t){e.dispatchEvent(new MouseEvent(t,{bubbles:true,cancelable:true,view:window}));});}var tb=deepAll('[role=dialog] [role=textbox]')[0]; if(tb&&tb.blur) tb.blur(); var h=deepAll('[role=dialog] h1, [role=dialog] h2, [role=dialog] [role=heading]')[0]; if(h) rc(h); return 'OK';})()",
      "optional": true
     },
     {
      "t": "wait",
      "s": 1
     },
     {
      "t": "waitfor",
      "js": "(function(){try{function deepAll(sel){var out=[];(function w(r){r.querySelectorAll(sel).forEach(function(e){out.push(e);});r.querySelectorAll('*').forEach(function(e){if(e.shadowRoot)w(e.shadowRoot);});})(document);return out;}function rc(e){['pointerdown','mousedown','pointerup','mouseup','click'].forEach(function(t){e.dispatchEvent(new MouseEvent(t,{bubbles:true,cancelable:true,view:window}));});}function pt(e){try{e.scrollIntoView({block:'center'});}catch(_){} try{e.focus();}catch(_){} var r=e.getBoundingClientRect(); if(r.width<2||r.height<2){var p=e.closest('label')||e.parentElement; if(p) r=p.getBoundingClientRect();} var vx=r.left+r.width/2, vy=r.top+r.height/2; var sx=window.screenX+(window.outerWidth-window.innerWidth)+vx, sy=window.screenY+(window.outerHeight-window.innerHeight)+vy; return 'CLICK:'+Math.round(sx)+','+Math.round(sy)+','+Math.round(vx)+','+Math.round(vy)+','+(e.tagName==='INPUT'?'space':'enter');}var vis=function(e){if(!e) return false; var r=e.getBoundingClientRect(); return r.width>0&&r.height>0&&r.right>0&&r.left<window.innerWidth&&getComputedStyle(e).visibility!=='hidden'&&!e.closest('[aria-hidden=true]');}; var btns=deepAll('[role=dialog] [role=button]').filter(vis); var txt=function(x){return ((x.innerText||'').trim()||(x.getAttribute('aria-label')||'').trim());}; var pick=function(re){return btns.filter(function(x){var r=x.getBoundingClientRect(); return r.width>0&&re.test(txt(x));})[0];}; var sw=deepAll('[role=dialog] input[role=switch]').filter(vis)[0]; if(sw){ if(!sw.checked){ window.__aiSw=(window.__aiSw||0)+1; if(window.__aiSw>4){ sw.click(); return 'NOTFOUND'; } return pt(sw); } window.__aiDone=true; var g=pick(/^(got it|compris|j.ai compris|entendido|entendi|verstanden|ok|done|termin.)$/i)||pick(/^(back|retour|atr.s|voltar|zur.ck)$/i); if(!g){var dl=deepAll('[role=dialog]'); var tp=dl[dl.length-1]; if(tp){var bs=Array.from(tp.querySelectorAll('[role=button]')).filter(function(x){var r=x.getBoundingClientRect(); return vis(x)&&r.width>40&&r.height>15&&!/close|fermer|cerrar|fechar|schlie/i.test(x.getAttribute('aria-label')||'');}); bs.sort(function(a,b){return b.getBoundingClientRect().bottom-a.getBoundingClientRect().bottom;}); g=bs[0];}} if(g) return pt(g); return 'NOTFOUND'; } var ai=btns.filter(function(x){return /(^|[^a-z\\u00e0-\\u00ff])(ai|ia|ki)([^a-z\\u00e0-\\u00ff]|$)/i.test((x.getAttribute('aria-label')||'')+' '+((x.innerText||'').length<40?x.innerText:''));})[0]; if(!ai){ var tb=deepAll('[role=dialog] [role=textbox]')[0]; if(tb){ var tt=tb.getBoundingClientRect().top; var row=btns.filter(function(x){var r=x.getBoundingClientRect(); return r.height>12&&r.height<=40&&r.width>40&&r.width<260&&r.bottom<=tt+4&&r.top>tt-100;}); row.sort(function(a,b){return a.getBoundingClientRect().left-b.getBoundingClientRect().left;}); if(row.length>=2) ai=row[row.length-1]; } } if(!ai) return window.__aiDone?'OK':'NOTFOUND'; if(window.__aiDone) return 'OK'; var l=((ai.innerText||'').trim()||(ai.getAttribute('aria-label')||'')).trim(); var off=/(off|d.sactiv\\S*|inactiv\\S*|desligad\\S*|aus)$/i.test(l); var on=!off&&/(\\bon|activ\\S*|ativad\\S*|\\bein|\\ban)$/i.test(l); if(on) return 'OK'; if(window.__aiDone&&!off) return 'OK'; window.__aiBt=(window.__aiBt||0)+1; if(window.__aiBt>6) return 'NOTFOUND'; return pt(ai);}catch(err){return 'JSERR:'+err.message;}})()",
      "secs": 40,
      "what": "switching the AI label on"
     },
     {
      "t": "wait",
      "s": 5
     },
     {
      "t": "waitfor",
      "js": "(function(){try{function deepAll(sel){var out=[];(function w(r){r.querySelectorAll(sel).forEach(function(e){out.push(e);});r.querySelectorAll('*').forEach(function(e){if(e.shadowRoot)w(e.shadowRoot);});})(document);return out;}function rc(e){['pointerdown','mousedown','pointerup','mouseup','click'].forEach(function(t){e.dispatchEvent(new MouseEvent(t,{bubbles:true,cancelable:true,view:window}));});}var vis=function(e){if(!e) return false; var r=e.getBoundingClientRect(); return r.width>0&&r.height>0&&r.right>0&&r.left<window.innerWidth&&getComputedStyle(e).visibility!=='hidden'&&!e.closest('[aria-hidden=true]');}; var L=['Next','Suivant','Siguiente','Avançar','Próximo','Weiter']; var d=deepAll('[role=dialog]').filter(vis); if(!d.length) return 'NOTFOUND'; var pool=[]; d.forEach(function(x){pool=pool.concat(Array.from(x.querySelectorAll('[role=button]')));}); pool=pool.filter(vis); var nx=pool.filter(function(x){var a=(x.getAttribute('aria-label')||'').trim(), t=(x.innerText||'').trim(); return (L.indexOf(a)>=0||L.indexOf(t)>=0)&&x.getAttribute('aria-disabled')!=='true';})[0]; if(!nx){ var c=pool.filter(function(x){var dl=x.closest('[role=dialog]'); if(!dl||x.getAttribute('aria-disabled')==='true') return false; var r=x.getBoundingClientRect(); return r.width>=dl.getBoundingClientRect().width*0.8;}); c.sort(function(a,b){return b.getBoundingClientRect().bottom-a.getBoundingClientRect().bottom;}); nx=c[0]; } if(!nx) return 'NOTFOUND'; var T=d.map(function(x){return x.innerText||'';}).join('\\n'); deepAll('[role=dialog] [role=textbox]').forEach(function(tb){var tt=tb.innerText||''; if(tt) T=T.split(tt).join(' ');}); if(/may contain|peut contenir|blocked|bloqué|restricted|restreint|bloqueado|restringid|gesperrt/i.test(T)) return 'NOTFOUND'; if(/safe to publish|en toute sécurité|peut être publi|seguro para publicar|pode ser publicad|sicher veröffentlich/i.test(T)) return 'OK'; window.__fbCalm=(window.__fbCalm||0)+1; return window.__fbCalm>=9?'OK':'NOTFOUND';}catch(err){return 'JSERR:'+err.message;}})()",
      "secs": 150,
      "what": "the video check (upload and copyright)"
     },
     {
      "t": "wait",
      "s": 1
     },
     {
      "t": "waitfor",
      "js": "(function(){try{function deepAll(sel){var out=[];(function w(r){r.querySelectorAll(sel).forEach(function(e){out.push(e);});r.querySelectorAll('*').forEach(function(e){if(e.shadowRoot)w(e.shadowRoot);});})(document);return out;}function rc(e){['pointerdown','mousedown','pointerup','mouseup','click'].forEach(function(t){e.dispatchEvent(new MouseEvent(t,{bubbles:true,cancelable:true,view:window}));});}function pt(e){try{e.scrollIntoView({block:'center'});}catch(_){} try{e.focus();}catch(_){} var r=e.getBoundingClientRect(); if(r.width<2||r.height<2){var p=e.closest('label')||e.parentElement; if(p) r=p.getBoundingClientRect();} var vx=r.left+r.width/2, vy=r.top+r.height/2; var sx=window.screenX+(window.outerWidth-window.innerWidth)+vx, sy=window.screenY+(window.outerHeight-window.innerHeight)+vy; return 'CLICK:'+Math.round(sx)+','+Math.round(sy)+','+Math.round(vx)+','+Math.round(vy)+','+(e.tagName==='INPUT'?'space':'enter');}var K='__tap1'; var L=['Next','Suivant','Siguiente','Avançar','Próximo','Weiter']; var A=[]; if(window[K]) return 'OK'; var d=deepAll('[role=dialog]'); var pool=[]; (d.length?d:[document]).forEach(function(x){pool=pool.concat(Array.from(x.querySelectorAll('[role=button]')));}); pool=pool.filter(function(e){var r=e.getBoundingClientRect(); return r.width>0&&r.height>0&&r.left<window.innerWidth&&getComputedStyle(e).visibility!=='hidden'&&!e.closest('[aria-hidden=true]');}); var nn=pool.filter(function(x){return /^(not now|pas maintenant|plus tard|ahora no|m\\u00e1s tarde|agora n\\u00e3o|agora nao|mais tarde|jetzt nicht|sp\\u00e4ter|skip|ignorer|passer)$/i.test((x.innerText||'').trim());})[0]; if(nn) return pt(nn); var has=function(LL){return pool.filter(function(x){var r=x.getBoundingClientRect(); var a=(x.getAttribute('aria-label')||'').trim(), t=(x.innerText||'').trim(); return r.width>0&&r.height>0&&(LL.indexOf(a)>=0||LL.indexOf(t)>=0)&&x.getAttribute('aria-disabled')!=='true';})[0];}; var e=has(L); if(!e&&A.length&&has(A)) return 'OK'; if(!e){ var c=pool.filter(function(x){var dl=x.closest('[role=dialog]'); if(!dl||x.getAttribute('aria-disabled')==='true') return false; var r=x.getBoundingClientRect(); return r.height>0&&r.width>=dl.getBoundingClientRect().width*0.8;}); c.sort(function(a