Last active
August 29, 2015 14:03
-
-
Save nbriz/973c46f7bb60c919da03 to your computer and use it in GitHub Desktop.
removePost.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('span').each(function( i ) { | |
if( $(this).html() == 'Report'){ $(this).click(); } | |
if( $(this).html() == 'Report/Remove Tag'){ $(this).click(); } | |
if( $(this).html() == 'Remove Tag...'){ $(this).click(); } | |
if( $(this).html() == 'Delete This Photo'){ $(this).click(); } | |
if( $(this).html() == 'Delete'){ $(this).click(); } | |
if( $(this).html() == 'Delete...'){ $(this).click(); } | |
if( $(this).html() == 'Unlike'){ $(this).click(); } | |
}); |
The console reads "undefined" after the previous piece of code, indicating that the submenus are there. When I enter this code to open the report/remove boxes, the console displays:
m.fn.init[669]
Sorry I can't be more proactive and fix the problem myself. I really appreciate what you have shared here. Any help is also appreciated.
seeing the same issue as you, pretend... report / remove isn't firing. tested to see if it was hidden by cutting and pasting the next step:
$( "input[name|='untag']" ).click();
and it returns:
[]
Doesn't work for me neither.please help
UPDATES >>>> http://nickbriz.com/facebook/unfriend.html <<< new scripts which might help ( comment here if u still have issues )
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This code isn't opening up the report/remove boxes for untagging photos. It is working for deleting other activity though.