Optimized and Debugged contentScript.js and background.js Scripts: The contentScript.js script has been optimized for better performance. The background.js script was analyzed and updated for better compatibility with contentScript.js.
Fixed XMLHttpRequest in popup.js: The require function was removed, since it's not natively supported in browsers and isn't needed for creating an XMLHttpRequest in this context.
Added UI Feedback for API Calls: To improve user experience, a loading spinner has been added to inform the user when the API call is in progress.
Adjusted Font Size for Evaluation Results: The font size of the FAIR evaluation results displayed in the popup has been reduced to better match the styles of the extension.
Fixed Popup Console Error: Resolved an issue where the popup console was not logging errors correctly.
Updated the popup.js script to use the DOMContentLoaded event: This ensures that the getDoi function is called only after the full DOM has been loaded.