GithubHelp home page GithubHelp logo

noodlebox / betterdiscord-plugins Goto Github PK

View Code? Open in Web Editor NEW
87.0 87.0 125.0 138 KB

Assorted small plugins for BetterDiscord

License: MIT License

JavaScript 100.00%
avatars betterdiscord discord emotes kawaii plugins tags

betterdiscord-plugins's People

Contributors

inve1951 avatar modder4869 avatar mongogamer avatar noodlebox avatar sainan avatar shinji257 avatar yentis avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

betterdiscord-plugins's Issues

Owner tag not working

Owner tag seems to have quit working, I am unable to get it to pop up the owner tag.

AutoPlayGifs: Mixing up replace & combine modes

. . . even when the gif itself is a set to one or t'other. Result is a sea of dead pixels, or all previous frames showing through transparency. I added a couple examples of images with reversed roles, Chief is a spam of black pixels, and Cirno all frames combine. They work fine outside of discord, or with plugin disabled.

halo
chiruno

Mark All Read: Handles network issues poorly

Servers are not immediately cleared of the "unread" status. This is delayed until the response to a successful ack. Until received, the plugin will naively repeat its attempt to process a server, indefinitely in the case of an outage.

Should detect and handle failure if possible, or at least maintain enough state information to avoid repeat processing of servers. This would also prevent endless processing in the case of multiple servers that become unread again during processing.

KawaiiEmotes broken with July 20 update

KawaiiEmotes has stopped working with this new update. I have located one of the issues - they changed classes of the .channel-textarea divs (for me it always includes a class of .channelTextAreaEnabled-c05Zpy). I fixed that for me locally, but still two issues remain:

  • The completion window is largely unstyled and placed below the textarea, not above it.
  • Completion doesn't correctly update the value for some reason. How to replicate: Type Kurisu, choose one of the completions, immediately hit enter. Kurisu gets printed, not the Emote. I tried my best but couldn't locate the source of this issue.

It'd be awesome if you could update the plugin so it works again, thank you.

owner tags not loading

not sure if this helps

