Skip to content

SonoTommy/hackerai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

28 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

๐Ÿš€ HackerAI - Link Confirmation

HackerAI Banner

๐Ÿ“Š Project Status

Status Badge
License License
Release Release
Stars Stars
Contributors Contributors
Issues Issues
Pull Requests Pull Requests
Build Status Build Status
Code Size Code Size
Languages Languages
Forks Forks

HackerAI is an open-source Chrome extension designed to improve online security by alerting users before they open potentially harmful links. It provides a lightweight solution to mitigate phishing attacks and suspicious links by prompting users for confirmation before they proceed.


โœ… Key Features

Feature Description
๐Ÿ›‘ Link Confirmation Dialog Displays a confirmation dialog before opening any link, ensuring users are aware of their actions.
๐Ÿ”— Support for Custom Links Handles both standard HTML links (<a> tags) and custom attributes like data-link.
๐Ÿค Beginner-Friendly Designed for non-technical users to add an extra layer of security.
โšก Lightweight and Efficient Minimal performance impact while providing essential protection.
๐ŸŒ Open-Source Fully transparent codebase, open to contributions and community collaboration.

๐Ÿ› ๏ธ Installation

Follow these steps to install the extension locally:

  1. ๐Ÿ–ฅ๏ธ Clone the repository:
    git clone https://github.com/JustSouichi/hackerai.git
  2. ๐ŸŒ Go to the Chrome Extensions page: Open chrome://extensions/ in your browser.
  3. ๐Ÿ› ๏ธ Enable Developer Mode: Toggle the Developer mode in the top-right corner.
  4. ๐Ÿ“‚ Load the extension: Click Load unpacked and select the folder containing the project files.
  5. โœ… Done: The extension is now active and ready to use!

โš™๏ธ How It Works

HackerAI injects a content.js script into all web pages. This script intercepts clicks on links and displays a confirmation dialog, allowing the user to decide whether to proceed or cancel.

๐Ÿ” Example Workflow:

  1. A user clicks on a link.
  2. โš ๏ธ A dialog appears:
    Do you really want to open this link?
    https://example.com
    
  3. ๐ŸŸข The user can choose to proceed or ๐Ÿ›‘ cancel.

๐Ÿ“„ Code Overview

manifest.json

Defines the extensionโ€™s metadata and permissions:

{
  "manifest_version": 3,
  "name": "HackerAI - Link Confirmation",
  "version": "1.0",
  "description": "Prompts confirmation before opening a link.",
  "content_scripts": [
    {
      "matches": ["<all_urls>"],
      "js": ["content.js"]
    }
  ]
}

content.js

Handles link interception and confirmation prompts:

document.body.addEventListener('click', function (event) {
    let target = event.target;

    while (target && target !== document.body) {
      if (target.tagName === 'A' && target.href) {
        event.preventDefault();
        const confirmed = confirm(`Do you really want to open this link?
${target.href}`);
        if (confirmed) {
          window.location.href = target.href;
        }
        return;
      } else if (target.getAttribute && target.getAttribute('data-link')) {
        event.preventDefault();
        const link = target.getAttribute('data-link');
        const confirmed = confirm(`Do you really want to open this link?
${link}`);
        if (confirmed) {
          window.location.href = link;
        }
        return;
      }
      target = target.parentElement;
    }
});

๐ŸŽฏ Future Goals

Feature Status
๐Ÿค– AI-Powered Link Analysis ๐ŸŸก Planned
๐Ÿ›ก๏ธ Phishing Database Integration ๐ŸŸก Planned
๐Ÿ“ง Email Security Features ๐ŸŸก Planned
โœ๏ธ Customizable Prompts ๐ŸŸก Planned
๐Ÿ–ฅ๏ธ Integration with Antivirus Tools ๐ŸŸก Planned
๐Ÿ“Š User-Friendly Dashboard ๐ŸŸก Planned
๐ŸŒ Browser Compatibility ๐ŸŸก Planned

๐Ÿ™Œ Contributing

Contributions are welcome! Follow these steps to get started:

  1. ๐Ÿ”€ Fork the repository on GitHub.
  2. ๐Ÿ–ฅ๏ธ Clone your fork locally:
    git clone https://github.com/<your-username>/hackerai.git
  3. ๐ŸŒฑ Create a new branch:
    git checkout -b feature-name
  4. ๐Ÿ› ๏ธ Make your changes and test them thoroughly.
  5. ๐Ÿ“ค Push your changes to your fork:
    git push origin feature-name
  6. ๐Ÿ” Submit a pull request: Provide a clear description of your changes.

Please refer to our Contributing Guidelines for more details.


๐Ÿ› ๏ธ Issues

If you encounter any problems or have feature requests, feel free to open an issue on GitHub: https://github.com/JustSouichi/hackerai/issues.


๐ŸŒ Social Links

Stay updated with the latest developments and connect with the creator:


๐Ÿ“œ License

This project is licensed under the MIT License. See the LICENSE file for details.


๐Ÿค Acknowledgements

HackerAI is inspired by the need to make online security accessible for everyone, especially for those with little technical expertise. Special thanks to the open-source community for their support and resources.

About

Chrome extension to improve safety while browsing

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

โšก