Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name ZEN-Ifier
- // @namespace kak-test
- // @description WELP
- // @include http://board.kafuka.org/*
- // @version 3
- // @grant none
- // ==/UserScript==
- //window.addEventListener('load', function() {
- // Disable the current CSS
- var defs = document.getElementsByTagName("link");
- for (var i = 0; i < defs.length; i++) {
- //console.log("(" + i + ") | " + defs[i].getAttribute("href") + "<br>");
- if (defs[i].getAttribute("href").substr(0, 3) == "css") {
- // Found the CSS declaration
- // alert("Got it at " + i + " !");
- defs[i].disabled= true;
- break;
- }
- }
- if (false) {
- // :V :V :V (simulates Jul header and removes attn box)
- defs = document.getElementsByTagName("img");
- for (var i = 0; i < defs.length; i++) {
- if (defs[i].getAttribute("src").substr(0, 5) == "theme") {
- defs[i].src = "http://jul.rustedlogic.net/images/zen/zentitle.png";
- // IMG .A .TD .OTHER TD (ATTNBOX)
- var attnbox = defs[i].parentNode.parentNode.nextElementSibling;
- attnbox.parentNode.removeChild(attnbox); // RIP
- break;
- }
- }
- }
- // Place the new one
- addHeadTag("style", "" +
- "a { color: #BEFEBA; } " +
- "a:visited { color: #99c090; } " +
- "a:active { color: #CFFFBE; } " +
- "a:hover { color: #CEFECA; } " +
- " " +
- "a:link, a:visited, a:active, a:hover { " +
- " text-decoration: none; " +
- " font-weight: bold; " +
- "} " +
- " " +
- "body { " +
- " color: #DDDDDD; " +
- " font: 13px verdana; " +
- " background: #010; " +
- "} " +
- "body, table, td, .c1, .c2 { " +
- " font: 13px verdana; " +
- "} " +
- " " +
- ".c1,.c2 { " +
- " width: 100%; " +
- " border-collapse: collapse; " +
- " empty-cells: show; width: 100%; " +
- " border-top: #001100 1px solid; " +
- " border-left: #001100 1px solid; " +
- " border-spacing: 0px; " +
- "} " +
- //".b { border: 1px solid #875857;} " +
- ".n1,.c1 { background: #005028; } " +
- ".n2,.c2 { background: #104830; } " +
- ".h { " +
- " background: #007c00 url('http://jul.rustedlogic.net/images/zen/header.png') repeat-x top center; " +
- " text-shadow: 1px 1px 2px #000; " +
- " color: #AAFFCC; " +
- "} " +
- ".c { background:#005020 url('http://jul.rustedlogic.net/images/zen/t1.png') repeat-x top center; } " +
- ".h,.c { " +
- " text-align: center; " +
- "} " +
- "td.h, td.c, td.n1, td.n2, .b { " +
- " border-right: #001100 1px solid; " +
- " border-bottom: #001100 1px solid " +
- "} " +
- "textarea,input,select{ " +
- " border: #000000 solid 1px; " +
- " background:#000000; " +
- " color: #DDDDDD; " +
- " font: 10pt verdana;} " +
- "textarea:focus { " +
- " border: #000000 solid 1px; " +
- " background:#000000; " +
- " color: #DDDDDD; " +
- " font: 10pt verdana;} " +
- "input[type=radio]{ " +
- " border: none; " +
- " background:none; " +
- " color: #DDDDDD; " +
- " font: 10pt verdana;} " +
- "input[type=submit]{ " +
- " border: #000000 solid 2px; " +
- " font: 10pt verdana;} " +
- " " +
- ".sfont { " +
- " font-size: 0.8em; " +
- " font-family: verdana; " +
- "} " +
- " " +
- ".nc0x{color:#888888} .nc1x{color:#888888} .nc2x{color:#888888} " +
- ".nc00{color:#97ACEF} .nc10{color:#F185C9} .nc20{color:#7C60B0} " +
- ".nc01{color:#D8E8FE} .nc11{color:#FFB3F3} .nc21{color:#EEB9BA} " +
- ".nc02{color:#AFFABE} .nc12{color:#C762F2} .nc22{color:#47B53C} " +
- ".nc03{color:#FFEA95} .nc13{color:#C53A9E} .nc23{color:#F0C413}"
- );
- //}, false);
- function addHeadTag(tag, contents) {
- var e = document.createElement(tag);
- var t = document.createTextNode(contents);
- e.appendChild(t);
- document.head.appendChild(e);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement