Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V5.0.3 #371

Merged
merged 4 commits into from
May 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions deleteDiscordMessages.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name Undiscord
// @description Delete all messages in a Discord channel or DM (Bulk deletion)
// @version 5.0.2
// @version 5.0.3
// @author victornpb
// @homepageURL https://github.com/victornpb/undiscord
// @supportURL https://github.com/victornpb/undiscord/issues
Expand All @@ -17,7 +17,7 @@
(function () {
'use strict';

var version = "5.0.2";
var version = "5.0.3";

var discordStyles = (`
/* undiscord window */
Expand Down Expand Up @@ -304,12 +304,12 @@
right: 10px;
display: flex;
flex-direction: column;
width: 610px;
width:800px;
height: 80vh;
min-width: 610px;
max-width: 100%;
height: 448px;
max-width: 100vw;
min-height: 448px;
max-height: 100%;
max-height: 100vh;
color: var(--text-normal);
border-radius: 4px;
background-color: var(--background-secondary);
Expand Down Expand Up @@ -678,7 +678,6 @@
</div>
<pre id="logArea" class="logarea scroll">
<center>
<div><a href="https://github.com/victornpb/undiscord/discussions/350" target="_blank" style="color: var(--text-brand);">Tell me what you think about this update</a></div>
<div>Star <a href="{{HOME}}" target="_blank">this project</a> on GitHub!</div>
<div><a href="{{HOME}}/discussions" target="_blank">Issues or help</a></div>
</center>
Expand All @@ -692,6 +691,7 @@
</div>
</div>
</div>

`);

/**
Expand Down Expand Up @@ -1399,7 +1399,6 @@ body.undiscord-pick-message.after [id^="message-content-"]:hover::after {

// validate input
if (!authToken) return logger('error', ['Could not detect the authorization token!']) || logger('info', ['Please make sure Undiscord is up to date']);
else if (!authorId) return logger('error', ['You must provide an Author ID!']);
else if (!guildId) return logger('error', ['You must provide a Server ID!']);

for (let i = 0; i < channelIds.length; i++) {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"contributionURL": "https://www.buymeacoffee.com/vitim",
"grant": "none"
},
"version": "5.0.2",
"version": "5.0.3",
"description": "Delete all messages in a Discord channel or DM (Bulk deletion)",
"license": "MIT",
"engines": {
Expand Down
1 change: 0 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,6 @@ async function start() {

// validate input
if (!authToken) return logger('error', ['Could not detect the authorization token!']) || logger('info', ['Please make sure Undiscord is up to date']);
else if (!authorId) return logger('error', ['You must provide an Author ID!']);
else if (!guildId) return logger('error', ['You must provide a Server ID!']);

for (let i = 0; i < channelIds.length; i++) {
Expand Down
8 changes: 4 additions & 4 deletions src/ui/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
right: 10px;
display: flex;
flex-direction: column;
width: 610px;
width:800px;
height: 80vh;
min-width: 610px;
max-width: 100%;
height: 448px;
max-width: 100vw;
min-height: 448px;
max-height: 100%;
max-height: 100vh;
color: var(--text-normal);
border-radius: 4px;
background-color: var(--background-secondary);
Expand Down
3 changes: 1 addition & 2 deletions src/ui/undiscord.html
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ <h3>Undiscord</h3>
</div>
<pre id="logArea" class="logarea scroll">
<center>
<div><a href="https://github.com/victornpb/undiscord/discussions/350" target="_blank" style="color: var(--text-brand);">Tell me what you think about this update</a></div>
<div>Star <a href="{{HOME}}" target="_blank">this project</a> on GitHub!</div>
<div><a href="{{HOME}}/discussions" target="_blank">Issues or help</a></div>
</center>
Expand All @@ -230,4 +229,4 @@ <h3>Undiscord</h3>
</div>
</div>
</div>
</div>
</div>