mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 14:19:56 +02:00
Change Kitsu to MAL
This commit is contained in:
@@ -56,6 +56,19 @@ class Util {
|
||||
return obj;
|
||||
}
|
||||
|
||||
static cleanXML(text) {
|
||||
return text
|
||||
.replace(/<br \/>/g, '')
|
||||
.replace(/'|�?39;/g, '\'')
|
||||
.replace(/—/g, '—')
|
||||
.replace(/–/g, '–')
|
||||
.replace(/"|�?34;/g, '"')
|
||||
.replace(/<|�?60;/g, '<')
|
||||
.replace(/>|�?62;/g, '>')
|
||||
.replace(/&|�?38;/g, '&')
|
||||
.replace(/\[i\]|\[\/i\]/g, '*')
|
||||
}
|
||||
|
||||
static greyscale(ctx, x, y, width, height) {
|
||||
const data = ctx.getImageData(x, y, width, height);
|
||||
for (let i = 0; i < data.data.length; i += 4) {
|
||||
|
||||
Reference in New Issue
Block a user