Skip to content

Instantly share code, notes, and snippets.

@dvygolov
Created September 3, 2019 13:06
Show Gist options
  • Save dvygolov/9b2aa972aa74e1e52c510d959ac2b0b6 to your computer and use it in GitHub Desktop.
Save dvygolov/9b2aa972aa74e1e52c510d959ac2b0b6 to your computer and use it in GitHub Desktop.
{
"Name": "QuickFBModeration",
"CreationDate": "2019-9-3",
"Commands": [
{
"Command": "store",
"Target": "0",
"Value": "i"
},
{
"Command": "executeScript_Sandbox",
"Target": "var cl=${!clipboard}; return cl.split(\"\\n\")",
"Value": "adIds"
},
{
"Command": "executeScript_Sandbox",
"Target": "return ${adIds}.length;",
"Value": "adsCount"
},
{
"Command": "while_v2",
"Target": "${i}<${adsCount}",
"Value": ""
},
{
"Command": "executeScript_Sandbox",
"Target": "return Math.floor(Math.random()* Number (100))",
"Value": "randomNumber"
},
{
"Command": "open",
"Target": "https://www.facebook.com/help/contact/186912391909649",
"Value": ""
},
{
"Command": "click",
"Target": "id=SupportForm186912391909649",
"Value": ""
},
{
"Command": "click",
"Target": "id=486556404885036",
"Value": ""
},
{
"Command": "executeScript_Sandbox",
"Target": "return ${adIds}[${i}]",
"Value": "currentItem"
},
{
"Command": "type",
"Target": "id=486556404885036",
"Value": "${currentItem}"
},
{
"Command": "type",
"Target": "id=337290956413644",
"Value": "${RANDOMNUMBER}"
},
{
"Command": "type",
"Target": "id=296084320450771",
"Value": "${RANDOMNUMBER}"
},
{
"Command": "click",
"Target": "id=SupportFormRow.337290956413644",
"Value": ""
},
{
"Command": "click",
"Target": "id=u_0_5",
"Value": ""
},
{
"Command": "executeScript_Sandbox",
"Target": "return Number (${i}) + 1;",
"Value": "i"
},
{
"Command": "endWhile",
"Target": "",
"Value": ""
}
]
}
@dvygolov
Copy link
Author

dvygolov commented Sep 3, 2019

Скрипт для браузерного плагина Kantu, берёт из буфера обмена разделённые Enter-ом id объявлений фб и шлёт каждое из них на быструю модерацию

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment