mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-31 05:05:13 +08:00
🗽 Sync 2026-09-06 00:43:47
This commit is contained in:
1 parent
69fee1e981
commit
f99d5bef45
36 files changed
+1138
-237
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