This commit is contained in:
MoltenCoreDev 2021-02-28 20:57:53 +01:00
commit f161566a89
5 changed files with 71 additions and 0 deletions

14
LICENSE* Normal file
View File

@ -0,0 +1,14 @@
The Killing License
Copyright 2021 moltncore
You may NOT do the following:
Use this copy
sell this copy
copy this copy
modify this copy
look at this copy
think of the copy
have the copy.
if your reading this you have thought, used, and looked at the copy, you have broken 3 rules
you will be killed.

BIN
amogus.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

30
index.js Normal file
View File

@ -0,0 +1,30 @@
import { Plugin } from '@vizality/entities';
import { getModule } from "@vizality/webpack";
import { patch, unpatch } from "@vizality/patcher"
export default class amogus extends Plugin {
start () {
const Message = getModule(m => m.type && m.type.displayName === 'MessageContent')
console.log(Message)
patch('amoguspng', Message, 'type', (args, res) => {
const img = document.getElementsByTagName("img")
for (let i = 0; i < img.length; i++) {
const element = img[i];
element.setAttribute("src", "https://cdn.discordapp.com/attachments/735710639410118817/815652065749368883/amogus.png")
}
const video = document.getElementsByTagName("video")
for (let i = 0; i < video.length; i++) {
const element = video[i];
element.setAttribute("src", "https://cdn.discordapp.com/attachments/773508852247035915/812451604346830868/when_IMPORSTOR1.mp4")
}
console.log(img)
res.props.children[0] = "amogus"
return res;
})
}
stop () {
unpatch('amoguspng')
}
}

19
legalstuff Normal file
View File

@ -0,0 +1,19 @@
Copyright (c) 2021 moltncore
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

8
manifest.json Normal file
View File

@ -0,0 +1,8 @@
{
"name": "amogus",
"version": "2.0.0",
"description": "amogus",
"author": "MoltenCoreDev",
"license": "mit"
}