https://dl.dropbox.com/u/14990225/chipm
er.user.js
if your browser supports userscripts, or you can get an addon that does (i use scriptish for firefox), you can use this script i made to ignore users on chipmusic.org. yes, you will never have to see any of their posts again! i set it up to ignore nuclace by default but you can add any users you want (even ME).
if you find any bugs or you have any feature requests tell me and i may be able to help but i may not be able to help
enjoy!
› Show Spoiler
‹ Hide Spoiler
// ==UserScript==
// @id chipmusic ignore user
// @name chipmusic ignore user
// @version 1.0
// @namespace
// @author ant1
// @description ignores users on chipmusic.org
// @include http://chipmusic.org/
// @include http://chipmusic.org/*
// @run-at document-end
// ==/UserScript==
function hideUsers()
{
// add users to hide here like so: ['usertohide1', 'usertohide2', 'usertohide3']
var usersToHide = ['NUCLACE'];
for (var userIndex = 0; userIndex < usersToHide.length; userIndex++)
{
var user = usersToHide[userIndex];
var usernameElements = document.getElementsByClassName('username');
for (var i = 0; i < usernameElements.length; i++)
{
var usernameElement = usernameElements[i];
if (usernameElement.innerHTML.indexOf(user) != -1)
{
usernameElement.parentNode.parentNode.parentNode.parentNode.innerHTML = '<b>hidden post: ' + user + '</b>';
}
}
}
}
window.onload = hideUsers;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
here is a new one i made
› Show Spoiler
‹ Hide Spoiler
// ==UserScript==
// @id thin-chipmusic
// @name thin chipmusic.org
// @version 1.0
// @namespace
// @author ant1
// @description
// @include http://chipmusic.org/
// @include http://chipmusic.org/*
// @run-at document-end
// ==/UserScript==
function thinCMO()
{
var width = 0;
var widthToShrinkAt = 1200;
var minimumWidth = 1200;
if(document.URL.indexOf("chipmusic.org") != -1){width = minimumWidth};
if(document.URL.indexOf("chipmusic.org/forums/topic") != -1){width = 0};
var bodies = document.getElementsByTagName("body");
for (var i = 0; i < bodies.length; i++)
{
var body = bodies[i];
body.setAttribute("style", "min-width: " + width + "px !important;");
}
if (window.innerWidth < widthToShrinkAt)
{
var elementsToRemove = ["categories_home", "brd-stats", "brd-online"];
for (var i = 0; i < elementsToRemove.length; i++)
{
var elementToRemove = document.getElementById(elementsToRemove[i]);
if (elementToRemove != null)
{
elementToRemove.parentNode.removeChild(elementToRemove);
}
}
if(document.URL.indexOf("chipmusic.org/forums/topic") != -1)
{
var content = document.getElementsByClassName("main-content")[0];
content.setAttribute("style", "width: " + (window.innerWidth * 0.9) + "px !important");
}
var search = document.getElementById("brd-search");
search.setAttribute("class", "");
search.setAttribute("id", "");
search.parentNode.removeChild(search);
document.getElementsByTagName("body")[0].appendChild(search);
}
}
window.onload = thinCMO;
it makes chipmusic.org a bit more readable at low resolutions
i tested it at 836 horizontal pixels
it doesn't seem to work at sizes much smaller than that, maybe you can TWEAK it
i made it mainly for personal use because i like to tile my windows and have my browser at half width (the aforementioned 836 pixels)
it is a bit rough and raw and unpolished but it mostly works. maybe you will want to use it if you are on a netbook
Last edited by ant1 (Aug 9, 2012 2:28 pm)