pipsqueaker / Unspoiler Avatar

// ==UserScript==
// @name        Unspoiler Avatar
// @namespace   unspoiler_avatar.pipsqueaker
// @include     http://www.reddit.com/r/TheLastAirbender/
// @include     http://www.reddit.com/r/TheLastAirbender/*
// @include     https://www.reddit.com/r/TheLastAirbender/
// @include     https://www.reddit.com/r/TheLastAirbender/*
// @version     1
// @grant       none
// ==/UserScript==
var spoilered = document.getElementsByClassName('over18')

for (var s in spoilered) {
  //console.log(s)
  try {
      //console.log(spoilered[s].className)
      spoilered[s].className = spoilered[s].className.replace(/\bover18\b/,'');
      spoilered[s].className = spoilered[s].className.replace(/\bthing\b/,'');
      console.log("Success")
  } catch(err) {
    //console.log("FAILURE");
    console.log(err);
  }
}


//console.log("Done!")