mirror of
https://github.com/caiwx86/small-packages.git
synced 2026-10-31 03:45:13 +08:00
update 2026-09-06 16:17:35
This commit is contained in:
1 parent
35c80a77bc
commit
51ed2622f8
26 files changed
+220
-223
No files matched your search
@@ -47,6 +47,11 @@ function waitForElement(selector, callback) {
|
||||
observer.observe(document.body, { childList: true, subtree: true });
|
||||
}
|
||||
|
||||
function waitForElementId(id, callback) {
|
||||
waitForElement("#" + CSS.escape(id), callback);
|
||||
//waitForElement('[id="' + id + '"]', callback);
|
||||
}
|
||||
|
||||
function get_current_url() {
|
||||
return window.location.origin + window.location.pathname;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user