Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var x = 1;
- while (x < 100)
- {
- run();
- }
- function run() {
- var exists = doesElementExist();
- if (exists) {
- iimPlay('CODE:TAG POS=1 TYPE=BUTTON ATTR=CLASS:follow<SP>mini<SP>not-follow-view');
- iimPlay('CODE:SET !EXTRACT NULL');
- }
- else {
- iimPlay('CODE:TAG POS=1 TYPE=BUTTON ATTR=TXT:Load<SP>more<SP>members');
- sleep(2000);
- }
- }
- // check for follow buttons
- function doesElementExist() {
- iimDisplay('looking for small element with rel "contact" amd style "color:" on page');
- var code = iimPlay('CODE: SET !TIMEOUT_TAG 1\n'
- + 'TAG POS=1 TYPE=BUTTON ATTR=CLASS:follow<SP>mini<SP>not-follow-view EXTRACT=TXT');
- if (code !==1) {
- return false;
- }
- var extract = iimGetLastExtract();
- if (extract === '#EANF#') {
- return false;
- }
- return true;
- }
- //wait
- function sleep(milliseconds) {
- var start = new Date().getTime();
- for (var i = 0; i < 1e7; i++) {
- if ((new Date().getTime() - start) > milliseconds){
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment