Jun 23, 2012

[iMacros Script] Remove All Notes From Facebook Notes

Remove All Notes From Facebook Notes
***Change the value. The red.***
/*                                              Save File As .js   (javascript file)       
                                                    Start Script

*/

var jsLF="\n";
var header,macro;
Remove_Drafts = 0;
Your_Note_Link    = 'http://www.facebook.com/pages/XXXXX/999999999999999?sk=notes';



for (i = 1;i<100;i++){
    macro = "CODE:";
    macro += "SET !ERRORIGNORE YES" + jsLF;
    macro += "SET !ERRORCONTINUE YES" + jsLF;
    if (Remove_Drafts != 1){
        macro += "URL GOTO="+ Your_Note_Link + jsLF;
        macro += "TAG POS=1 TYPE=A ATTR=HREF:/note*"    + jsLF;   
        macro += "WAIT SECONDS=1"    + jsLF;   
        macro += "TAG POS=1 TYPE=I ATTR=CLASS:mrs<SP>img<SP>*"    + jsLF;
        macro += "WAIT SECONDS=1"    + jsLF;       
        macro += "TAG POS=1 TYPE=SPAN ATTR=TXT:Delete"    + jsLF;   
    }else{
        macro += "URL GOTO=" + Your_Note_Link + '_drafts' + jsLF;
        macro += "TAG POS=1 TYPE=A ATTR=TXT:Discard"    + jsLF;       
    }
    macro += "WAIT SECONDS=1"    + jsLF;   
    macro += "TAG POS=1 TYPE=INPUT:BUTTON ATTR=NAME:confirm&&VALUE:Confirm"    + jsLF;   
    iimPlay(macro);
}
iimPlay(macro);

/*                                                   End Script
*/

No comments:

Post a Comment

iMacros Script