User:Stumblean/common.js: Difference between revisions

Stumblean (talk | contribs)
No edit summary
Tags: Mobile edit Mobile web edit Advanced mobile edit
Stumblean (talk | contribs)
No edit summary
Tags: Mobile edit Mobile web edit Advanced mobile edit
Line 58: Line 58:


   const content = document.createElement("div");
   const content = document.createElement("div");
  // Mass edit button with tooltip
  const massEditBtn = document.createElement("button");
  massEditBtn.textContent = "Mass edit";
  massEditBtn.title = "It allows you to edit any line on any page(s)";
  Object.assign(massEditBtn.style, {
    background: "#555",
    color: "#fff",
    border: "none",
    padding: "5px 10px",
    cursor: "pointer",
    marginBottom: "6px",
    width: "100%",
    textAlign: "left",
  });
  massEditBtn.onclick = () => {
    alert("Mass edit clicked — functionality coming soon!");
  };
  content.appendChild(massEditBtn);
  // Open Explanation button (existing)
   const openBtn = document.createElement("button");
   const openBtn = document.createElement("button");
   openBtn.textContent = "Open Explanation";
   openBtn.textContent = "Open Explanation";
Line 66: Line 87:
     padding: "5px 10px",
     padding: "5px 10px",
     cursor: "pointer",
     cursor: "pointer",
    width: "100%",
    textAlign: "left",
   });
   });
   openBtn.onclick = () => console.log("Open Explanation clicked");
   openBtn.onclick = () => console.log("Open Explanation clicked");
  content.appendChild(openBtn);


  content.appendChild(openBtn);
   menu.appendChild(content);
   menu.appendChild(content);