New & Better Way to Stop Odysee Chat Menu from Moving Without Clicking a Bookmark
Hexagod Podcasts
With this new code you won't need to click the bookmark to stop the Odysee chat reply menu from moving (accidentally blocking people). You will need to download Violentmonkey. I checked and Violentmonkey exists for Firefox and Brave, possibly other browsers aswell. It's an official extension with over a million active users and very good reviews. Then you will create a new script and paste the following code into the new script:
// ==UserScript==
// @name Prevent Chat Reply Menu from Moving on odysee.com
// @namespace Violentmonkey Scripts
// @match https://odysee.com/*
// @grant none
// @version 1.0
// @author hexagod_podcasts
// @description 2/22/2024, 12:41:41 PM
// ==/UserScript==
setInterval(() => {
if (document.getElementsByClassName("livestream-comments__wrapper")[0] != null) {
if (document.getElementById('custom-odysee-chat') == null) {
document.getElementsByClassName("livestream-comments__wrapper")[0].addEventListener('click', function(e) {
var he_ycord = e.clientY;
try {
document.getElementById('custom-odysee-chat').remove()
} catch (err) {}
document.getElementsByClassName("chat__header")[0].innerHTML += `<style id="custom-odysee-chat">[data-reach-menu] { top: ${ he_ycord }px !important;}</style>`
})
}
}
}, 3000)
Now simply refresh odysee and the script should be working without the need to click a bookmark on every stream! Any problems just let me know and I'll try to figure it out.
If you wish to use the bookmark route, go to this instruction page: https://odysee.com/@Hexagod:3/Bookmark_Script_to_Stop_the_Odysee_Chat_Reply_Popup_Menu_from_Moving:1
242164483 Bytes