Last active
June 10, 2023 22:32
-
-
Save JohnRipper/a99dfff5e7a2c65532a8b5be227f8e74 to your computer and use it in GitHub Desktop.
swapchatnuserlist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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