V1.02
There was a command that allow you to use javascript in Imacros, so you may code logic in javascript inside ImacrosSame here! Would love to put an IF attr
TAG POS=2 TYPE=DIV ATTR=TXT:*<SP>new<SP>results
SET !ERRORIGNORE YESTAB T=1
SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*100 + 20); randomNumber;")
SET !VAR2 EVAL("var randomNumber=Math.floor(Math.random()*10 + 1); randomNumber;")
SET !VAR3 EVAL("var randomNumber=Math.floor(Math.random()*10 + 1); randomNumber;")
WAIT SECONDS={{!VAR1}}
URL GOTO=twitter.com/search/realtime?q=KEYWORD1&src=typd
TAG POS=2 TYPE=B ATTR=TXT:Favorite
WAIT SECONDS={{!VAR2}}
TAG POS=3 TYPE=B ATTR=TXT:Favorite
WAIT SECONDS={{!VAR2}}
TAG POS=4 TYPE=B ATTR=TXT:Favorite
WAIT SECONDS={{!VAR2}}
TAG POS=5 TYPE=B ATTR=TXT:Favorite
WAIT SECONDS={{!VAR2}}
TAG POS=6 TYPE=B ATTR=TXT:Favorite
WAIT SECONDS={{!VAR2}}
TAG POS=7 TYPE=B ATTR=TXT:Favorite
WAIT SECONDS={{!VAR2}}
TAG POS=8 TYPE=B ATTR=TXT:Favorite
WAIT SECONDS={{!VAR3}}
URL GOTO=twitter.com/search/realtime?q=KEYWORD2&src=typd
TAG POS=2 TYPE=B ATTR=TXT:Favorite
WAIT SECONDS={{!VAR2}}
TAG POS=3 TYPE=B ATTR=TXT:Favorite
WAIT SECONDS={{!VAR2}}
TAG POS=4 TYPE=B ATTR=TXT:Favorite
WAIT SECONDS={{!VAR2}}
TAG POS=5 TYPE=B ATTR=TXT:Favorite
WAIT SECONDS={{!VAR2}}
TAG POS=6 TYPE=B ATTR=TXT:Favorite
WAIT SECONDS={{!VAR2}}
TAG POS=7 TYPE=B ATTR=TXT:Favorite
WAIT SECONDS={{!VAR2}}
TAG POS=8 TYPE=B ATTR=TXT:Favorite
WAIT SECONDS={{!VAR3}}
- replace keyword1 and keyword2 by your keyword
Code:SET !ERRORIGNORE YESTAB T=1 SET !VAR1 EVAL("var randomNumber=Math.floor(Math.random()*100 + 20); randomNumber;") SET !VAR2 EVAL("var randomNumber=Math.floor(Math.random()*10 + 1); randomNumber;") SET !VAR3 EVAL("var randomNumber=Math.floor(Math.random()*10 + 1); randomNumber;") WAIT SECONDS={{!VAR1}} URL GOTO=twitter.com/search/realtime?q=KEYWORD1&src=typd TAG POS=2 TYPE=B ATTR=TXT:Favorite WAIT SECONDS={{!VAR2}} TAG POS=3 TYPE=B ATTR=TXT:Favorite WAIT SECONDS={{!VAR2}} TAG POS=4 TYPE=B ATTR=TXT:Favorite WAIT SECONDS={{!VAR2}} TAG POS=5 TYPE=B ATTR=TXT:Favorite WAIT SECONDS={{!VAR2}} TAG POS=6 TYPE=B ATTR=TXT:Favorite WAIT SECONDS={{!VAR2}} TAG POS=7 TYPE=B ATTR=TXT:Favorite WAIT SECONDS={{!VAR2}} TAG POS=8 TYPE=B ATTR=TXT:Favorite WAIT SECONDS={{!VAR3}} URL GOTO=twitter.com/search/realtime?q=KEYWORD2&src=typd TAG POS=2 TYPE=B ATTR=TXT:Favorite WAIT SECONDS={{!VAR2}} TAG POS=3 TYPE=B ATTR=TXT:Favorite WAIT SECONDS={{!VAR2}} TAG POS=4 TYPE=B ATTR=TXT:Favorite WAIT SECONDS={{!VAR2}} TAG POS=5 TYPE=B ATTR=TXT:Favorite WAIT SECONDS={{!VAR2}} TAG POS=6 TYPE=B ATTR=TXT:Favorite WAIT SECONDS={{!VAR2}} TAG POS=7 TYPE=B ATTR=TXT:Favorite WAIT SECONDS={{!VAR2}} TAG POS=8 TYPE=B ATTR=TXT:Favorite WAIT SECONDS={{!VAR3}}
This is an imacro script. You can download imacro for firefox by typing "imacro" in the addons search field. Once you install it:
1. Restart your firefox browser.
2. Copy the script and save it with a text program like notepad in windows or texteditor in linux.
3. Make sure you save the file as "iim" and put it on your desktop so you know where it is.
4. Locate the iMacos icon in the toolbar of your browser and click it once. It will open on your left side
5. Highlight "Favorites" and right click so you can create a NEW folder. Rename the folder to Twitter or something like that.
6. Login to your Twitter account.
7. Highlight your new folder you renamed Twitter or whatever you named it.
8. Press the "Rec" tab located betweed Play and Edit in your imacro window on left side of screen.
9. Press the "Load" button and navigate to your Desktop where you saved the script file in iim
10. Once loaded, press the "Edit" tab and press "Edit Macro"
11. Type in the trend name you want to search and type it in without the <trend name>. (READ INSTRUCTIONS)
12. If you want to search the # hash tag, remove the <trend name> characters and put in %23 and then then name. Example #teaparty would be %23teaparty.
13. Once done, go back to the "Play" tab and presss the "Play (loop)" button. Don't forget to change the number of repeats. 3 is the default.
When you do this, the macro will run and favorite every post that has the name of the trend you put in or the hash tag you typed in.
** There is a flaw in the script. If the script "Favorites" a tweet once and incounters it again, it will "UnFavor" the tweet. This needs to be fixed. You can go behind the script once it gets done and re-favorite any tweets you want. So don't increase the MAX Repeats to high.