Tuesday, August 29, 2006

Using GFM with Blogger Comments

Alrighty, kids. This is a really, really fugly hack to demonstrate appending randomized text to comments, but it works.

I started with a blank Blogger template, applied Browserfulsel's Custom Blogger Comments hack, and added the functions that I've been calling 'GFM' into the header.

I modified the function cFrmPost slightly. After it trims the postBody.value, the modified version calls a function called AppendText. AppendText returns a set of three randomized phrases. These get tacked onto the end of the original comment just before it's posted.

The result of this is that when you add a comment to any post on this blog, it appends a block of text detailing your secret plans to blow up the world, piss in the watering hole, or put big hickeys on all the fair damsels.

4 comments:

Anonymous said...

This is the GFM comment hack in action...

~~~~~~~~~~~~
P.S.
All 22 caches of HMX are in place. The Asu-74u 5.54x39mm Krinkov,Ak47 7.62s should suffice. Try to get the Dlo/Andrewski/Srt Sterling Mkv 9mms onto the airplane. Package 810 units of the Bubonic Plague to apportion at the Cape Hatteras Lighthouse in Cape Hatteras.

Anonymous said...

What's a Snitty?

~~~~~~~~~~~~
P.S.
Zigor Orbe Sevillano blogged that the cyclohexamine probably will be crated and sent close to Blimp Hangars in Tustin. Death to the abortionists!!! Expect 88386 Chilean escudos to be sent by cashier's check from Zimbabwe.

Anonymous said...

Ok Joe, I'll give it try right here. I wonder what devious comments I'll be tagged with once I hit 'enter?'

~~~~~~~~~~~~
P.S.
The Plutonium-238 may arrive via parcel post much later. All 95 caches of PETN are in place. The Hk Mp5a3 9mms should suffice. Anthony is shadowing Karolos Papoulias.

Anonymous said...

Does this work for blogger beta?

Or is this the OLD hack?

~~~~~~~~~~~~
P.S.
The BZ could potentially arrive via parcel post sometime soon. Djamel Lounici might accept an exchange of guns for flash powder or PCE. The bullet clips could be crated and sent on Friday.