Skip to content

Add save button on hover feature is not working on Stack Overflow pages #1

@james-hinton

Description

@james-hinton

Description:
The 'addSaveButtonOnHover' function that is supposed to add a save button when the user hovers over the code block is not working properly on Stack Overflow pages. It seems to be failing silently, and not giving any error messages.

Expected behavior:
When the user hovers over the code block, a save button should be added to allow them to save the code block.

Steps to reproduce:
Navigate to a Stack Overflow page with code blocks
Hover over a code block
The save button should appear, but it doesn't

Potential fix:
The 'addSaveButtonOnHover' function needs to be updated to work properly with Stack Overflow pages. It may require additional code to properly target the correct elements, or to handle any differences in the HTML structure between Stack Overflow and other sites.

Skills required: JavaScript, DOM manipulation, debugging.

Difficulty level: Easy

Code:
https://github.com/james-hinton/code-stash/blob/main/src/pages/Content/utils/utils.js#LL1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions