Skip to content

Title: Add "Copy URL" button to the result card #179

Description

@NaitikVerma6776

Description

After scanning a URL, the result card displays the scanned URL in a monospace box but there's no way to copy it quickly. Users have to manually select the text, which is frustrating for long URLs.

Expected Behaviour

A small copy-to-clipboard button should appear next to the URL in the result card. Clicking it should copy the URL and show a brief "Copied!" confirmation.

Implementation Suggestion

  • Add a copy icon button inside .result-url in the showResult() function in script.js
  • Use the navigator.clipboard.writeText() API to copy
  • Button should match the existing design system (same card border, accent-cyan hover)
  • Show a "Copied!" tooltip or text change for ~2 seconds as feedback
  • No new dependencies needed — pure JS + existing CSS variables

Files to change

  • script.js — update showResult() to inject the copy button into .result-url
  • style.css — add styles for the copy button and copied state

heyy @Mrinalray ,I'd like to work on this issue.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions