Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Cyan

Pages: [1] 2 3 ... 6
2
General / Easier Featuring for Editors
« on: March 31, 2019, 01:43 pm »
See my other tampermonkey scripts and how to install them here: http://forums.sploder.com/index.php/topic,341981.0.html

Here is the Jquery script for editors to run on their browser that makes featuring much simpler than before:
Code: [Select]
// ==UserScript==
// @name         Cyan's Sploder Addons - [Easier Featuring]
// @require      http://code.jquery.com/jquery-3.3.1.min.js
// @namespace    http://tampermonkey.net/
// @version      0.1.1 - 01/Apr/2019
// @author       Cyan
// @match        http://www.sploder.com/games/*
// ==/UserScript==

if (window.location.href.indexOf(".com/games/members/") > -1) {
    localStorage.CEF_Feature = -1;
    $('body').append('<iframe onload="frameLoaded();" id="adminPage" frameBorder="0" width="0" height="0" src="http://www.sploder.com/games/admin/0/"></iframe>');
    $('div.sharebar').after('<input onclick="localStorage.CEF_Feature=1;setTimeout(function(){location.reload();},150);" type=button value=" Feature this game " style="margin-right:10px"></input> • <input onclick="localStorage.CEF_Feature=0;setTimeout(function(){location.reload();},150);" type=button value=" Unfeature this game " style="margin-left:10px"></input><br><br>');
    localStorage.CEF_gameId = $('param[name=flashvars]').val().split("=")[1];
    localStorage.CEF_gameName = $('div#content > h3:first').text();
    localStorage.CEF_gameUser = $('div#content > h4:first > a').text();
}

if (window.location.href.indexOf(".com/games/admin/") > -1) {
    if (localStorage.CEF_gameId != 0) {
        $('body').find('input[type=checkbox]:first').attr("checked","checked");
        $('body').find('input[name*=game_]:first').attr("name","game_"+localStorage.CEF_gameId);
        $('body').find('input[name*=game_score_]:first').attr("name","game_score_"+localStorage.CEF_gameId);
        $('body').find('input[name*=game_name_]:first').attr("name","game_name_"+localStorage.CEF_gameId).attr("value",localStorage.CEF_gameName);
        $('body').find('input[name*=game_author_]:first').attr("name","game_author_"+localStorage.CEF_gameId).attr("value",localStorage.CEF_gameUser);
        $('body').find('input[name*=game_oldfeatured_]:first').attr("name","game_oldfeatured_"+localStorage.CEF_gameId);
        $('body').find('input[name*=game_oldscore_]:first').attr("name","game_oldscore_"+localStorage.CEF_gameId);
        $('body').find('input[type=checkbox]:first').attr("name","game_"+localStorage.CEF_gameId);
    }
    window.setInterval(function(){
        if(localStorage.CEF_Feature==1){
            $('body').find('input[name*=game_oldfeatured_]:first').attr("value",0);
            $('body').find('input[name*=game_score_]:first').attr("value",1);
            $('input[value*=Feature]').click();
        }
        if(localStorage.CEF_Feature==0){
            $('body').find('input[name*=game_oldfeatured_]:first').attr("value",1);
            $('body').find('input[name*=game_score_]:first').attr("value",0);
            $('input[value*=Feature]').click();
        }
    }, 100);
    localStorage.CEF_gameId = 0;
    localStorage.CEF_gameName = 0;
    localStorage.CEF_gameUser = 0;
    localStorage.CEF_Feature = -1;
}

Here's what the script does:

3
Install Tampermonkey on Chrome: https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en

How to use tampermonkey
Once you have tampermonkey installed on your browser, you'll find the icon to the right of your search bar. Click the icon and select [create new script]. Once you have the script editor open, simply copy and paste the code from this thread and you'll be able to start using the forum addons.



Addons

➤ User Online List - last updated 09/Jan/2019 - v0.1.2
example: https://i.imgur.com/FOfkdcO.png
Code: [Select]
// ==UserScript==
// @name         Cyan's Sploder Forum Addons - [User Online List]
// @require      http://code.jquery.com/jquery-3.3.1.min.js
// @namespace    http://tampermonkey.net/
// @version      0.1.2 - 09/Jan/2019
// @author       Cyan
// @match        http://*.sploder.com/*
// ==/UserScript==


if($("tbody#category_1_boards").length){
    var leftside = "<div class=information><span class=topslice><span></span></span><div class=sp_block style=overflow:hidden;width:150px;padding-top:25px;padding-right:10px;padding-bottom:20px;padding-left:10px><a href=http://forums.sploder.com/index.php?action=who>Users Online</a>:<br><div></div>";
    var usersOnline = [];

    $("div#main_content_section").before("<table><td valign=top class=leftside_td></td><td class=boardindex_td></td></table>");
    $("td.boardindex_td").append($("div#main_content_section"));
    $("td.leftside_td").append(leftside);

    $("#upshrinkHeaderIC p.smalltext a").each(function(){
        usersOnline[usersOnline.length] = $(this).clone();
        $("div.information div.sp_block br:eq(0)").after(usersOnline[usersOnline.length-1]);
    });
    $("div.information div.sp_block br:first").after("<br><span class=listtop>");

    var Guests = $("p.stats a").text().split(" Guests, ");
    var UsersOn = Guests[1].split(" Users");
    UsersOn = UsersOn[0];
    Guests = Guests[0];
    $("div.information div.sp_block:first").prepend("<br>");
    $("div.information div.sp_block div").empty();
    $("div.information div.sp_block div").append("<br><br><span class=OnlineMembers>Members: "+(usersOnline.length)+"</span><br>");
    $("div.information div.sp_block div").append("<span class=OnlineMembers>Guests: "+Guests+"</span><br>");
    $("div.information div.sp_block div").append("<span class=OnlineMembers>Hidden: "+((UsersOn)-(usersOnline.length))+"</span><br><br>");

    var userarray = [];
    $("div.information div.sp_block a").each(function(){
        userarray[parseInt($(this).attr("href").split("=").pop())] = $(this);
    });
    var i = 0;
    for(i=0;i<userarray.length;i++){
        if (userarray[i] != null){
            console.log(userarray[i]);
            $("div.information div.sp_block span.listtop").before("<br>").before("<img style=padding:2px;padding-left:10px; width=24px class=userO src= />").before(userarray[i].attr("class","userlista"));
            $("img.userO:last").attr("src","http://avatars.sploder.com/a/"+userarray[i].text().charAt(0)+"/"+userarray[i].text().charAt(1)+"/"+userarray[i].text()+"_24.png").css("vertical-align","middle").css("margin","2px");
        }
    }




    var avatarlist = {};
    avatarlist = JSON.parse(localStorage.getItem("avatars"));

    if($.isEmptyObject(avatarlist)){
        avatarlist = {};
    }

    if(!$.isEmptyObject(avatarlist)){
        $("div.sp_block a.userlista").each(function(index){
            var boardavatar = $(this).attr("href");
            if(avatarlist[boardavatar] != "blank"){
                $(this).prev().attr("src",avatarlist[boardavatar]).attr("width","24px").attr("height","24px");
            }
        });
    }

    setTimeout(function(){
        $("div.sp_block a.userlista").each(function(index){
            var boardavatar = $(this).attr("href");
            var thisL = $(this).prev();
            console.log(thisL.attr("src"));
            if(!$.isEmptyObject(avatarlist)){
                if(!(boardavatar in avatarlist) || Math.floor(Math.random() * 10) == 9) {
                    $.ajax({
                        url:boardavatar,
                        type:"GET",
                        success: function(data){
                            console.log("random deletion online-list");
                            var new_av = $(data).find("div#basicinfo img.avatar").attr("src");
                            thisL.attr("src",new_av);
                            if (new_av == null){new_av="blank";}
                            avatarlist[boardavatar] = new_av;
                            localStorage.avatars = JSON.stringify(avatarlist);
                        }
                    });
                }
            }else{
                $.ajax({
                    url:boardavatar,
                    type:"GET",
                    success: function(data){
                        var new_av = $(data).find("div#basicinfo img.avatar").attr("src");
                        thisL.attr("src",new_av);
                        if (new_av == null){new_av="blank";}
                        avatarlist[boardavatar] = new_av;
                        localStorage.avatars = JSON.stringify(avatarlist);
                    }
                });
            }
        });
    },500);
}


➤ Topics on Boardindex - last updated 10/Jan/2019 - v0.1.1
example: https://i.imgur.com/Ve600Di.png
Code: [Select]
// ==UserScript==
// @name         Cyan's Sploder Forum Addons - [Topis on Boardindex]
// @require      http://code.jquery.com/jquery-3.3.1.min.js
// @namespace    http://tampermonkey.net/
// @version      0.1.1 - 10/Jan/2019
// @author       Cyan
// @match        http://*.sploder.com/*
// ==/UserScript==


var avatarlist = {};
avatarlist = JSON.parse(localStorage.getItem("avatars"));

if($.isEmptyObject(avatarlist)){
    avatarlist = {};
}

if(!$.isEmptyObject(avatarlist)){
    $("div.sp_block a.userlista").each(function(index){
        var boardavatar = $(this).attr("href");
        if(avatarlist[boardavatar] != "blank"){
            $(this).prev().attr("src",avatarlist[boardavatar]).attr("width","24px").attr("height","24px");
        }
    });
}

function loadavs(){
    if(!$.isEmptyObject(avatarlist)){
        $("table tbody tr td.icon2").each(function(index){
            var boardavatar = $(this).parent().find("td.subject p a").attr("href");
            if(avatarlist[boardavatar] != "blank"){
                $(this).find("img").attr("src",avatarlist[boardavatar]).attr("width","24px").attr("height","24px");
            }
        });
    }
}
loadavs();

function showbody() {
    $("table.subtopics tr").each(function(){
        var username = $(this).find("td.subject div p a:not(.navPages):first");
        var usernameAvatar = "http://avatars.sploder.com/a/" + username.text().substr(0,1) + "/" + username.text().substr(1,1) + "/" + username.text() + "_24.png"
        $(this).find("td.icon2 img").attr("src", usernameAvatar.toLowerCase());
    });

    $("table.subtopics tr").each(function(){
        $(this).find("td.icon2 img").attr("width","24px").attr("height","24px")
        if ( $(this).find("td.subject div a img").length ) {
            if ( $(this).find("td.icon1 img[src*=my]").length ) {
                $(this).find("td").addClass("topicnew");
            }else{
                $(this).find("td").addClass("topicunread");
            }
            $(this).find("td img[alt*=New]").hide();
            var newlinktopic = $(this).find("td.subject div a img[alt=New]").parent().attr("href");
            $(this).find("td.subject div span a").attr("href",newlinktopic);
        }
    });
}


if($("tbody#category_1_boards").length){
    var i = 0;
    $("div.cat_bar").each(function(){
        $(this).addClass("cat_bar_boardindex");
    });
    $("tr[id*=board_].windowbg2").each(function(){
        $(this).addClass("boardheader");
        var boardId = $(this).attr("id").split("_")[1];
        $("body").after("<tr style=display:none; id=placeholder_subtopic_"+boardId+"></tr>");
    });

    $("tr[id*=placeholder_subtopic_]").each(function(){
        var ex_board = {"93":5,"8":5,"239":0,"137":0};
        var thisboard = $(this).attr("id").split("_")[2];
        var Tcount = 10;
        console.log(ex_board["93"]);
        if(ex_board[thisboard]  != undefined){ Tcount = ex_board[thisboard]; }
        if(Tcount > 0){
            $.ajax({
                url:"//forums.sploder.com/index.php?board="+thisboard+".0",
                type:"GET",
                success: function(data){
                    $("#placeholder_subtopic_"+thisboard+":first").html($(data).find("div#messageindex tbody").html());

                    if( $("#placeholder_subtopic_"+thisboard+"").length ) {
                        $( "#placeholder_subtopic_"+thisboard+" tr td:nth-child(1)" ).each(function() {
                            $(this).attr("width", "5%");
                        });
                        $( "#placeholder_subtopic_"+thisboard+" tr td:nth-child(2)" ).each(function() {
                            $(this).attr("width", "5%");
                        });

                        if($("tr#board_"+thisboard+"_children").length){ $("tr#board_"+thisboard+"_children").after("<tr id=subtopic_"+thisboard+"_ class=mainboard><td colspan=4 class=subtopics><div class=topic_table><table class=subtopics cellspacing=0><tbody><tr></tr></tbody></table></div></td></tr>"); }else{
                            $("tr#board_"+thisboard+"").after("<tr id=subtopic_"+thisboard+"_ class=mainboard><td colspan=4 class=subtopics><div class=topic_table><table class=subtopics cellspacing=0><tbody><tr></tr></tbody></table></div></td></tr>");
                        }
                        var content = $("#placeholder_subtopic_"+thisboard+":eq(0):first").html();
                        $("#subtopic_"+thisboard+"_ div table tbody tr").replaceWith(content);

                        $("#placeholder_subtopic_"+thisboard+":first").remove();
                        for (i = 0; i < 40-Tcount; i++) {
                            $("#subtopic_"+thisboard+"_ td div table tbody tr:eq("+Tcount+"):not(.windowbg2):not(.spacer)").remove();
                        }
                        showbody();
                        loadavs();
                    }
                }
            });
        }
    });
}


➤ Easier Featuring - last updated 01/Apr/2019 - v0.1.1
example: https://i.imgur.com/sVoPztW.png
Code: [Select]
// ==UserScript==
// @name         Cyan's Sploder Addons - [Easier Featuring]
// @require      http://code.jquery.com/jquery-3.3.1.min.js
// @namespace    http://tampermonkey.net/
// @version      0.1.1 - 01/Apr/2019
// @author       Cyan
// @match        http://www.sploder.com/games/*
// ==/UserScript==

if (window.location.href.indexOf(".com/games/members/") > -1) {
    localStorage.CEF_Feature = -1;
    $('body').append('<iframe onload="frameLoaded();" id="adminPage" frameBorder="0" width="0" height="0" src="http://www.sploder.com/games/admin/0/"></iframe>');
    $('div.sharebar').after('<input onclick="localStorage.CEF_Feature=1;setTimeout(function(){location.reload();},150);" type=button value=" Feature this game " style="margin-right:10px"></input> • <input onclick="localStorage.CEF_Feature=0;setTimeout(function(){location.reload();},150);" type=button value=" Unfeature this game " style="margin-left:10px"></input><br><br>');
    localStorage.CEF_gameId = $('param[name=flashvars]').val().split("=")[1];
    localStorage.CEF_gameName = $('div#content > h3:first').text();
    localStorage.CEF_gameUser = $('div#content > h4:first > a').text();
}

if (window.location.href.indexOf(".com/games/admin/") > -1) {
    if (localStorage.CEF_gameId != 0) {
        $('body').find('input[type=checkbox]:first').attr("checked","checked");
        $('body').find('input[name*=game_]:first').attr("name","game_"+localStorage.CEF_gameId);
        $('body').find('input[name*=game_score_]:first').attr("name","game_score_"+localStorage.CEF_gameId);
        $('body').find('input[name*=game_name_]:first').attr("name","game_name_"+localStorage.CEF_gameId).attr("value",localStorage.CEF_gameName);
        $('body').find('input[name*=game_author_]:first').attr("name","game_author_"+localStorage.CEF_gameId).attr("value",localStorage.CEF_gameUser);
        $('body').find('input[name*=game_oldfeatured_]:first').attr("name","game_oldfeatured_"+localStorage.CEF_gameId);
        $('body').find('input[name*=game_oldscore_]:first').attr("name","game_oldscore_"+localStorage.CEF_gameId);
        $('body').find('input[type=checkbox]:first').attr("name","game_"+localStorage.CEF_gameId);
    }
    window.setInterval(function(){
        if(localStorage.CEF_Feature==1){
            $('body').find('input[name*=game_oldfeatured_]:first').attr("value",0);
            $('body').find('input[name*=game_score_]:first').attr("value",1);
            $('input[value*=Feature]').click();
        }
        if(localStorage.CEF_Feature==0){
            $('body').find('input[name*=game_oldfeatured_]:first').attr("value",1);
            $('body').find('input[name*=game_score_]:first').attr("value",0);
            $('input[value*=Feature]').click();
        }
    }, 100);
    localStorage.CEF_gameId = 0;
    localStorage.CEF_gameName = 0;
    localStorage.CEF_gameUser = 0;
    localStorage.CEF_Feature = -1;
}

4
Personal Exhibition / Minecraft Server (Abyss Craft) (1.5.2)
« on: June 16, 2013, 05:01 am »
-= Abyss Craft 1.5.2 =-

IP:5.226.171.148

Join Now!

5
Personal Exhibition / My Little Pony (Puzzle Pony)
« on: June 11, 2013, 02:16 pm »

6
Bugs / Physics Creator Bug.
« on: June 09, 2013, 01:37 pm »
It's With the lunch thing. If you have your player or thing that launches of the yoak with all the arrows or the 1 arrow going down(So That it fall) If you launch the player he comes down after really slowly. Is this supposed to happen?

7
List Of Drawings:

Cian009:


Rox:


CrazyKittz:


SploderEpicBros:


Derpy:


Winde:


Odysseus:


Trans:


Duncanb:

8
General / Ask Kermit (Anything)
« on: June 08, 2013, 03:47 pm »

9
General / It's my birthday Tommorw...
« on: June 08, 2013, 11:33 am »

10
General / Wow
« on: June 08, 2013, 06:50 am »
300 friend requests lol.

11
General / I'm Back!
« on: June 04, 2013, 03:38 pm »
^^^

12
General / Post for a free thank :)
« on: June 04, 2013, 02:58 pm »
Yay free thanks  ;D

13
General / If your ever feeling down in life...
« on: June 03, 2013, 02:38 pm »
Remember, You were the faster sperm.

14
General / No Ones on
« on: June 03, 2013, 06:04 am »
^^^ :P

15
General / Anyone know any good minecraft servers?
« on: June 02, 2013, 04:24 pm »
^^^

17
General / Rubiks Cube Solves
« on: May 31, 2013, 04:49 am »
Rubik's Cube Solves

Here I will Post my records and stuff for rubiks cubes.

3x3x3 Rubik's Cube

My PB (Personal-Best) for the 3x3x3 is 48 seconds. My Average out of 5 is 56 seconds. My average out of 7 is 1 minute 6 seconds. My average out of 10 is about 1 minute 13 seconds if i remember correctly.

2x2x2 Rubik's Cube

Believe it or not, I can solve the 3x3x3 faster then i solve the 2x2x2. My PB for the 2x2x2 is 1 minute 16 seconds. This is because I haven't lubricated my 2x2x2 and solving the last layer takes a while.

4x4x4 Rubik's Cube

When i got the 4x4x4 2 years ago I was only able to solve it in max 2 hours. Now after alot of practice I got my time down to around 7 mins PB

5x5x5

I got my 5x5x5 for my birthday last year and still haven't solved it yet     :(

Do you know how to solve a rubik's Cube?

If you do Tell me what your best times are and if you don't thank this post and i will make a video on how to solve any rubik's cube you want me to solve. I will need a few thanks before I make the video though.

_____________________________________________________________________________

18
The Collection Of Advertisements

Post a link to the thread of your creation or advert. I will then put it in one of the lists below. Don't worry if the list for you advert/creation isn't there, It will be added then.

Youtube Channels:


-
-
-


Forums:


-Gamers League
-
-


Other Websites:


-
-
-


Art:


-Tbremise's Sketch book Collection
-
-


_______________

So post if you want to advertise your advertisement :P

Credit To GameKid

20
General / Click This link... (I need 10 people to click it)
« on: May 21, 2013, 12:45 pm »
Please I need you to: http://epicfreeprizes.com/index.php

21
General / I disappear...
« on: May 20, 2013, 05:25 pm »
By :)

22
General / Request For Me To draw something.
« on: May 20, 2013, 03:53 pm »
My Drawings:
Requested By You

This is a list of drawings requested
for me to do by you fellow sploder memebers. Feedback will be
appreciated.


Luffy From One Piece

This is a picture a drew
of luffy from one piece.
Requested By: Jagger




Ghost

This is a picture
I drew of a ghost, "Visable".

Requested By: Dakotagrl



Steve and Creeper

This is a picture i drew of
steve mining diamond but there is
a creeper close behind him :P.

Requested By: FireTrolik



Steve In Lava

This is a picture I drew
of steve in lava :3

Requested By: Him



Chlorede

This is a picture a drew
of chlorede (Real Picture)

Requested By: Chlorede


23
General / My Dog :P
« on: May 20, 2013, 12:58 pm »

24
General / blackhole...
« on: May 19, 2013, 03:12 pm »
your avatar is huge.

25
General / Whats Your Fav Sport?
« on: May 18, 2013, 06:56 am »
Choose one above. For me it would be soccer.

26
RPFG's, Groups, Contests and Forum Games / Friend Or Enemy
« on: May 14, 2013, 04:17 pm »
So pretty simple how it works.
You say either friend or enemy to the person above you.
Start.

27
General / Hitler With IPhone
« on: May 14, 2013, 03:12 pm »

Don't say it was photoshoped, They didn't have photoshop back then.

29
General / does anyone have the link for...
« on: May 12, 2013, 03:52 pm »
the list of youtube channels made by sploder members?

Pages: [1] 2 3 ... 6