schoolsmart

smartschool tool

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

You will need to install an extension such as Tampermonkey to install this script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name         schoolsmart
// @author       Potusek & Anpu
// @description  smartschool tool
// @include      https://*.smartschool.be/*
// @exclude      view-source://*
// @exclude      https://*.smartschool.be/index.php?module=Messages&file=composeMessage&*
// @exclude      https://*.smartschool.be/Upload/*
// @exclude      https://wopi2.smartschool.be/*
// @version      1.3.1
// @grant        none
// @copyright    2011+
// @namespace schoolsmart
// ==/UserScript==

(function() {
    'use strict';

    let urll = window.location.href.toString();
    let url2 = urll.indexOf("smartschool.be");
    urll = urll.slice(0,url2-1);
    urll = urll.replace("https://","");
    console.log("link:" + urll);
    let myStorage = window.localStorage;
    if(localStorage.getItem("commus")==null)
    {
        localStorage.setItem("commus","anthem");
    }
    var theme = localStorage.getItem("theme");



    var playing=true;
    var myFunctions = window.myFunctions = {};
    myFunctions.showhide = function ()
    {
        $(".prioriteit").toggle();
        $(".smscMain").toggle();
    };
   let audio = new Audio('https://www.marxists.org/history/ussr/sounds/mp3/soviet-anthem1944.mp3');
    let suka = new Audio('https://www.myinstants.com/media/sounds/untitled_899.mp3');
    let nazisong = new Audio('https://files.fm/u/2b6c8e6g#/view/Nazi+Marching+Song.mp3;play');
    let thunder = new Audio("http://hd1.djring.com/320/482466/Thunder%2B-%2BImagine%2BDragons%20(DJJOhAL.Com).mp3");
    let dubstep = new Audio("http://download2263.mediafire.com/i5haasfme5fg/uzzrv16cdqzlevv/Deadpool+2+soundtrack+-+skrillex+-+bangarang+fight+song+%281%29.mp3");
    let mars = new Audio("https://ia801603.us.archive.org/28/items/SovietMarch/Soviet%20March.mp3");
    $(".hlp-vert-box span:nth-of-type(1)").text("STALINN");
    $(".hlp-vert-box span:nth-of-type(2)").text("made by jonathan dhoop");

    myFunctions.entergame = function ()
    {
        alert("coming soon");
    };
    myFunctions.suka = function ()
    {
        suka.play();
    }
    myFunctions.pauseAll=function()
    {
        audio.pause();
        dubstep.pause();
        thunder.pause();
        mars.pause();

    }
    myFunctions.changemusic = function()
    {
     let song = prompt("geef de youtube link van de muziek aub");
     song = "\""+song+"?autoplay=1\"";
     song = song.replace("watch?v=","embed/");
     localStorage.setItem('youtube', song);
     myFunctions.pauseAll();
     location.reload();

    }
    myFunctions.resetmusic = function(){
        alert("als je terug de normale muziek wil moet je dan op toggle music klikken");
        localStorage.setItem('youtube', null);
        localStorage.setItem("music",true);
    location.reload();
    }

    myFunctions.thunderplay = function()
    {

        localStorage.setItem('theme', 'Thunder');

        myFunctions.pauseAll();
        if(localStorage.getItem("youtube"==null))
           {
           thunder.play();
    }


        if(localStorage.getItem("music") == "false")
        {
            thunder.pause();
        }
        $(".prioriteit").css("top","48px");
        $(".prioriteit").hide();
        $('span[style*="color: red"]').css("color","blue");
        $('img[alt="Profiel afbeelding"]').attr("src","https://images.pexels.com/photos/680940/pexels-photo-680940.jpeg");
        $(".topnav").css("background-color","blue");
        $("#msgdetail").css("background-color","#87CEFA");
        $("body").css("background-image","url('')");
        $("body").css("background-color","#87CEFA");
        $("#homepage__block--administration").css("background-color","#87CEFA");
        $("#folders_parent_td").css("background-color","#87CEFA");
        $("#toolbar").css("background-color","#87CEFA");
        $("#homepage__block--administration").css("background-color","#87CEFA");
        $('.admin').css("background-color","blue");
    }

    myFunctions.complay = function()
    {
        localStorage.setItem('theme', 'Com');
        myFunctions.pauseAll();
        if(localStorage.getItem("music")=="true")
        {
            if(localStorage.getItem("commus")=="anthem")
            {
                if(localStorage.getItem("youtube"==null))
           {
                audio.play();
           }
            }

        }
        else if(localStorage.getItem("commus")=="mars")
        {
            mars.play();
        }
        
        $(".prioriteit").css("top","48px");
        $(".prioriteit").hide();
        $('span[style*="color: red"]').css("color","red");
        $(".topnav").css("background-color","red");
        $('img[alt="Profiel afbeelding"]').attr("src","https://image.ibb.co/eoV6rx/Naamloos_1.png");
        $("body").css("background-color","#FFB7B7");
        $("#homepage__block--administration").css("background-color","#EB7F7F");
        $("body").css("background-image","url('')");
        $("#folders_parent_td").css("background-color","#EB7F7F");
        $("#msgdetail").css("background-color","#FFB7B7");
        $("#toolbar").css("background-color","#EB7F7F");
        $("#homepage__block--administration").css("background-color","#EB7F7F");
        $('.admin').css("background-color","red");
    }
    myFunctions.dubplay = function()
    {
         localStorage.setItem('theme', 'Nazi');


        $(".prioriteit").css("top","48px");
        $(".prioriteit").hide();
        $('img[alt="Profiel afbeelding"]').attr("src","https://images.pexels.com/photos/680940/pexels-photo-680940.jpeg");
        $(".topnav").css("background-color","orange");
        $("#msgdetail").css("background-color","lightblue");
        $('img[alt="Profiel afbeelding"]').attr("src","https://vignette.wikia.nocookie.net/invaderclub/images/1/15/Profile_picture_by_egg_meme-d7ja8cf.jpg/revision/latest?cb=20160705010651");
        $("body").css("background-image","url('http://getwallpapers.com/wallpaper/full/a/b/8/1164051-top-meme-background-pictures-2560x1440-for-windows.jpg')");
        $("#homepage__block--administration").css("background-color","purple");
        $("#folders_parent_td").css("background-color","red");
        $("#toolbar").css("background-color","yellow");
        $("#homepage__block--administration").css("background-color","pink");
        $('.admin').css("background-color","green");
    }
    myFunctions.togglemusic = function ()
    {
        if(playing==true)
        {
            myFunctions.pauseAll();
            playing=false;
            localStorage.setItem("music",false);


        }
        else if(playing==false)
        {
            if(localStorage.getItem("theme")=="Thunder")
            {
               thunder.play()
            }
            else if(localStorage.getItem("theme")=="Com")
            {
                if(localStorage.getItem("commus")=="anthem")
                {
                    audio.play();
                }
                if(localStorage.getItem("commus")=="mars")
                {
                    mars.play();
                }
            }
            playing=true;
            localStorage.setItem("music",true);
        }
        else
        {
            alert("error");
        }
    };
    myFunctions.nickname = function()
    {
        var nickname = prompt("wat wil je als nickname?");
        localStorage.setItem("nickname",nickname);
        $(".hlp-vert-box span:nth-of-type(1)").text(nickname);
        $(".hlp-vert-box span:nth-of-type(2)").text("made by jonathan dhoop");
    }

    let name = localStorage.getItem("nickname");
    $(".hlp-vert-box span:nth-of-type(1)").text(name);
    audio.play();
    $(".topnav").append('<div data-profile class="topnav_btn-wrapper" id="jawohl"></div>');
    let kinda = "\"https://"+urll+".smartschool.be/index.php?module=Agenda\""
    let kinda2 = "\"https://"+urll+".smartschool.be/Grades\""
    $("#jawohl").append('<a href='+kinda+'class="js-btn-home topnav__btn topnav__btn--push-right">Agenda</a>');
    $(".topnav").append('<div data-profile class="topnav_btn-wrapper" id="punten"></div>');
    $("#punten").append('<a href='+kinda2+'class="js-btn-home topnav__btn topnav__btn--push-right">Punten</a>');
    $(".js-btn-notifs").html("<p>themas</p>");
    $(".topnav").append('<div data-profile class="topnav_btn-wrapper js-btn-home topnav__btn" id="grepolis">grepolis</div>');
    $("#grepolis").on("click",myFunctions.showhide);
    //document.createElement("header");
    $("body").append('<iframe src="https://nl0.grepolis.com/start/index" width="100%" height="500%" class="prioriteit"></iframe>');
    $(".prioriteit").css("top","48px");
    $(".prioriteit").hide();

    $(".topnav").css("background-color","red");
    $('img[alt="Profiel afbeelding"]').attr("src","https://image.ibb.co/eoV6rx/Naamloos_1.png");
    $("body").css("background-color","#FFB7B7");
    $("#homepage__block--administration").css("background-color","#EB7F7F");
    
    
    $("#folders_parent_td").css("background-color","#EB7F7F");
    $("#toolbar").css("background-color","#EB7F7F");
    $("#homepage__block--administration").empty();
    $("#homepage__block--administration").append('<div class=admin>enter hidden game</div>');
    $("#homepage__block--administration").append('<div class=admin>toggle music</div>');
    $("#homepage__block--administration").append('<div class=admin>change nickname</div>');
    $("#homepage__block--administration").append('<div class=admin>change music</div>');
    $("#homepage__block--administration").append('<div class=admin>reset music</div>');
    $("#homepage__block--administration").append('<p>deze opties zijn eenmalig en slaan (nog) niet op, als je muziek NIET speelt ga dan naar youtube, klik een video aan en unmute je geluid :)</p>');
    $(".admin:nth-of-type(1)").on("click",myFunctions.entergame);
    $(".admin:nth-of-type(4)").on("click",myFunctions.changemusic);
    $(".admin:nth-of-type(2)").on("click",myFunctions.togglemusic);
    $(".admin:nth-of-type(3)").on("click",myFunctions.nickname);
    $(".admin:nth-of-type(5)").on("click",myFunctions.resetmusic);

    //$(".admin:nth-of-type(5)").on("click",myFunctions.download);
    $('.admin').css("background-color","red");
    $('.admin').css("color","white");
    $('.admin').css("padding","10px");
    $("#homepage__block--administration").css("text-align","center");
    $("#msgdetail").css("background-color","#FFB7B7");
    $(".topnav__menu--notifs").html("");
    $(".topnav__menu--notifs").html("<p id='thunder'>thunder</p><p id='communism'>communisme</p><p id='memes'>memes</p>");
    $("#thunder").on("click", myFunctions.thunderplay);
    $("#communism").on("click", myFunctions.complay);
    $("#memes").on("click", myFunctions.dubplay);
     if(theme=="Thunder")
    {
        myFunctions.thunderplay();
    }
    else if(theme=="Com")
    {
        myFunctions.complay();
    }
    if(theme=="Nazi")
    {
        myFunctions.dubplay();
    }
let linkje= localStorage.getItem("youtube");
    if(linkje==null){

    }
    else{
        myFunctions.pauseAll();
        $('body').append('<iframe width="1" height="1" id="youtube" allow="autoplay" src='+linkje+'></iframe>');
    }
    //jonathan dhoop

})();