How Random Babbling Becomes Corporate Policy (t3knomanser) wrote,
How Random Babbling Becomes Corporate Policy


I've decided to try my hand at Greasemonkey, a scripting add-on that allows you to write scripts that customize any given page. It's pretty cool stuff, and there's a lot of useful scripts out there.

I created one, more to prove that I could. It adds an "ignore" link next to people's live-journal posts on my friends page. It could theoretically work on any page using the same style as mine (which is "Wizard" I believe). For those curious, here's the code.

The function "getElementsByClassName" is from here. If you're familiar with javascript, this could probably be generalized to other styles (it might even work (sorta) on a few others anyway). It has hide/show functionality and is moderately smart. If I wanted to get really clever, I'd assign each post a GUID instead of a single number and store the state via a webservice, thus allowing me to keep posts hidden and shown between refreshes. But that's way too much work for something useless.

  • Strange Things People Say About Me (to my face)

    Recently, I've been at the center of a trend. That trend is complete strangers asking me "Are you ____?" A quick summary. For example: Are you…

  • Writer's Block: If I could find my way

    -10,000 years, at minimum. Tomorrow is always better than today, especially when you can't fact-check.

  • Bob Morlang

    When I was working at Tri-Mount, we had these camp trucks. They were army surplus, and while they could take a beating, they only sort of worked. And…

  • Post a new comment


    Comments allowed for friends only

    Anonymous comments are disabled in this journal

    default userpic

    Your IP address will be recorded