Skip to content

Instantly share code, notes, and snippets.

@k4rtik
Created June 14, 2013 06:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save k4rtik/5779814 to your computer and use it in GitHub Desktop.
Save k4rtik/5779814 to your computer and use it in GitHub Desktop.
iMacros script for deleting a lot of spam content on a Drupal website.
VERSION BUILD=6011206 RECORDER=CR
URL GOTO=http://a.drupal.website/admin/content/node
'REFRESH
WAIT SECONDS=1
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ID:node-admin-content ATTR=* CONTENT=YES
TAG POS=1 TYPE=SELECT FORM=ID:node-admin-content ATTR=ID:edit-operation CONTENT=%delete
SET !TIMEOUT 2
SET !ERRORIGNORE YES
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:node-admin-content ATTR=ID:edit-submit-1
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:node-admin-content ATTR=ID:edit-submit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment