mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-02 11:13:56 +08:00
🌴 Sync 2026-09-06 14:11:16
This commit is contained in:
1 parent
813df5818f
commit
bb7d626e94
14 files changed
+164
-33
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