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
/** Utils to be used in the User-Scripts */ | |
'use strict'; | |
class TmUtils { | |
/** @returns `Promise` which resolves when ``HTMLElement` for selector was found */ | |
async waitForElement(selector, base = document) { | |
return new Promise((resolve) => { | |
if (this.$(selector, base)) { | |
return resolve(this.$(selector)); | |
} |
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
{macro main()} | |
<h1>Hello Instant Aria Templates</h1> | |
{/macro} |