Last active
February 13, 2020 06:56
-
-
Save lsemenenko/462a6bb156b553d4a6ed9ae630f33e02 to your computer and use it in GitHub Desktop.
Remove linkojager.org injected js from WordPress posts
This file contains hidden or 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
#!/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