`Last login: Sat Oct 7 07:32:23 on ttys000
Tims-MacBook-Air:~ maefarris$ /Applications/Discord\ PTB.app/Contents/MacOS/Discord\ PTB
DiscordPtb 0.0.31
[Modules] Modules initializing
[Modules] Distribution: remote
[Modules] Host updates: enabled
[Modules] Module updates: enabled
[Modules] Install path: /Users/maefarris/Library/Application Support/discordptb/0.0.31/modules
2017-10-07 09:56:19.193 Discord PTB[47098:7756901] *** WARNING: Textured window <AtomNSWindow: 0x7fb7dfcbce20> is getting an implicitly transparent titlebar. This will break when linking against newer SDKs. Use NSWindow's -titlebarAppearsTransparent=YES instead.
[Modules] No updates to install
[Modules] Checking for host updates.
[Modules] Host is up to date.
[Modules] Checking for module updates at https://discordapp.com/api/modules/ptb/versions.json
[Modules] No module updates available.
[BetterDiscord INF] Hooking dom-ready
[BetterDiscord INF] Checking data/cache
[BetterDiscord INF] Using repository: Jiiks and branch: master
[BetterDiscord INF] Getting latest hash
[BetterDiscord INF] Downloading Resource: api.github.com/repos/Jiiks/BetterDiscordApp/commits/master
[Modules] Checking for host updates.
[BetterDiscord INF] Hooked dom-ready
[Modules] Host is up to date.
[Modules] Checking for module updates at https://discordapp.com/api/modules/ptb/versions.json
[Modules] No module updates available.
[BetterDiscord INF] Hash: 9ab77a8217ef2d3ef648f4cef9f9eeaa9c571a86
[BetterDiscord INF] Getting updater
[BetterDiscord INF] Downloading Resource: raw.githubusercontent.com/Jiiks/BetterDiscordApp/9ab77a8217ef2d3ef648f4cef9f9eeaa9c571a86/data/updater.json
[BetterDiscord INF] Latest Version: 0.2.7
[BetterDiscord INF] Using CDN: cdn.rawgit.com
[BetterDiscord INF] Updating ext data
[BetterDiscord INF] Loading
[BetterDiscord INF] Hooking ipc async
[BetterDiscord INF] Hooked ipc async
[BetterDiscord INF] Loading Resource (jQuery)
[BetterDiscord INF] Invalid plugin detected: .DS_Store
[BetterDiscord INF] Loading plugin: p_1lib_discord_internals
[BetterDiscord INF] Loading plugin: autoGif
[BetterDiscord INF] Loading plugin: BetterFormatting
[BetterDiscord INF] Loading plugin: BlurNSFW
[BetterDiscord INF] Invalid plugin detected: CreationDate.config.json
[BetterDiscord INF] Invalid plugin detected: CustomNotifications.config.json
[BetterDiscord INF] Loading plugin: ownerTag
[BetterDiscord INF] Invalid plugin detected: Quicksave.config.json
[BetterDiscord INF] Loading plugin: Quicksave
[BetterDiscord INF] Loading plugin: betaPlugin
[BetterDiscord INF] Loading plugin: charCounter
[BetterDiscord INF] Loading plugin: dblClickEdit
[BetterDiscord INF] Loading plugin: directDownload
[BetterDiscord INF] Loading plugin: evenBetterRepo
[BetterDiscord INF] Loading plugin: p_full_offline_list
[BetterDiscord INF] Invalid plugin detected: hideServers.config.json
[BetterDiscord INF] Loading plugin: hideServers
[BetterDiscord INF] Invalid plugin detected: link-stub.md
[BetterDiscord INF] Loading plugin: linkProfilePicture
[BetterDiscord INF] Invalid plugin detected: quoter.config.json
[BetterDiscord INF] Loading plugin: p_quoter
[BetterDiscord INF] Invalid plugin detected: restartNoMore.config.json
[BetterDiscord INF] Loading plugin: restartNoMore
[BetterDiscord INF] Loading plugin: transparency_patcher
[BetterDiscord INF] Loading plugin: typingSoundPlugin
[BetterDiscord INF] Loading plugin: unshortenLinks
[BetterDiscord INF] Invalid theme detected .DS_Store
[BetterDiscord INF] Loading theme: Chat_Text_Bubbles
[BetterDiscord INF] Loading theme: Chat_Text_Bubbles_Minified
[BetterDiscord INF] Loading theme: IOS_switches
[BetterDiscord INF] Loading theme: Mutual_Servers_Server_Count
[BetterDiscord INF] Loading theme: Transparency
[BetterDiscord INF] Loading theme: Full_Dark
[BetterDiscord INF] Invalid theme detected fulldark.theme.css.txt
[BetterDiscord INF] Loading theme: Modal-anim-8
[BetterDiscord INF] Loading Resource (jQueryCookie)
[BetterDiscord INF] Loading Resource (Main CSS)
[BetterDiscord INF] Loading Resource (Main JS)
[BetterDiscord INF] Loading Resource (Twitch Global Emotedata)
[BetterDiscord INF] Reading Twitch Global Emotedata from file
[BetterDiscord INF] Validating Twitch Global Emotedata
[BetterDiscord WRN] Twitch Global Emotedata is invalid
[BetterDiscord INF] Deleting cached file Twitch Global Emotedata
[BetterDiscord INF] Loading Resource (Twitch Global Emotedata)
[BetterDiscord INF] Downloading Resource: twitchemotes.com/api_cache/v2/global.json
[BetterDiscord INF] Parsing: Twitch Global Emotedata
[BetterDiscord INF] Saving resource to file Twitch Global Emotedata
[BetterDiscord INF] Loading Resource (Twitch Subscriber Emotedata)
[BetterDiscord INF] Reading Twitch Subscriber Emotedata from file
[BetterDiscord INF] Validating Twitch Subscriber Emotedata
[BetterDiscord INF] Twitch Subscriber Emotedata is valid
[BetterDiscord INF] Loading Resource (FrankerFaceZ Emotedata)
[BetterDiscord INF] Reading FrankerFaceZ Emotedata from file
[BetterDiscord INF] Validating FrankerFaceZ Emotedata
[BetterDiscord INF] FrankerFaceZ Emotedata is valid
[BetterDiscord INF] Loading Resource (BTTV Emotedata)
[BetterDiscord INF] Reading BTTV Emotedata from file
[BetterDiscord INF] Validating BTTV Emotedata
[BetterDiscord INF] BTTV Emotedata is valid
[BetterDiscord INF] Loading Resource (BTTV Emotedata)
[BetterDiscord INF] Reading BTTV Emotedata from file
[BetterDiscord INF] Validating BTTV Emotedata
[BetterDiscord INF] BTTV Emotedata is valid
[BetterDiscord INF] Starting Up

`

ReactJS update breaks plugins that depend on getOwnerInstance

Discord is now using a newer version of ReactJS, which rearranges some internals slightly. This breaks OwnerTag and AutoPlayGifs (animated avatars only). This also breaks the pre-2.0 version of StaticAvatars, but the latest version is unaffected.

