Skip to content

Instantly share code, notes, and snippets.

@JohnRipper
Last active June 10, 2023 22:32
Show Gist options
  • Save JohnRipper/a99dfff5e7a2c65532a8b5be227f8e74 to your computer and use it in GitHub Desktop.
Save JohnRipper/a99dfff5e7a2c65532a8b5be227f8e74 to your computer and use it in GitHub Desktop.
swapchatnuserlist
// ==UserScript==
// @name swapchat
// @namespace http://tampermonkey.net/
// @version 0.1
// @description swap chat with userlist.
// @author You
// @match https://stumblechat.com/room/valhalla
// @icon https://www.google.com/s2/favicons?sz=64&domain=stumblechat.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Your code here...
const ele = document.getElementById("room-content");
function swapChat(node1, node2, node3) {
node1.parentNode.replaceChild(node1, node2);
node1.parentNode.insertBefore(node2, node3);
}
swapChat(ele.children[1], ele.children[3],ele.children[2]);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment