Giter Club home page Giter Club logo

dgg-chat-gui-scripts's People

Contributors

cantclosevim avatar finnbechinka avatar mattroseman avatar mitchdev avatar revelsix avatar ryanmcarthur22 avatar voiture-0 avatar vyneer avatar wazup12 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dgg-chat-gui-scripts's Issues

Issue with "Stick recent mentions to top of chat"

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.

Capture
Capture1
Capture2

Add new feature to ignore phrases (with spaces)

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.

Links of streams embedded in strims causes bad link

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.

Pinned mentions that are over multiple lines long overlap

Whenever there are multiple mentions pinned that take up more than one line, the messages overlap and partially merge.

Steps to reproduce:
Step 1. Turn on pinned mention messages feature

Step 2. Say something dumb in chat

Step 3. Look at top of chat

screenshot of issue

Banned phrases doesn't check for paste with mouse right click

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 :(

suggestion: "soft" custom alert phrases

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.

1.5 "source" for embeds not working

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.

Expanding the /pe command

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

Entire script does not work when "Add button to toggle to the currently embedded video's chat" is enabled

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

Make a custom settings menu

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.

Replace Rumble stream ids with titles

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.

Embed Links with Violentmonkey broken on chrome again

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.

Lookup YT Stream's Channel Title

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.

Live pill option issue

Replace a YouTube embed's stream ID with the channel name in the live pill.
Every few minutes the pill flashes the ID instead of the channel name.
vlc_XBvske9i0S
vlc_fOXNRK2cz6

notifications on ignored phrases

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

Chat stops sticking to the bottom

image

^ Possibly due to an embed that has multiple lines being posted. Maybe idk

image

I have to Click "More messages below" every time embed is posted.

Embedded Stream's Chat Feature

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 :)

Can't connect to vyneer.me on first load

The silly little โš ๏ธ appears when I first load into d.gg chat, it usually goes away after 10+ seconds or after refreshing. I have some funky issues with my DNS that sometimes causes pages not to load on first (second, third, or fourth) attempt that I don't know how to solve so it could very well just be that. Here are the errors it logs to the console :)
image

Edit: using cloudflare's DNS now, will update if it happens again

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.