-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Code Optimization Now actively polls refreshed tags instead of using delay
- Loading branch information
Showing
3 changed files
with
72 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,12 @@ | ||
class injectUtil { | ||
|
||
class injectUtils { | ||
static TXT2IMG = 0 | ||
static IMG2IMG = 1 | ||
static Modes = ['txt', 'img'] | ||
|
||
static checkTabCount(dicLen, tabLen) { | ||
if (dicLen !== tabLen) console.log('Modifying Tabs is currently not supported. Please Reload UI!') | ||
return dicLen !== tabLen | ||
} | ||
|
||
static getToprows() { return [document.getElementById('txt2img_toprow'), document.getElementById('img2img_toprow')] } | ||
static getContainers() { return [document.getElementById('ez-tag-container-txt'), document.getElementById('ez-tag-container-img')] } | ||
static getTabs(containers) { return [containers[this.TXT2IMG].querySelector('.tab-nav.scroll-hide'), containers[this.IMG2IMG].querySelector('.tab-nav.scroll-hide')] } | ||
static getRefresh() { return [document.getElementById('ez-tag-refresh-txt'), document.getElementById('ez-tag-refresh-img')] } | ||
static getToNeg() { return [document.getElementById('ez-tag-negative-txt'), document.getElementById('ez-tag-negative-img')] } | ||
static getTabNavs(containers) { return [containers[this.TXT2IMG].querySelector('.tab-nav.scroll-hide'), containers[this.IMG2IMG].querySelector('.tab-nav.scroll-hide')] } | ||
static getRefreshs() { return [document.getElementById('ez-tag-refresh-txt'), document.getElementById('ez-tag-refresh-img')] } | ||
static getToNegs() { return [document.getElementById('ez-tag-negative-txt'), document.getElementById('ez-tag-negative-img')] } | ||
static getTabRows(containers) { return [containers[this.TXT2IMG].querySelectorAll('.tabitem'), containers[this.IMG2IMG].querySelectorAll('.tabitem')] } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters