{"name":"FB un/like","level":"0","parent":"","isLeaf":false,"expanded":true,"loaded":true,"projects":[{"action":[{"data":"clipboard[\"fb-author\"] = \"all\";\nclipboard[\"fb-me\"] = \"your name\";\nclipboard[\"interval\"] = 100;","evType":"bg-inject","newValue":"","msgType":"userEvent"},{"data":"//Like\nif($(\".mainWrapper\").length != 0) {\n var content = $(\".mainWrapper\");\n var count = 0;\n var inter = 1;\n content.each(function (){\n var currentContent = $(this);\n var contentAuthor = currentContent.find(\".actorName a\").html();\n\tvar likeLink = currentContent.find(\".UIActionLinks .UFILikeLink\");\n\tif(((contentAuthor == clipboard[\"fb-author\"])||(clipboard[\"fb-author\"]==\"all\"))&&(likeLink.html()==\"Like\")) {\n\t\tif(contentAuthor == clipboard[\"fb-me\"]) {\n\t\t\treturn true;\n\t\t}\n\t\tinter++;\n\t\tsetTimeout(function(){\n\t\t count++;\n\t\t console.log(count+\" clicked\");\n\t\t likeLink[0].click();\n\t\t},inter*clipboard[\"interval\"]);\n\t}\n });\n}","evType":"cs-inject","newValue":"","msgType":"userEvent"}],"name":"Like","level":"1","isLeaf":true,"expanded":false,"loaded":true},{"action":[{"data":"clipboard[\"fb-author\"] = \"all\";\nclipboard[\"interval\"] = 100;","evType":"bg-inject","newValue":"","msgType":"userEvent"},{"data":"//Unlike\nif($(\".mainWrapper\").length != 0) {\n var content = $(\".mainWrapper\");\n var count = 0;\n var inter = 1;\n content.each(function (){\n var currentContent = $(this);\n var contentAuthor = currentContent.find(\".actorName a\").html();\n\tvar likeLink = currentContent.find(\".UIActionLinks .UFILikeLink\");\n\tif(((contentAuthor == clipboard[\"fb-like-author\"])||(clipboard[\"fb-author\"]==\"all\"))&&(likeLink.html()==\"Unlike\")) {\n\t inter++;\n\t\tsetTimeout(function(){\n\t\t count++;\n\t\t console.log(count+\" clicked\");\n\t\t likeLink[0].click();\n\t\t},inter*clipboard[\"interval\"]);\n\t}\n });\n}","evType":"cs-inject","newValue":"","msgType":"userEvent"}],"name":"Unlike","level":"1","isLeaf":true,"expanded":false,"loaded":true}]}