Added anime image search by color
This commit is contained in:
@ -163,6 +163,7 @@ export class AnimeNotifier {
|
||||
Promise.resolve().then(() => this.assignActions()),
|
||||
Promise.resolve().then(() => this.updatePushUI()),
|
||||
Promise.resolve().then(() => this.dragAndDrop()),
|
||||
Promise.resolve().then(() => this.colorStripes()),
|
||||
Promise.resolve().then(() => this.countUp())
|
||||
])
|
||||
|
||||
@ -346,6 +347,18 @@ export class AnimeNotifier {
|
||||
}
|
||||
}
|
||||
|
||||
colorStripes() {
|
||||
if(!this.app.currentPath.includes("/explore/color/")) {
|
||||
return
|
||||
}
|
||||
|
||||
for(let element of findAll("color-stripe")) {
|
||||
Diff.mutations.queue(() => {
|
||||
element.style.backgroundColor = element.dataset.color
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
countUp() {
|
||||
if(!this.app.currentPath.includes("/paypal/success")) {
|
||||
return
|
||||
|
Reference in New Issue
Block a user