Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ** Navbar Autohider
- */
- $("#navbar-autohide").remove()
- ;(function(){
- if($("#navbar-autohide").length)
- return
- $("<style>")
- .prop("id","navbar-autohide")
- .attr("type","text/css")
- .appendTo("head")
- .text("\
- \
- @media screen and (min-width: 1024px){\
- nav.navbar:not(:) { opacity: 0.15; transition: opacity .5s ease-out;}\
- nav.navbar: { opacity: 1.00; transition: opacity .3s ease-out;}\
- }\
- \
- ");
- })();
- setInterval(function(){
- USEROPTS.sort_rank = 1;
- USEROPTS.sort_afk = 1;
- USEROPTS.layout = "fluid";
- },1000);
- // Taima CyTube compatibility
- var IGNORE_SCROLL_EVENT = false;
- function stripImages(msg){ return msg; }
- /*!
- **| CyTube Channel: Wooo Internal Script
- **|
- **| All code written by Xaekai except where otherwise noted.
- **| Copyright 2014-2016 All Rights Reserved
- **|
- **@preserve
- */
- if(!this[CHANNEL.name]){this[CHANNEL.name]={}}if(!this[CHANNEL.name].branding){this[CHANNEL.name].branding=$(".navbar-brand").html("").css({"background-image":'url("http://i.imgur.com/y5gydhV.png")',"background-size":"85%","min-width":"56px","background-repeat":"no-repeat","background-position":"center center"})}if(!this[CHANNEL.name].favicon){this[CHANNEL.name].favicon=$("<link/>").prop("id","favicon").attr("rel","shortcut icon").attr("type","image/png").attr("sizes","64x64").attr("href","//i.lensdump.com/i/WE9Pak.png").appendTo("head")}/*!
- **| Xaekai's Sequenced Module Loader
- **|
- **@preserve
- */
- ({
- options: {
- designator: {
- prefix: 'Guest-',
- delay: 90 * 1000
- },
- playlist: {
- collapse : true,
- inlineBlame : true,
- moveReporting : false,
- quickQuality : true,
- recentMedia : true,
- simpleLeader : true,
- syncCheck : true,
- thumbnails : true,
- timeEstimates : true,
- volumeControl : false,
- },
- various: {
- notepad : false,
- emoteToggle : true,
- },
- },
- modules: {
- 'privmsg': { active: 1, rank: 1, url: "https://resources.pink.horse/newscripts/module_privmsg.min.js", done: false },
- 'whispers': { active: 0, rank: -1, url: "https://resources.pink.horse/newscripts/module_whispers.min.js", done: false },
- 'userlist': { active: 0, rank: -1, url: "https://resources.pink.horse/newscripts/module_userlist.min.js", done: true },
- 'md5hash': { active: 1, rank: -1, url: "https://resources.pink.horse/newscripts/module_md5.min.js", done: true },
- 'designator': { active: 1, rank: -1, url: "https://resources.pink.horse/newscripts/module_designator.min.js", done: true },
- 'playlist': { active: 1, rank: -1, url: "https://resources.pink.horse/newscripts/module_playlist.min.js", done: true },
- 'chatline': { active: 1, rank: -1, url: "https://resources.pink.horse/newscripts/module_chatline.min.js", done: true },
- 'chatext': { active: 1, rank: -1, url: "https://resources.pink.horse/newscripts/module_chatext.min.js", done: true },
- 'hotkeys': { active: 1, rank: -1, url: "https://resources.pink.horse/newscripts/module_hotkeys.min.js", done: true },
- 'layout': { active: 1, rank: -1, url: "https://resources.pink.horse/newscripts/module_layout.min.js", done: true },
- 'various': { active: 1, rank: -1, url: "https://resources.pink.horse/newscripts/module_various.min.js", done: true },
- },
- /*
- ** You generally don't need to touch anything below
- */
- initialize: function(){
- if(CLIENT.modules){ return }else{ CLIENT.modules = this }
- // Backwards compat
- window[CHANNEL.name].modulesOptions = this.options;
- console.info('[XaeModule]', 'Begin Loading.');
- this.index = Object.keys(this.modules);
- this.sequencerLoader();
- },
- sequencerLoader : function (){
- // After first run we curry the previous modules postload hook (the "done")
- // This is mainly used to invoke a cleanup/settings function to
- // reassign variables in modules/scripts that don't use module options
- if(this.state.prev){
- setTimeout(this.modules[this.state.prev].done, 0)
- this.state.prev = "";
- }
- if(this.state.pos >= this.index.length){
- return console.info('[XaeModule]', 'Loading Complete.');
- }
- var currKey = this.index[this.state.pos];
- if(this.state.pos < this.index.length){
- if(this.modules[currKey].active){
- if(this.modules[currKey].rank <= CLIENT.rank){
- console.info('[XaeModule]', 'Loading:', currKey);
- this.state.prev = currKey;
- this.state.pos++;
- $.getScript(this.modules[currKey].url, this.sequencerLoader.bind(this))
- } else {
- if(this.modules[currKey].rank === 0 && CLIENT.rank === -1){
- (function(module){
- socket.once('login', (data)=>{
- if(data.success){
- $.getScript(module.url);
- }
- })
- })(this.modules[currKey])
- }
- this.state.pos++;
- this.sequencerLoader()
- }
- } else {
- this.state.pos++;
- this.sequencerLoader()
- }
- }
- },
- state: { prev: '', pos: 0 },
- }).initialize();
- function formatUserlistItem(a){var e={name:a.data("name")||"",rank:a.data("rank"),profile:a.data("profile")||{image:"",text:""},leader:a.data("leader")||!1,icon:a.data("icon")||!1,afk:a.data("afk")||!1},s=$(a.children()[1]);s.removeClass(),s.css("font-style",""),s.addClass(getNameColor(e.rank));var t=e.name.replace(/[^\w-]/g,"\\$");s.addClass("userlist-"+t),a.find(".profile-box").remove(),e.afk?a.addClass("userlist_afk"):a.removeClass("userlist_afk"),a.data("meta")&&a.data("meta").muted?a.addClass("userlist_muted"):a.removeClass("userlist_muted"),a.data("meta")&&a.data("meta").smuted?a.addClass("userlist_smuted"):a.removeClass("userlist_smuted");var o=null;s.mouseenter(function(s){o&&o.remove();var t=s.clientY+5,d=s.clientX;o=$("<div/>").addClass("profile-box linewrap").css("top",t+"px").appendTo(a),e.profile.image&&$("<img/>").addClass("profile-image").attr("src",e.profile.image).appendTo(o),$("<strong/>").text(e.name).appendTo(o);var l=a.data("meta")||{};l.ip&&($("<br/>").appendTo(o),$("<em/>").text(l.ip).appendTo(o)),l.aliases&&($("<br/>").appendTo(o),$("<em/>").text("aliases: "+l.aliases.join(", ")).appendTo(o)),$("<hr/>").css("margin-top","5px").css("margin-bottom","5px").appendTo(o),$("<p/>").text(e.profile.text).appendTo(o),$("body").hasClass("synchtube")&&(d-=o.outerWidth()),o.css("left",d+"px")}),s.mousemove(function(a){var e=a.clientY+5,s=a.clientX;$("body").hasClass("synchtube")&&(s-=o.outerWidth()),o.css("left",s+"px").css("top",e+"px")}),s.mouseleave(function(){o.remove()});var d=a.children()[0];d.innerHTML="",e.leader&&$("<span/>").addClass("glyphicon glyphicon-star-empty").appendTo(d),e.afk&&(s.css("font-style","italic"),$("<span/>").addClass("glyphicon glyphicon-dashboard").appendTo(d)),e.icon&&$("<span/>").addClass("glyphicon "+e.icon).prependTo(d)}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement