Can I use this await function inside another await function and also how to I return…
Jump to turn (9)
- 1Can I use this await function inside another await function and also how to I re
- 2In this " stash.addEventListener("page:scene", async function() { let sceneId =
- 3This isn't returning true when node has disabled for an attribute. if (node.hasA
- 4could it be because node is a cloned node and it hasn't yet been appended to ano
- 5I got My Stash Rating Stars.user.js:1211 Uncaught TypeError: nodeRemoveButtons.h
- 6in tampermonkey, I'm trying to use gm\addstyles but when I add a class like .cla
- 7so how do I taget .className for :focus, : focus-within & :focus-visible at the
- 8and how do I make sure that when an element is focused that there is no outline
- 9that hasn't removed the outline or border is there another style that could caus
- User
Can I use this await function inside another await function and also how to I return const node so I can use it in another function " await waitForElementClass("rating-stars", async function (className, el) {
const e = document.getElementsByClassName('rating-stars')[1] const node = e.cloneNode(true); })"
- Assistant
Yes, you can use an
awaitfunction inside anotherawaitfunction. However, it's important to note that the outerawaitfunction will not continue executing until the innerawaitfunction has completed.To return the so it can be used in another function, you would simply include a statement before the end of the inner function, like this: