Author Topic: My Addon Scripts (1) (Tampermonkey Requried)  (Read 127 times)

Offline Plam3n

  • Guard
  • **
  • Posts: 509
  • Karma: +0/-0
    • View Profile
My Addon Scripts (1) (Tampermonkey Requried)
« on: May 09, 2019, 11:24 am »
Before I start this, I want to say that I got this whole idea about making my own scripts from CyanGaming and Bricc.

Sploder Forums' Red Theme Addon
If there are any old members here, some of you will probably remember this theme. And it seems like it doesn't exist in this backup from 2013. I wanted it so much that I eventually added it back using my own basic JavaScript skills.


Code: [Select]
// ==UserScript==
// @name         Sploder Forums' Red Theme - Plam3n's Addons
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Bring back the Sploder Forums' beautiful red theme!
// @author       Plamen Dobrev
// @match        http://forums.sploder.com/*
// @grant        none
// ==/UserScript==

// Changes the menu's appearance.

var menu = document.getElementsByClassName("menu")[0];
menu.style.backgroundColor = "#850A0A";
menu.style.backgroundImage = "linear-gradient(to bottom, #850A0A, #570000)";
menu.style.backgroundImage = "-webkit-linear-gradient(to bottom, #850A0A, #570000)";
menu.style.backgroundImage = "-moz-linear-gradient(to bottom, #850A0A, #570000)";
menu.style.backgroundImage = "-o-linear-gradient(to bottom, #850A0A, #570000)";
menu.style.backgroundImage = "-ms-gradient(to bottom, #850A0A, #570000)";
menu.style.boxShadow = 'none';

// Changes the tiny 'NEW' icons' appearance.

var icoNew = document.querySelectorAll("img[src='http://forums.sploder.com/Themes/sploder/images/english/new.gif']");
for (var a = 0; a < icoNew.length; a++) {
    icoNew[a].src = 'https://i.imgur.com/6RlvrHL.png';
}

// Changes the thread boxes' appearance.

var boxTwo = document.querySelectorAll(".icon2.windowbg[style]");
for (var b = 0; b < boxTwo.length; b++) {
    boxTwo[b].style.backgroundColor = "#552222";
}

var boxOneNew = document.querySelectorAll(".icon1.windowbg.topicnew");
for (var c = 0; c < boxOneNew.length; c++) {
    boxOneNew[c].style.backgroundColor = "#552222";
}

var boxTwoNew = document.querySelectorAll(".icon2.windowbg.topicnew");
for (var d = 0; d < boxTwoNew.length; d++) {
    boxTwoNew[d].style.backgroundColor = "#552222";
}

var boxThreeNew = document.querySelectorAll(".subject.windowbg2.topicnew");
for (var e = 0; e < boxThreeNew.length; e++) {
    boxThreeNew[e].style.backgroundColor = "#553333";
}

var boxFourNew = document.querySelectorAll(".stats.windowbg.topicnew");
for (var f = 0; f < boxFourNew.length; f++) {
    boxFourNew[f].style.backgroundColor = "#552222";
}

var boxFiveNew = document.querySelectorAll(".lastpost.windowbg2.topicnew");
for (var g = 0; g < boxFiveNew.length; g++) {
    boxFiveNew[g].style.backgroundColor = "#553333";
}

var boxTwoSticky = document.querySelectorAll(".icon2.windowbg[style]");
for (var h = 0; h < boxTwoSticky.length; h++) {
    boxTwoSticky[h].style.backgroundColor = "#552222";
}

var boxOneNewSticky = document.querySelectorAll(".icon1.stickybg.topicnew");
for (var i = 0; i < boxOneNewSticky.length; i++) {
    boxOneNewSticky[i].style.backgroundColor = "#552222";
}

var boxTwoNewSticky = document.querySelectorAll(".icon2.stickybg.topicnew");
for (var j = 0; j < boxTwoNewSticky.length; j++) {
    boxTwoNewSticky[j].style.backgroundColor = "#552222";
}

var boxThreeNewSticky = document.querySelectorAll(".subject.stickybg2.topicnew");
for (var k = 0; k < boxThreeNewSticky.length; k++) {
    boxThreeNewSticky[k].style.backgroundColor = "#553333";
}

var boxFourNewSticky = document.querySelectorAll(".stats.stickybg.topicnew");
for (var l = 0; l < boxFourNewSticky.length; l++) {
    boxFourNewSticky[l].style.backgroundColor = "#552222";
}

var boxFiveNewSticky = document.querySelectorAll(".lastpost.stickybg2.topicnew");
for (var m = 0; m < boxFiveNewSticky.length; m++) {
    boxFiveNewSticky[m].style.backgroundColor = "#553333";
}

var boxTwoLocked = document.querySelectorAll(".icon2.lockedbg[style]");
for (var n = 0; n < boxTwoLocked.length; n++) {
    boxTwoLocked[n].style.backgroundColor = "#552222";
}

var boxOneNewLocked = document.querySelectorAll(".icon1.lockedbg.topicnew");
for (var o = 0; o < boxOneNewLocked.length; o++) {
    boxOneNewLocked[o].style.backgroundColor = "#552222";
}

var boxTwoNewLocked = document.querySelectorAll(".icon2.lockedbg.topicnew");
for (var p = 0; p < boxTwoNewLocked.length; p++) {
    boxTwoNewLocked[p].style.backgroundColor = "#552222";
}

var boxThreeNewLocked = document.querySelectorAll(".subject.lockedbg2.topicnew");
for (var q = 0; q < boxThreeNewLocked.length; q++) {
    boxThreeNewLocked[q].style.backgroundColor = "#553333";
}

var boxFourNewLocked = document.querySelectorAll(".stats.lockedbg.topicnew");
for (var r = 0; r < boxFourNewLocked.length; r++) {
    boxFourNewLocked[r].style.backgroundColor = "#552222";
}

var boxFiveNewLocked = document.querySelectorAll(".lastpost.windowbg2.topicnew");
for (var s = 0; s < boxFiveNewLocked.length; s++) {
    boxFiveNewLocked[s].style.backgroundColor = "#553333";
}

Version: 1.0
« Last Edit: May 09, 2019, 11:34 am by Plam3n »
 

Offline william2001

  • Leader of the Cult of Apep. Please make sure to get your instructional video on the way out. Don't listen to the strange voice in your head. Thanks.
  • Soldier
  • Launcher
  • ****
  • Posts: 1,658
  • Karma: +2/-0
  • "There is no fiction." -Neville Goddard | YTMND will forever be greater than Vine OR TikTok combined. Never forget.
    • View Profile
Re: My Addon Scripts (1) (Tampermonkey Requried)
« Reply #1 on: May 10, 2019, 06:52 pm »
I LOVE U I LOVE U I LOVE U I LOVE U I LOVE U I LOVE U I LOVE U I LOVE U I LOVE U I LOVE U I LOVE U I LOVE U I LOVE U I LOVE U I LOVE U I LOVE U I LOVE U I LOVE U I LOVE U I LOVE U I LOVE U I LOVE U I LOVE U I LOVE U I LOVE U I LOVE U