SHOW:
|
|
- or go back to the newest paste.
| 1 | for file in $(find . -name "*.js") | |
| 2 | do | |
| 3 | echo "Replacing in $file" | |
| 4 | - | sed -r "s#(;document\.write\('\<iframe){1}((\s\w*)=\"([\w*:*\/*\w*\d*\s*.*?*%*]*)\")*(\>\<\/iframe\>'\);)##g" $file > $file.tmp
|
| 4 | + | sed -r "s#document\.write\('\<iframe.*?\>.*?\<\/iframe\>'\);##g" $file > $file.tmp
|
| 5 | ||
| 6 | mv $file.tmp $file | |
| 7 | echo "... done" | |
| 8 | done |