A lot of changes and reducing the size of index.js
This should have general improvements, some things are half implemented, and still need some work, let me know if y'all see any bugs
This commit is contained in:
parent
21b520f10c
commit
618cbf6167
8 changed files with 221 additions and 137 deletions
|
@ -4,7 +4,7 @@ class cmessage{
|
|||
cmessage.contextmenu.addbutton("Copy raw text",function(){
|
||||
console.log(this)
|
||||
navigator.clipboard.writeText(this.content);
|
||||
})
|
||||
});
|
||||
cmessage.contextmenu.addbutton("Reply",function(div){
|
||||
console.log(this)
|
||||
if(replyingto){
|
||||
|
@ -13,11 +13,15 @@ class cmessage{
|
|||
replyingto=div;
|
||||
console.log(div);
|
||||
replyingto.classList.add("replying");
|
||||
})
|
||||
});
|
||||
cmessage.contextmenu.addbutton("Copy message id",function(){
|
||||
console.log(this)
|
||||
navigator.clipboard.writeText(this.id);
|
||||
})
|
||||
});
|
||||
cmessage.contextmenu.addbutton("Copy user id",function(){
|
||||
console.log(this)
|
||||
navigator.clipboard.writeText(this.author.id);
|
||||
});
|
||||
cmessage.contextmenu.addbutton("Message user",function(){
|
||||
console.log(this)
|
||||
fetch(info.api.toString()+"/v9/users/@me/channels",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue