Spammed by WordPress comment stealing bot with Facebook profile

Some time ago (1/2 year, may be 1 year) strange comments started to appear in our WordPress comment moderation queue. They all contained some random comments from random places, they all had the similar URL: http://www.facebook.com/profile.php?id=XXXXXXXXXXXXXXX where XXXXXXXXXXXXXXX is profile ID, that is changing from one comment to another. I didn’t click on the fake […]

How to execute JavaScript after inserting into element.innerHTML automatically

Here is a scenario: you have some software/component that inserts partial HTML into page using JavaScript element.innerHTML function; you can insert any HTML tags including <script>; you can not call any JS function (software/component does not have such functionality), and inserted script using innerHTML is not executed automatically. After some lost time trying to come […]