diff --git a/src/components/display/index.js b/src/components/display/index.js index b511d39..9ef79c1 100644 --- a/src/components/display/index.js +++ b/src/components/display/index.js @@ -58,6 +58,11 @@ module.exports = { br.parentNode.insertBefore(document.createTextNode('['), br); _.element('Sounds', br, 'beforebegin'); br.parentNode.insertBefore(document.createTextNode(']'), br); + } else if (isChanXT) { + // Add a button in the header for 4chan XT. + _.element(` + Sounds + `, document.getElementById('shortcut-settings'), 'beforebegin'); } else if (isChanX) { // Add a button in the header for 4chan X. _.element(` diff --git a/src/globals.js b/src/globals.js index f9077c6..9a44453 100644 --- a/src/globals.js +++ b/src/globals.js @@ -6,6 +6,7 @@ window.ns = 'fcsp'; window.is4chan = location.hostname.includes('4chan.org') || location.hostname.includes('4channel.org'); window.isChanX = document.documentElement && document.documentElement.classList.contains('fourchan-x'); +window.isChanXT = document.documentElement && document.documentElement.classList.contains('fourchan-xt'); window.isOneeChan = document.documentElement && document.documentElement.classList.contains('oneechan'); window.Board = location.pathname.split('/')[1]; window.Thread = (location.href.match(/\/thread\/(\d+)/) || [])[1];