// FapChannel
// version 0.166 Alpha
// 4:04 AM Wednesday, May 25, 2005 - 0.1
// 1:01 AM Tuesday, May 31, 2005 - 0.166
// Copyright (c) 2005, 'Xial Lunashine'
// Released under the GPL license
// http://www.gnu.org/copyleft/gpl.html
// 
// It's designed to render only images and links to full images, as best as I 
// could pull it off on my first day of even knowing about Greasemonkey.
// That, and I wanted a faster way to flip through the images so I could, well,
// Get Off? :P
// I don't go to FChan for the "intellectual" discussion. :p
//
// ----------------------------------------------------------------------------
//
// ==UserScript==
// @name            FapChannel
// @namespace       http://pixelechoes.net/spoogemonkey/
// @description     Channeling the images, and diverting the cruft, one arousing picture at a time.
// @include         http://fchan.hentaiplanet.net/*/res/*
// @exclude         http://fchan.hentaiplanet.net/crit/res/*
// @exclude         http://fchan.hentaiplanet.net/flash/res/*
// @exclude         http://fchan.hentaiplanet.net/b/res/*
// ==/UserScript==

function addGlobalStyle(css) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    head.appendChild(style);
}

addGlobalStyle("* { visibility: hidden }"); 
addGlobalStyle("html, body {background-color: #000; border: 0; padding: 0; margin: 0;}");
addGlobalStyle(".posterarea, .adminbar, center, br, .logo, .theader, .dellist, .delbuttons, .managehead, .unkfunc, .row1, .row2, .filesize, .filetitle, .postername, .postertrip, .oldpost, .omittedposts, .postarea, #postform, .rules, .postblock, ul, li, .userdelete, label, input, textarea, hr, blockquote, .replytitle, .doubledash, p, .passvalid, .filesize, td.id { display: none}"); //Jesus monkeyfucking christ, they have so much abused HTML in there that I have to tag-soup out HERE to hide it in THERE. :(
addGlobalStyle("table, tr, td {height: 0; padding: 0; margin: 0;}");
addGlobalStyle(".reply {right: 0;}");
addGlobalStyle("a img, a > img { visibility: visible ! important }");

//
// Changelog
// 
// 4:04 AM Wednesday, May 25, 2005: 0.1 was born. Testing for fappability.
// 1:01 AM Tuesday, May 31, 2005: 0.166 improves slightly, but tackles their tag soup pretty roughly. We'll see if I get cleaned up.
