vyneer / dgg-chat-gui-scripts Goto Github PK
View Code? Open in Web Editor NEWsome scripts for d.gg that i made
License: MIT License
some scripts for d.gg that i made
License: MIT License
As you can see in the images, the mentions feature permanently expands and has previous chat messages hidden underneath new ones. The messages go away once you cant scroll up to see them in chat anymore, but its kind of annoying since it would be a useful feature otherwise. Would be nice if I could just close the pinned mention.
Doing this with a regex would be omega slow, but it's possible to just check for "http://" or "https://" or "www." or something. Not a perfect solution, but a decent one NODDERS
Thanks to Stardog for the idea!
Right now, you can /ignore a word and turn on harsh ignore to stop seeing messages with it in chat like "/ignore AOT" to stop seeing "SOY anyone watch the new AOT? SOY". However, you can't do this with something that is more than 1 word like "one piece".
This would be nice to have as it lets you have harsh ignore Off, but still be able to ignore messages with specified phrases.
This might work like the custom alert phrases, a text box where you can enter a comma separated list of phrases to be ignored "one piece, league of legends, dungeons and dragons" and is decoupled from the harsh ignore setting.
Could be a cool feature if when another tab is active and stream goes up, the title of the stream tab declares (live) before the tab name.
I saw a DGG embed, strims.gg/m3u8
, which isn't real.
I believe strims allows generic embeds for any m3u8 filetype stream.
The link looks something like https://strims.gg/m3u8/<some URL to an external m3u8 filetype>
, which if linked in DGG chat adds an embed to https://strims.gg/m3u8
, but without the actual embedded URL at the end.
This 'Bot' flair is not an option under Settings -> Hide Individual Flairs
Here are the options I do see: https://i.imgur.com/bvz8H3R.png
The textarea "keyup" event doesn't trigger when you paste with right click, or when you drag the text into the input box. I think it's better to use the "input" event
- line 824: textarea.addEventListener("keyup", () => {
+ line 824: textarea.addEventListener("input", () => {
I don't know how to use issues/pull requests, sorry if this is not the right place :(
Dunno what impact this will have performance wise, but would be nice to do
(ShawarmaFury's idea PepoComfy)
I'd like the option to add custom alert phrases that only alert/block enter on an exact match.
example:
I want to make sure people don't lose their job because of me so I want to alert on wrong nsfw variations (nsf, nswf, etc.). But if I add nsf and sfw I can't type nsfw anymore at all because my message contains nsf and sfw.
updated to d.gg utils 1.5 and when clicking "source" to open a streams source instead of embedding into dgg it gives a page not found error.
So some people still don't use the utilities and still ask for a link manually and so you have to open twitch/ youtube and copy the link from there to post into dgg with /pe.
I would like to wish to directly copy the d.gg url that already has an embed in it and post it with /pe
EXAMPLE:
This is the d.gg url that I want to post directly into chat with /pe
https://www.destiny.gg/bigscreen#twitch/forsen
so that it will show #twitch/forsen in chat.
~ marcyii
Browser: Firefox Nightly 112.0a1 (2023-02-16) (64-bit)
Userscript version: d.gg utilities 1.7.3
Userscript plugin: Tampermonkey 4.18.1
Today I noticed DGG Utilities wasn't working. It didn't show embeds, the embed button was there however clicking it did nothing. The "d.gg utilities settings" button appeared under settings but clicking it led to a blank popup. I tried a number of things and what eventually led to fixing it was opening the data.sqlite database for destiny.gg and clearing out the saved vyneer settings. So I set my settings up again and upon next refresh, it failed to work again. So instead of clearing the saved settings I switched "vyneer-util.embedChat" to "false" and the script worked again. Did this a few more times to make sure that was it, and yup it being enabled completely screws up the entire script.
When it is screwed up, here are the errors I get in the devtools console:
Uncaught TypeError: can't access property "id", hostInfo is null
isHost moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/userscripts/d.gg utilities.user.js?id=781429b6-002d-4e17-8f18-f45f21352aa4:716
getEmbedChatToggleButtonText moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/userscripts/d.gg utilities.user.js?id=781429b6-002d-4e17-8f18-f45f21352aa4:764
addEmbedChatToggleBtn moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/userscripts/d.gg utilities.user.js?id=781429b6-002d-4e17-8f18-f45f21352aa4:846
injectScript moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/userscripts/d.gg utilities.user.js?id=781429b6-002d-4e17-8f18-f45f21352aa4:892
EventListener.handleEvent*window["__f__le85pupj.31t"]/< moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/userscripts/d.gg utilities.user.js?id=781429b6-002d-4e17-8f18-f45f21352aa4:220
St https://www.destiny.gg/embed/chat?follow=/bigscreen:9
window["__f__le85pupj.31t"]/< moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/userscripts/d.gg utilities.user.js?id=781429b6-002d-4e17-8f18-f45f21352aa4:1
"__f__le85pupj.31t" moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/userscripts/d.gg utilities.user.js?id=781429b6-002d-4e17-8f18-f45f21352aa4:1
St https://www.destiny.gg/embed/chat?follow=/bigscreen:9
n https://www.destiny.gg/embed/chat?follow=/bigscreen:71
<anonymous> https://www.destiny.gg/embed/chat?follow=/bigscreen:72
set https://www.destiny.gg/embed/chat?follow=/bigscreen:81
<anonymous> moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/userscripts/d.gg utilities.user.js?id=781429b6-002d-4e17-8f18-f45f21352aa4:1
eval:716:5
isHost moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/userscripts/d.gg utilities.user.js?id=781429b6-002d-4e17-8f18-f45f21352aa4:716
getEmbedChatToggleButtonText moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/userscripts/d.gg utilities.user.js?id=781429b6-002d-4e17-8f18-f45f21352aa4:764
addEmbedChatToggleBtn moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/userscripts/d.gg utilities.user.js?id=781429b6-002d-4e17-8f18-f45f21352aa4:846
injectScript moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/userscripts/d.gg utilities.user.js?id=781429b6-002d-4e17-8f18-f45f21352aa4:892
(Async: EventListener.handleEvent)
window["__f__le85pupj.31t"]/< moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/userscripts/d.gg utilities.user.js?id=781429b6-002d-4e17-8f18-f45f21352aa4:220
call self-hosted:1497
St https://www.destiny.gg/embed/chat?follow=/bigscreen:9
window["__f__le85pupj.31t"]/< moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/userscripts/d.gg utilities.user.js?id=781429b6-002d-4e17-8f18-f45f21352aa4:1
"__f__le85pupj.31t" moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/userscripts/d.gg utilities.user.js?id=781429b6-002d-4e17-8f18-f45f21352aa4:1
call self-hosted:1497
St https://www.destiny.gg/embed/chat?follow=/bigscreen:9
n https://www.destiny.gg/embed/chat?follow=/bigscreen:71
<anonymous> https://www.destiny.gg/embed/chat?follow=/bigscreen:72
set https://www.destiny.gg/embed/chat?follow=/bigscreen:81
<anonymous> moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/userscripts/d.gg utilities.user.js?id=781429b6-002d-4e17-8f18-f45f21352aa4:1
_o moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/content.js:21
O moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/content.js:41
Lo moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/content.js:42
forEach self-hosted:203
call self-hosted:1497
Mt moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/content.js:8
t moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/content.js:9
Lo moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/content.js:38
Ko moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/content.js:54
Go moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/content.js:53
Sn moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/content.js:15
forEach self-hosted:203
call self-hosted:1497
Mt moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/content.js:8
t moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/content.js:9
Sn moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/content.js:15
s moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/content.js:50
apply self-hosted:2871
applySafeWithoutClone resource://gre/modules/ExtensionCommon.jsm:641
applySafeWithoutClone self-hosted:1497
wrapPromise resource://gre/modules/ExtensionCommon.jsm:905
Uncaught ReferenceError: can't access lexical declaration 'DGGMsg' before initialization
embeds moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/userscripts/d.gg utilities.user.js?id=781429b6-002d-4e17-8f18-f45f21352aa4:2473
updateObserver moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/userscripts/d.gg utilities.user.js?id=781429b6-002d-4e17-8f18-f45f21352aa4:373
injectScript moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/userscripts/d.gg utilities.user.js?id=781429b6-002d-4e17-8f18-f45f21352aa4:331
EventListener.handleEvent*window["__f__le85pupj.31t"]/< moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/userscripts/d.gg utilities.user.js?id=781429b6-002d-4e17-8f18-f45f21352aa4:220
St https://www.destiny.gg/embed/chat?follow=/bigscreen:9
window["__f__le85pupj.31t"]/< moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/userscripts/d.gg utilities.user.js?id=781429b6-002d-4e17-8f18-f45f21352aa4:1
"__f__le85pupj.31t" moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/userscripts/d.gg utilities.user.js?id=781429b6-002d-4e17-8f18-f45f21352aa4:1
St https://www.destiny.gg/embed/chat?follow=/bigscreen:9
n https://www.destiny.gg/embed/chat?follow=/bigscreen:71
<anonymous> https://www.destiny.gg/embed/chat?follow=/bigscreen:72
set https://www.destiny.gg/embed/chat?follow=/bigscreen:81
<anonymous> moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/userscripts/d.gg utilities.user.js?id=781429b6-002d-4e17-8f18-f45f21352aa4:1
eval:2473:7
embeds moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/userscripts/d.gg utilities.user.js?id=781429b6-002d-4e17-8f18-f45f21352aa4:2473
updateObserver moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/userscripts/d.gg utilities.user.js?id=781429b6-002d-4e17-8f18-f45f21352aa4:373
(Async: MutationCallback)
injectScript moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/userscripts/d.gg utilities.user.js?id=781429b6-002d-4e17-8f18-f45f21352aa4:331
(Async: EventListener.handleEvent)
window["__f__le85pupj.31t"]/< moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/userscripts/d.gg utilities.user.js?id=781429b6-002d-4e17-8f18-f45f21352aa4:220
call self-hosted:1497
St https://www.destiny.gg/embed/chat?follow=/bigscreen:9
window["__f__le85pupj.31t"]/< moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/userscripts/d.gg utilities.user.js?id=781429b6-002d-4e17-8f18-f45f21352aa4:1
"__f__le85pupj.31t" moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/userscripts/d.gg utilities.user.js?id=781429b6-002d-4e17-8f18-f45f21352aa4:1
call self-hosted:1497
St https://www.destiny.gg/embed/chat?follow=/bigscreen:9
n https://www.destiny.gg/embed/chat?follow=/bigscreen:71
<anonymous> https://www.destiny.gg/embed/chat?follow=/bigscreen:72
set https://www.destiny.gg/embed/chat?follow=/bigscreen:81
<anonymous> moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/userscripts/d.gg utilities.user.js?id=781429b6-002d-4e17-8f18-f45f21352aa4:1
_o moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/content.js:21
O moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/content.js:41
Lo moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/content.js:42
forEach self-hosted:203
call self-hosted:1497
Mt moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/content.js:8
t moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/content.js:9
Lo moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/content.js:38
Ko moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/content.js:54
Go moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/content.js:53
Sn moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/content.js:15
forEach self-hosted:203
call self-hosted:1497
Mt moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/content.js:8
t moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/content.js:9
Sn moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/content.js:15
s moz-extension://a07a54f5-b122-40ec-83be-1a5b47775b5b/content.js:50
apply self-hosted:2871
applySafeWithoutClone resource://gre/modules/ExtensionCommon.jsm:641
applySafeWithoutClone self-hosted:1497
wrapPromise resource://gre/modules/ExtensionCommon.jsm:905
not a perfect solution by any means, but it's better than just showing nothing
Uhhh, yeah, what it says in the title MMMM
Right now d.gg settings push every checkbox change in settings to the d.gg server, including this addon's. Now, as far as I can tell, this doesn't really hurt anything, but it would still be nice to avoid.
I stumbled across what Rumble's oembed URL is and thought I'd share here in case you ever wanted to replace the stream id with the channel name, same as with YT streams.
Rumble's documentation is ass, and I don't think they even give the right root URL for their API or even mention anything about oembed, so this might not be obvious.
https://rumble.com/api/Media/oembed?url=<the Embed IFrame URL>
is the oembed formula.
Hitting the view past embedded links in chat returns no results, even with links posted while chat is loaded up. I'm using:
Version 1.41.100 Chromium: 103.0.5060.134 (Official Build) 64-bit and the latest versions of both this script and violentmonkey.
It would be a useful feature to lookup a YT stream's channel title so that it can be displayed in the top embeds message.
For example, if someone links an embed to NotSoEurodite's stream, it'll look like #youtube/jfKfPfyJRdk
, but I'm proposing something like #youtube/NotSoEurodite
.
I imagine this would require coordination with the backend code to do the actual lookup.
I checked the YouTube API to see if there was an easy enough query to get the title of a YouTube channel from some stream id, and I spun up some quick Python code to test it: see this Gist.
Would just be more convenient.
With the sticky mentions option enabled, in-line whispers should also stick to the top of chat like mentions
YO MOTHA SUCKA. I GOT SLURP AS A MUTED PHRASE, AND WHEN PEOPLE TAG ME WITH SLURP IT DONT SHOW IN CHAT, BUT IT SHOW IN NOTIF.
GAME BREAKING BUG
self explanatory
This is a script I wrote up to use personally in order to switch DGG chat to the YT chat.
Or, if you're embedding something, you can see the twitch or youtube chat of that stream.
https://gist.github.com/mattroseman/31808b0ee6aeecc72a0e9f2156f95333
I copied your method of using tampermonkey, and when you load it, it adds a button between the chat refresh button and the switch sides button in DGG.
IDK if this is anything you'd be interested in adding to this extension, but I thought I'd offer.
Personally, I like the ability to quickly switch over to check out what the not-DGG chat is saying :)
The silly little
Edit: using cloudflare's DNS now, will update if it happens again
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.