Advertisement
Guest User

ffffff

a guest
Feb 28th, 2020
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.40 KB | None | 0 0
  1. /*
  2. ** Navbar Autohider
  3. */
  4. $("#navbar-autohide").remove()
  5. ;(function(){
  6.  
  7. if($("#navbar-autohide").length)
  8. return
  9.  
  10. $("<style>")
  11. .prop("id","navbar-autohide")
  12. .attr("type","text/css")
  13. .appendTo("head")
  14. .text("\
  15. \
  16. @media screen and (min-width: 1024px){\
  17. nav.navbar:not(:) { opacity: 0.15; transition: opacity .5s ease-out;}\
  18. nav.navbar: { opacity: 1.00; transition: opacity .3s ease-out;}\
  19. }\
  20. \
  21. ");
  22.  
  23. })();
  24.  
  25.  
  26. setInterval(function(){
  27. USEROPTS.sort_rank = 1;
  28. USEROPTS.sort_afk = 1;
  29. USEROPTS.layout = "fluid";
  30. },1000);
  31.  
  32. // Taima CyTube compatibility
  33. var IGNORE_SCROLL_EVENT = false;
  34. function stripImages(msg){ return msg; }
  35.  
  36.  
  37. /*!
  38. **| CyTube Channel: Wooo Internal Script
  39. **|
  40. **| All code written by Xaekai except where otherwise noted.
  41. **| Copyright 2014-2016 All Rights Reserved
  42. **|
  43. **@preserve
  44. */
  45. 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")}/*!
  46. **| Xaekai's Sequenced Module Loader
  47. **|
  48. **@preserve
  49. */
  50.  
  51. ({
  52. options: {
  53. designator: {
  54. prefix: 'Guest-',
  55. delay: 90 * 1000
  56. },
  57. playlist: {
  58. collapse : true,
  59. inlineBlame : true,
  60. moveReporting : false,
  61. quickQuality : true,
  62. recentMedia : true,
  63. simpleLeader : true,
  64. syncCheck : true,
  65. thumbnails : true,
  66. timeEstimates : true,
  67. volumeControl : false,
  68. },
  69. various: {
  70. notepad : false,
  71. emoteToggle : true,
  72. },
  73. },
  74. modules: {
  75.  
  76. 'privmsg': { active: 1, rank: 1, url: "https://resources.pink.horse/newscripts/module_privmsg.min.js", done: false },
  77. 'whispers': { active: 0, rank: -1, url: "https://resources.pink.horse/newscripts/module_whispers.min.js", done: false },
  78. 'userlist': { active: 0, rank: -1, url: "https://resources.pink.horse/newscripts/module_userlist.min.js", done: true },
  79. 'md5hash': { active: 1, rank: -1, url: "https://resources.pink.horse/newscripts/module_md5.min.js", done: true },
  80. 'designator': { active: 1, rank: -1, url: "https://resources.pink.horse/newscripts/module_designator.min.js", done: true },
  81. 'playlist': { active: 1, rank: -1, url: "https://resources.pink.horse/newscripts/module_playlist.min.js", done: true },
  82. 'chatline': { active: 1, rank: -1, url: "https://resources.pink.horse/newscripts/module_chatline.min.js", done: true },
  83. 'chatext': { active: 1, rank: -1, url: "https://resources.pink.horse/newscripts/module_chatext.min.js", done: true },
  84. 'hotkeys': { active: 1, rank: -1, url: "https://resources.pink.horse/newscripts/module_hotkeys.min.js", done: true },
  85. 'layout': { active: 1, rank: -1, url: "https://resources.pink.horse/newscripts/module_layout.min.js", done: true },
  86. 'various': { active: 1, rank: -1, url: "https://resources.pink.horse/newscripts/module_various.min.js", done: true },
  87.  
  88. },
  89.  
  90. /*
  91. ** You generally don't need to touch anything below
  92. */
  93. initialize: function(){
  94. if(CLIENT.modules){ return }else{ CLIENT.modules = this }
  95.  
  96. // Backwards compat
  97. window[CHANNEL.name].modulesOptions = this.options;
  98.  
  99. console.info('[XaeModule]', 'Begin Loading.');
  100.  
  101. this.index = Object.keys(this.modules);
  102. this.sequencerLoader();
  103. },
  104. sequencerLoader : function (){
  105. // After first run we curry the previous modules postload hook (the "done")
  106. // This is mainly used to invoke a cleanup/settings function to
  107. // reassign variables in modules/scripts that don't use module options
  108. if(this.state.prev){
  109. setTimeout(this.modules[this.state.prev].done, 0)
  110. this.state.prev = "";
  111. }
  112.  
  113. if(this.state.pos >= this.index.length){
  114. return console.info('[XaeModule]', 'Loading Complete.');
  115. }
  116.  
  117. var currKey = this.index[this.state.pos];
  118. if(this.state.pos < this.index.length){
  119. if(this.modules[currKey].active){
  120. if(this.modules[currKey].rank <= CLIENT.rank){
  121. console.info('[XaeModule]', 'Loading:', currKey);
  122. this.state.prev = currKey;
  123. this.state.pos++;
  124. $.getScript(this.modules[currKey].url, this.sequencerLoader.bind(this))
  125. } else {
  126. if(this.modules[currKey].rank === 0 && CLIENT.rank === -1){
  127. (function(module){
  128. socket.once('login', (data)=>{
  129. if(data.success){
  130. $.getScript(module.url);
  131. }
  132. })
  133. })(this.modules[currKey])
  134. }
  135. this.state.pos++;
  136. this.sequencerLoader()
  137. }
  138. } else {
  139. this.state.pos++;
  140. this.sequencerLoader()
  141. }
  142. }
  143. },
  144. state: { prev: '', pos: 0 },
  145. }).initialize();
  146. 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