Repository navigation
The browser extends the final version
The plug-in consists of the following files:
manifest.json
- This is the extension's configuration file, defining the extension's name, version, permissions, icons, background script, content script, and so on.
background.js
- The extension's background script, which runs in the extension's background page. Used to listen for browser events (like tab updates, button clicks, etc.), maintain the extension's global state, and execute long-running tasks that don't require direct interaction with the user interface.
about.html
- A static HTML page used to display information related to the extension
history.html
history.js
-
history.html: An HTML page used to display the user's browsing history and detection results interface.
-
history.js: The JavaScript file associated with the history.html page, used for processing logic such as retrieving data from chrome.storage and dynamically displaying it on the page.
popup.html
popup.css
popup.js
-
popup.html: The HTML file for the extension's popup page, which is the user interface displayed when the user clicks the extension icon.
-
popup.css: The CSS file providing styles for the popup.html page.
-
popup.js: The JavaScript file handling user interaction logic on the popup.html page, such as button click event handling, sending messages to the background script, etc.
images
- A directory containing image files used by the extension, such as extension icons, images on pages, etc.
The local machine learning detection section consists of the following files:
server.py
- Responsible for receiving data to be analyzed, invoking the feature extraction and prediction logic, and sending back the analysis results.
Feature_Extractor.py
- Transforming raw data into a format that a machine learning model can work with.
Datasets
- Used to store datasets involved in the project.