There are 8 previous versions of this script.
// ==UserScript==
// @name bgu.co.il Forum Tweaker
// @namespace agmonm@gmail.com
// @description Tweaks bgu.co.il forums
// @version 0.1.0.1
// @include http://forum.bgu.co.il/*
// ==/UserScript==
function removeElementById(element_id)
{
var a = document.getElementById(element_id);
if (a) {
a.parentNode.removeChild(a);
}
}
function plantCSS(css){
if (typeof GM_addStyle != "undefined") {
GM_addStyle(css);
}
else if (typeof addStyle != "undefined") {
addStyle(css);
}
else {
var heads = document.getElementsByTagName("head");
if (heads.length > 0) {
var node = document.createElement("style");
node.type = "text/css";
node.appendChild(document.createTextNode(css));
heads[0].appendChild(node);
}
}
}
// Forum spesific functions begins here
function removeSideBanner()
{
var sidebannerDiv = document.getElementById('sidebanner');
if (sidebannerDiv)
{
sidebannerDiv.parentNode.parentNode.parentNode.removeChild(sidebannerDiv.parentNode.parentNode);
}
}
function removeFooterLinks()
{
var ipbwrapperDiv = document.getElementById('ipbwrapper');
if (ipbwrapperDiv)
{
ipbwrapperDiv.parentNode.removeChild(ipbwrapperDiv.nextSibling.nextSibling);
}
}
function highlightTopic(){
css = "@namespace url(http://www.w3.org/1999/xhtml); .row1 td:hover, .row2 td:hover { background-color: rgb(255,255,210) !important;}";
plantCSS(css);
}
removeSideBanner();
removeElementById('banner2');
removeElementById('footer_utilities');
removeFooterLinks();
highlightTopic();