diff --git a/js/main.js b/js/main.js index b870d5f..a9caa66 100644 --- a/js/main.js +++ b/js/main.js @@ -8,7 +8,7 @@ var settingsPanel, emoteModule, utils, quickEmoteMenu, opublicServers, voiceMode, pluginModule, themeModule; -var jsVersion = 1.54; +var jsVersion = 1.55; var supportedVersion = "0.2.3"; var mainObserver; @@ -64,12 +64,17 @@ var defaultCookie = { var bdchangelog = { "changes": { - "favemotes": { - "title": "Favorite Emotes!", - "text": "You can now favorite emotes and have them listed in the quick emote menu!", + "core": { + "title": "Core 0.2.5", + "text": "Core v0.2.5 has been made more universal. Download the latest from https://betterdiscord.net ).", "img": "" }, "plugins": { + "title": "Plugin Settings!", + "text": "Plugins can now add their own settings panel!", + "img": "" + }, + "plugins2": { "title": "Plugins!", "text": "Combined with Core 0.2.3, you can now write JavaScript plugins for Discord!", "img": "" @@ -79,6 +84,11 @@ var bdchangelog = { "text": "New and improved settings menu!", "img": "" }, + "qemotemenu": { + "title": "Quick emote menu!", + "text": "Quick emote menu now closes when you click anywhere else and you can favorite twitch global emotes!", + "img": "" + }, "csseditor": { "title": "New CSS Editor!", "text": "New CSS Editor powered by CodeMirror!", @@ -101,6 +111,11 @@ var bdchangelog = { "text": "Edited messages now display emotes properly!", "img": "" }, + "femotes": { + "title": "Favorite Emotes!", + "test": "Favorite emotes right click now always works!", + "img": "" + }, "pservers": { "title": "Public Servers", "text": "Public servers have been fixed!", @@ -117,21 +132,6 @@ var bdchangelog = { "title": "Ignore User!", "text": "Ignore users you don't like!", "img": "" - }, - "themes": { - "title": "Custom themes!", - "text": "Write your own or download custom themes!", - "img": "" - }, - "favemotes": { - "title": "Favorite emotes!", - "text": "Add your favorite emote(s) to the quick emote menu!", - "img": "" - }, - "more": { - "title": "More Things!", - "text": "More things but probably not in the next version!", - "img": "" } } }; @@ -482,7 +482,9 @@ EmoteModule.prototype.injectEmote = function(node) { if (emotesTwitch.emotes.hasOwnProperty(word)) { var len = Math.round(word.length / 4); - parentInnerHTML = parentInnerHTML.replace(word, '' + word.substr(0, len) + '); + var name = word.substr(0, len) + "\uFDD9" + word.substr(len, len) + "\uFDD9" + word.substr(len * 2, len) + "\uFDD9" + word.substr(len * 3); + var url = twitchEmoteUrlStart + emotesTwitch.emotes[word].image_id + twitchEmoteUrlEnd; + parentInnerHTML = parentInnerHTML.replace(word, '
' + name + '
'); return; } @@ -762,7 +764,6 @@ QuickEmoteMenu.prototype.init = function(reload) { var menuOpen; - emoteBtn = $("
", { id:"twitchcord-button-container", style:"display:none" }).append($("