Bonk.io global chat

Replaces the text at the bottom of the page with an IRC client that allows Bonk.io to have a global chat! You can also use the webpage at https://web.libera.chat/gamja/?nick=Guest#bonkio

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Bonk.io global chat
// @namespace    reactoimpcact
// @version      2024-08-03
// @description  Replaces the text at the bottom of the page with an IRC client that allows Bonk.io to have a global chat! You can also use the webpage at https://web.libera.chat/gamja/?nick=Guest#bonkio
// @author       Reactoimpact
// @match        https://bonk.io/
// @icon         https://www.google.com/s2/favicons?sz=64&domain=bonk.io
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';


    // loads an iframe to the IRC client by librachat thats hosted by Liberachat from https://libera.chat/guides/webchat
    // The channel is made by me (reactoimpact)
    // if you have any questions you can find me on the chat or visit the website version of the webchat https://web.libera.chat/gamja/?nick=Guest#bonkio
    // :)


    // Not that much code tbh
    document
        .getElementById('descriptioncontainer')
        .innerHTML = `<iframe src="https://web.libera.chat/?nick=Guest?#bonkio" style="border:0; width:850px; height:1046px;"></iframe>`;

})();