README.md
Policypal is a browser extension that allows users to analyze and summarize terms & conditions and privacy policies of websites. The extension ๐ harnesses the power of the Bard API ๐งโโ๏ธโจ, a custom API built with Node.js and Express, to perform the analysis and generate the summaries. Get ready to dive into the world of legal jargon and privacy policies with ease! ๐ช and never fall for hidden terms or harmfull privacy policies again.
The project is built using an awesome tech stack:
- JavaScript ๐
- Chrome Extension API ๐งฉ
- HTML/CSS ๐จ
- Node.js ๐
- Express โก๏ธ
- Bard API (Custom API for analysis and summarization) ๐งช
The Policypal extension provides two main functionalities: analyzing a specific TOS or privacy policy page and summarizing its content. The process flow is as follows:
-
Right-click Context Menu ๐ฑ๏ธ: When you right-click on a link to a terms of service (TOS) or privacy policy page, the extension adds an option "Inspect TOS or Privacy Policy" to the context menu. Go ahead, give it a try! ๐
-
Clicking the Context Menu Option ๐ฑ๏ธ: When you select the "Inspect TOS or Privacy Policy" option from the context menu, the extension opens a progress popup window and initiates the analysis process. Get ready for some behind-the-scenes action! ๐ฌ
-
Fetching the Content ๐: The extension fetches the content of the selected TOS or privacy policy page and sends it to the Bard API for analysis. The progress popup window shows the progress as "Processing...". Time to gather all the juicy details! ๐๐
-
Analyzing the Content ๐ฌ: The Bard API receives the content and puts on its magic hat ๐ฉ to analyze it using sophisticated natural language processing techniques. It generates a summary and identifies potential harmful elements in the content. It's like having a legal wizard by your side! ๐งโโ๏ธโจ
-
Displaying the Summary ๐: The generated summary is sent back to the extension, which then displays it in an alert window and updates the progress popup with "Analysis complete โ ". Sit back, relax, and enjoy the condensed version! ๐๐
-
Closing the Progress Popup ๐ช: After displaying the summary or encountering an error, the progress popup window is automatically closed. No need to say goodbye, it knows when to exit gracefully! ๐
To use the Terms Trackers extension, follow these steps:
-
Clone the repository to your local machine:
git clone https://github.com/gd03champ/policypal-extention.git
-
Open Google Chrome and go to the Extensions page by entering the following URL in the address bar:
chrome://extensions/
-
Enable Developer mode by toggling the switch at the top right corner.
-
Click on the "Load unpacked" button and select the cloned project directory (
policypal-extention
). Let the extension come to life! โก๏ธ -
Update the API key in the Options page:
-
To analyze a TOS or privacy policy page:
- The progress popup window will appear, showing the progress of the analysis. Stay tuned! โ๏ธ๐
- After the analysis is complete, the summary will be displayed in an alert window. Get ready to see the essence of the content! ๐งชโจ
- The progress popup window will automatically close. It knows when it's time to exit the stage! ๐ช๐ญ
The Bard API is an unofficial custom API developed by me using Node.js and Express. The Bard API uses bard to generate result using bard cookieID and input prompt. In the Terms Trackers extension, the Bard API works its magic to analyze the content of TOS or privacy policy pages. It provides the summarized results and identifies potential harmful elements. Make sure to set up and deploy the Bard API to unlock its full potential! โจ
Contributions to the Terms Trackers project are highly appreciated! We believe in the power of collaboration and welcome your contributions with open arms. If you find any issues or have suggestions for improvements, please create a GitHub issue or submit a pull request. Before contributing, make sure to review the project's guidelines for contributing and code of conduct.
Let's make the PolicyPal extension even more awesome together!
The Terms Trackers project is licensed under the MIT License. Feel free to explore, modify, and use the code according to the terms of the license. Let the magic begin! โจโจ