Instantly share code, notes, and snippets.

Embed
What would you like to do?
removePost.js
$('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(); }
});
@pretenditsthesea

This comment has been minimized.

Show comment
Hide comment
@pretenditsthesea

pretenditsthesea Jul 18, 2014

This code isn't opening up the report/remove boxes for untagging photos. It is working for deleting other activity though.

pretenditsthesea commented Jul 18, 2014

This code isn't opening up the report/remove boxes for untagging photos. It is working for deleting other activity though.

@pretenditsthesea

This comment has been minimized.

Show comment
Hide comment
@pretenditsthesea

pretenditsthesea Jul 18, 2014

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.

pretenditsthesea commented Jul 18, 2014

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.

@seandogg

This comment has been minimized.

Show comment
Hide comment
@seandogg

seandogg Jul 19, 2014

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:

[]

seandogg commented Jul 19, 2014

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:

[]

@Take27

This comment has been minimized.

Show comment
Hide comment
@Take27

Take27 Jul 19, 2014

Doesn't work for me neither.please help

Take27 commented Jul 19, 2014

Doesn't work for me neither.please help

@nbriz

This comment has been minimized.

Show comment
Hide comment
@nbriz

nbriz Jul 21, 2014

UPDATES >>>> http://nickbriz.com/facebook/unfriend.html <<< new scripts which might help ( comment here if u still have issues )

Owner

nbriz commented Jul 21, 2014

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