[LineNumbers] $.extend is not a function

 TypeError: $.extend is not a function
    at localSettings (<anonymous>:259:22)
    at lineNumbers.start (<anonymous>:211:20)
    at Object.startPlugin (<anonymous>:4:230175)
    at Object.startAddon (<anonymous>:4:229970)
    at Object.enableAddon (<anonymous>:4:192209)
    at Object.toggleAddon (<anonymous>:4:192452)
    at Object.togglePlugin (<anonymous>:4:228076)
    at ot.onChange (<anonymous>:4:203966)
    at Ge.onChange (<anonymous>:4:198178)
    at Object.E (2c642b44e59d54018b37.js:2)
    at I (2c642b44e59d54018b37.js:2)
    at 2c642b44e59d54018b37.js:2
    at y (2c642b44e59d54018b37.js:2)
    at C (2c642b44e59d54018b37.js:2)
    at Array.forEach (<anonymous>)
    at R (2c642b44e59d54018b37.js:2)
    at L (2c642b44e59d54018b37.js:2)
    at yn (2c642b44e59d54018b37.js:2)
    at ce (2c642b44e59d54018b37.js:2)
    at Dn (2c642b44e59d54018b37.js:2)
    at Mn (2c642b44e59d54018b37.js:2)
    at Pn (2c642b44e59d54018b37.js:2)
    at t.unstable_runWithPriority (2c642b44e59d54018b37.js:2)
    at zi (2c642b44e59d54018b37.js:2)
    at fu (2c642b44e59d54018b37.js:2)
    at Cn (2c642b44e59d54018b37.js:2)
    at HTMLDocument.r (e7b7db3d23214310c8f8.js:2)
    at <anonymous>:1:82
    at NodeList.forEach (<anonymous>)
    at <anonymous>:1:65

Thanks

KawaiiEmotes: Completion Box Broke

Seems to have just broke in the latest Discord update [July 20, 2017]. They gave the textarea a 'facelift' and seemed to broke something, tried tweaking with it but failed.

Use something other than localStorage

localStorage is no longer available for storing persistent settings.

  • handle the non-existence of localStorage
  • decide on an alternative, consistent with BD

SilentTyping.plugin.js for the other Users

Hello and thank u for the nice plugin,

for me its a stress factor when I see that several people are writing. I would appreciate it if you develop a plugin or expand this plugin and introduce the function that I no longer have to see it. That will be very nice

Thank u!

AutoPlayGifs: Animate avatars everywhere

Add an option to animate avatars in places they normally aren't animated:

  • Member list
  • DM List
  • Account info
  • Others?

Probably easiest to just monkey patch avatar rendering method.

Owner Tag

Owner Tag is just broke, plz update

OwnerTag: color is that of previous server when Ctrl-Tab used

The owner tag color of a user matches the role color in the previously switched-to server, instead of the current server.

Repro steps:

  1. Be in two servers where a user has different role colors in each of the two servers, or has a role color in one server but no role in the other
  2. Switch to a server of which user is not the owner ("server A")
  3. Switch to a server of which user is the owner ("server B")
  4. Owner tag has color that role of the user has in server A

Video of me switching from server A to server B, and then to a server where the user is not a member, and back to server B:
https://streamable.com/b3fcm

Settings Panel styling broken

The panels for KawaiiEmotes and LineNumbers are functional (now requires a plain element instead of a jQuery object), but they need to be updated to fit the new look of Discord's settings menu and BD's reorganized plugin settings.

Silent typing broken?

I assume the objective is to not broadcast the "user is typing" message to everyone else as you're typing. I tested the results with a friend, and it is not accomplishing this objective currently, AFAICT.

LineNumbers - Doesn't copy blank lines properly

Issue:
Line Numbers plugin is not copying blank lines correctly

Expected result:
When copied a code, blank lines should stay

Actual result:
Blank lines are not copied

Steps to reproduce:

  1. Paste a code with plugin enabled.
  2. The code must have a blank line
  3. Copy the code to the clipboard
  4. Notice the blank lines were not copied, but instead were removed completely

Screenshots:
With the plugin enabled:
imagem
Blank lines were not copied

Without the plugin enabled:
imagem
Blank lines were copied

KawaiiEmotes: Avoid resampling Twitch-size (28x28) emotes

Related: noodlebox/KawaiiDiscord#11

For default-sized emoji, this CSS fixes the issue:

.emoji.jumboable {
    object-fit: scale-down;
}

For larger emoji, use transform: scale() instead of width and height:

.emoji.jumboable {
    object-fit: scale-down;
    image-rendering: pixelated;
    transform: scale(2);
    margin: 16px calc(.05em + 16px) 16px calc(.1em + 16px) !important;
}
.compact .emoji.jumboable {
    transform: none;
    margin: 0 .05em 0 .1em !important;
}

Silent Typing: Apply only to specific channels

sorry I made a new issue I don't know how to contact you personally but I was looking to make a option to keep silent typing off for whitelisted users so that only some people will know that I am typing
same for servers? maybe just a thought I had because one person I know really hates when it is off and I always want my typing off

KawaiiEmotes: implement emote set override modifiers

Implement :bttv modifier for parity with BetterDiscord's default implementation, but do so more generically to allow for overrides by any emote set.

  • :twitch - Twitch emotes (global + subscriber)
  • :twitchsub - Twitch subscriber emotes (skip global emotes)
  • :ffz - FrankerFaceZ emotes (global + shared)
  • :bttv - FrankerFaceZ emotes (global + shared)

Should automatically add modifiers (when necessary) to tab-completion choices.

Silent Typing Error

It was working fine last night and then when I launched Discord i had gotten this ? This is after replacing the .js with the new one posted here a few hours ago.

image

FIX OWNER TAGS

Fix owner tags or i'll do it myself

i'm kidding I don't know shit about coding or anything but plleaaasseee fix it ;-;

flips table and walks away

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.