Observe and wait for elements
這裡顯示腳本的所有版本。 只顯示彼此間有代碼差異的版本。
Increment version, remove global in waitForElement, remove unnecessary bloat in assign function
Return observer in observeAndHandle
Used the wrong namespace name.
Fix mistake in previous update
Since require chains don't work, just put the namespace code inline.
It seems to fail assigning, so I am testing moving getting the namespace.
Actually add namespace dependency.
Breaking changes. Removing tag based search and replacing with selector based search (far more flexible).Using a namespacing library instead of cooking it in each time.
Formatting for additional info
Add parent functionality to waitForElement
Make waitForElement async
Changed waitForElement to use more ergonomic `await` pattern using Promises.
Proper namespacing for window (avoid conflicts if possible)
Add semicolon to end of function (possibly important)
Attaching to window to see if I can actually use the library.
Change observe from const to var
Changed capitalization