listing-facebook/auto-listing-facebook-marke...
Admin 481bab8c17 update 2025-08-12 15:46:07 +07:00
..
auto-listing-facebook-marketplace update 2025-08-12 15:46:07 +07:00
public first commit 2025-08-12 11:02:05 +07:00
src update 2025-08-12 15:46:07 +07:00
.gitignore first commit 2025-08-12 11:02:05 +07:00
README.md first commit 2025-08-12 11:02:05 +07:00
components.json first commit 2025-08-12 11:02:05 +07:00
eslint.config.js first commit 2025-08-12 11:02:05 +07:00
index.html first commit 2025-08-12 11:02:05 +07:00
package-lock.json first commit 2025-08-12 11:02:05 +07:00
package.json first commit 2025-08-12 11:02:05 +07:00
tsconfig.app.json first commit 2025-08-12 11:02:05 +07:00
tsconfig.json first commit 2025-08-12 11:02:05 +07:00
tsconfig.node.json first commit 2025-08-12 11:02:05 +07:00
vite.config.ts first commit 2025-08-12 11:02:05 +07:00

README.md

function rightClickElementById(id) { const element = document.getElementById(id); if (!element) { console.error("Element not found:", id); return; }

const event = new MouseEvent("contextmenu", { bubbles: true, cancelable: true, view: window, button: 2, // Chuột phải buttons: 2, clientX: element.getBoundingClientRect().left, clientY: element.getBoundingClientRect().top });

element.dispatchEvent(event); }