Skip to content

Instantly share code, notes, and snippets.

@lsemenenko
Last active February 13, 2020 06:56
Show Gist options
  • Save lsemenenko/462a6bb156b553d4a6ed9ae630f33e02 to your computer and use it in GitHub Desktop.
Save lsemenenko/462a6bb156b553d4a6ed9ae630f33e02 to your computer and use it in GitHub Desktop.
Remove linkojager.org injected js from WordPress posts
#!/bin/bash
wp search-replace '\<img style="width: 0; height: 0; display: none; visibility: hidden;" src="(https?:)?\/\/linkojager\.org\/.+\/\>' '' --regex
wp search-replace '\<script.+src="(https?:)?\/\/linkojager\.org\/.+\<\/script\>' '' --regex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment