Giter VIP home page Giter VIP logo

sparticleinc / chatgpt-google-summary-extension Goto Github PK

View Code? Open in Web Editor NEW
1.6K 17.0 204.0 315.12 MB

Chrome extension to view ChatGPT summaries alongside Google search results and YouTube videos, also supports Yahoo! ニュース、PubMed、PMC、NewsPicks、Github、Nikkei、 Bing、Google Patents, and any page summary.

Home Page: https://glarity.app

License: GNU General Public License v3.0

Shell 0.03% JavaScript 2.55% TypeScript 67.07% CSS 0.47% SCSS 26.77% HTML 0.77% Swift 2.34%
chatgpt chrome-extension google google-chatgpt browser-extension firefox-extension youtube

chatgpt-google-summary-extension's Introduction

Glarity - Summary for Google/YouTube with ChatGPT

Glarity Summary: an open-source ChatGPT Summary extension for YouTube, Google, Twitter, and any webpage. It provides cross-language summaries to effortlessly summarize videos, searches, PDFs, emails, and webpages. It supports free side-by-side translations, email writing assistance, Web Content Q&A, and much more Download the experience package (https://github.com/sparticleinc/chatgpt-google-summary-extension/tree/main/packages) and adding it manually (https://github.com/sparticleinc/chatgpt-google-summary-extension#chrome).

Supported Websites

Installation

Add from Chrome Web Store Add from Mozilla Add-on Store

Features

  • Side-by-Side Translation (mirror translation, immersive translate)
  • Gmail quick reply
  • Supports Google search
  • Supports YouTube (YouTube videos transcript, summary, key moment)
  • Supports Github
  • Supports Bing
  • Supports Yahoo! JAPAN ニュース
  • Supports PubMed
  • Supports PMC
  • Supports NewsPicks
  • Supports Nikkei
  • Supports Google Patents
  • Support bilibili
  • Support twitter summary
  • Support summary of any web page
  • Support for iOS Safari/ macOS Safari
  • Supports the official OpenAI API (GPT-3.5-turbo/text-davinci-003)
  • Supports ChatGPT Plus
  • Markdown rendering
  • Code highlights
  • Dark mode
  • Provide feedback to improve ChatGPT
  • Copy to clipboard
  • Switch languages
  • Glarity AI model

Screenshot

Google

Screenshot Screenshot

YouTube

Screenshot

Bilibili

Screenshot

iOS Safari /macOS Safari

Screenshot Screenshot

Github

Github

Bing

Bing

Google Patents

Google Patents

Yahoo! JAPAN ニュース

Screenshot

PubMed

Screenshot

PMC

Screenshot

NewsPicks

Screenshot

Nikkei

Nikkei

Troubleshooting

How to make it work in Brave

Screenshot Disable "Prevent sites from fingerprinting me based on my language preferences" in brave://settings/shields

Build from source

  1. Clone the repo
  2. Install dependencies with npm
  3. npm run build

Packages

Chrome

  1. Go to chrome://extensions/.
  2. At the top right, turn on Developer mode.
  3. Click Load unpacked.
  4. Find and select extension folder(build/chromium/).

Firefox

  1. Go to about:debugging#/runtime/this-firefox.
  2. Click Load Temporary Add-on.
  3. Find and select the extension file(build/firefox.zip).

Credit

This project is a fork of wong2/chatgpt-google-extension, and borrows code from qunash/chatgpt-advanced & YouTube Summary with ChatGPT

License

GPL-3.0 license.

chatgpt-google-summary-extension's People

Contributors

aydengen avatar chendotjs avatar dependabot[bot] avatar germey avatar givebest avatar henry97113 avatar hoi-lau avatar wong2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chatgpt-google-summary-extension's Issues

Feature Request: Add Separated Toggles for Supported Websites

Describe the Issue
After a few days of usage, I really like the extension when it summarizes a YouTube video. But I don't want it to show up every time I use Google search.
Is it possible to add a feature that allows the user to toggle on or off the extension for each supported website?

Desktop (please complete the following information):

  • OS: Windows
  • Browser Chrome

[Feature Request] Add Hotkey to on/off extension

Feature Request

Summary

  • Add hotkey for on/off extension

Motivation

  • The toggle setting is quite good however it might cause some issue with JS error when injecting HTML/JS/CSS. So I think that's a safe approach if it has hotkey on/off

Proposed Solution

  • For example, https://chathub.gg has similar hotkey [CMD + J] to show the chat hub client.

Additional Information

[Include any additional information or context that may be relevant to this feature request.]

Related Issues and Pull Requests

#61 #11 #23

Thank you for considering my feature request!

Maybe we need a custom output template setting?

Hey, thanks for this nice extension!
I have experimented with several Youtube videos and found that all summaries contain a lot of emoji, which I guess is the effect of this line of code.
Although emoji would make the replies more vivid, unfortunately most of the emoji generated by ChatGPT have little relevance to the text, which affects the understanding to the summaries.

I guess if we allow users to set their own reply style, or pre-set several styles for users to choose, the user experience will be improved a little bit?

(I'm not familiar with front-end development, so I just deleted the emoji and re-built it. I think it would be better if the settings screen had a corresponding settings text box?)

Youtube - Sometimes the title of the previous video will be used

Describe the bug
See attached image. The extension correctly summarized the caption but used the title of the previous video that I played. Likely the extension fetched the title before the webpage finished loading.

Desktop (please complete the following information):

  • OS: MacOS
  • Browser: Chrome

SCR-20230407-oezt

Uncaught TypeError: Cannot read properties of null (reading '0')

Describe the bug
The console reported an error and affected the normal display of page content. Currently, the tables in Feishu documents are affected.

content-script.js:50044 
       Uncaught TypeError: Cannot read properties of null (reading '0')
    at content-script.js:50044:3234
    at content-script.js:50095:239
V2.includes("github.com") ? "github" : V2.match(gb)[0]`, N1 = Xr[tn];

async function fb(n) { var d, g, c; let { question: u, siteConfig: e, transcript: t, langOptionsWithLink: r } = n; document.querySelector("div.glarity--container") && ((d = document.querySelector("div.glarity--container")) == null || d.remove()); let i = document.createElement("div"); i.className = "glarity--container"; let o = await au(), l; if (o.theme === "auto" ? l = Qu() : l = o.theme, l === "dark" ? i.classList.add("gpt--dark") : i.classList.add("gpt--light"), tn === "pubmed") { i.classList.add("glarity--chatgpt--pubmed"); let f = V1(e.extabarContainerQuery || []); console.log("appendContainer", f), f == null || f.prepend(i) } else if (tn === "yahooJpNews") { i.classList.add("glarity--chatgpt--yahoonews"); let f = V1(e.extabarContainerQuery || []); f == null || f.prepend(i) } else if (tn === "newspicks") { i.classList.add("glarity--chatgpt--newspicks"); let f = V1(e.extabarContainerQuery || []); f == null || f.prepend(i) } else if (tn === "nikkei") { i.classList.add("glarity--chatgpt--nikkei"); let f = V1(e.extabarContainerQuery || []); f == null || f.prepend(i) } else if (tn === "github") { i.classList.add("glarity--chatgpt--github"); let f = V1(e.extabarContainerQuery || []); f == null || f.prepend(i) } else if (tn === "youtube") i.classList.add("glarity--chatgpt--youtube"), ot("#secondary.style-scope.ytd-watch-flexy").then(() => { var f; (f = document.querySelector("#secondary.style-scope.ytd-watch-flexy")) == null || f.prepend(i) }); else { let f = V1(e.sidebarContainerQuery); if (console.log("siderbarContainer", f, (g = document.querySelector("#center_col")) == null ? void 0 : g.nextSibling), f) f.prepend(i); else if (e.extabarContainerQuery && ((c = document.querySelector("#center_col")) != null && c.nextSibling)) { i.classList.add("glarity--full-container"); let v = V1(e.extabarContainerQuery); v && v.appendChild(i) } else { i.classList.add("sidebar--free"); let v = V1(e.appendContainerQuery); v && v.appendChild(i) } } Fn(a0(Gc, { question: u, transcript: t, siteConfig: e, langOptionsWithLink: r, triggerMode: o.triggerMode || "always" }), i) }

async function T7() { let n = await $r(!0); n && fb(n) }

async function $r(n) { var i, o, l, d, g, c; let u = window.navigator.language, e = await au(), t = await Qo(); if (console.log("providerConfigs", t), tn === "pubmed") { if (!/(pubmed.ncbi.nlm.nih.gov/\d{8,})|(ncbi.nlm.nih.gov/pmc/articles/\w+)/.test(location.href)) return null; let f = document.title || "", v = location.href, y = V1(N1.contentContainerQuery || []); document.querySelector("div#abstract-1 + #body-1"); let E; if (y) E = y == null ? void 0 : y.textContent; else { let D = ["div#abstract-1", "#body-1", "div#sec2", "div#sec3", "div#sec4", "div#sec5", "div#sec6", "div#sec7", "div#sec8", "div#sec9", "div#sec10"]; for (let z = 0; z < D.length; z++) { let P = (i = document.querySelector(D[z])) == null ? void 0 : i.textContent; P && (E = E + " " + P) } } if (console.log("articleText", E), !E) return null; let S = jn(E, t.provider); console.log("content", S); let w = `` } return null }

Desktop (please complete the following information):

  • OS: Windows 11 22621.1344
  • Browser: Edge110.0.1587.63

Don't spawn popups, when opening ChatGPT

Everytime I open a new chat in ChatGPT, I get the bright white popup, that Glarity is ready. Please make an option to disable this 'tip'. I don't need to be reminded with every new chat.

Desktop
Manjaro Linux
Firefox

Request for adding support for PubMed

Hi there,

First of all, I want to thank you for creating this amazing tool. I have been using it for a while and found it to be very helpful. I would like to request adding support for PubMed.

PubMed is a great resource for finding medical literature. It is often referred to as the Google of medical literature. One of the unique features of PubMed is that it provides a summary or abstract of the content of each article. Additionally, some of the articles on PubMed have the full text available. If it were possible to use ChatGPT to read and interpret the full text of these articles, it would be a valuable tool for researchers and medical professionals.

I understand that adding support for PubMed would require additional development time and effort. However, I believe that it would be a great addition to the tool, and it would benefit a lot of users.

Thank you for considering my request.

Best regards,

Longer textbox

Hi,
Thanks a lot for this great extension. Really helpful on summarizing search results. Can I have a longer textbox? It would be more convenient to read.
Best regards,

Glarity is causing javascript error on every other website

Describe the bug
Glarity is causing javascript error on every other website that is not in the supported site list, including but not limited to:

image

Desktop (please complete the following information):

  • OS: MacOS
  • Browser: Chrome

You are injecting content script on every website

   "content_scripts": [ {
      "css": [ "content-script.css" ],
      "js": [ "content-script.js" ],
      "matches": [ "\u003Call_urls>", "*://*/*" ]
   } ],

This is understandable because the websites Glarity supports are extensible, and matching sites in the manifest is too much hassle.

But you should enhance the code to change irrelevant pages as little as possible. I believe this error is caused by not checking whether the site is in the supported site list and assuming something should be there to proceed.

Also, I think you should avoid injecting css this way. It's uncontrollable, you should let the content-script.js inject the css after checking it is a supported site.

Add a button where we click and choose which language we want to translate summary

It will be good if we see a button where we click and choose language from many like 100+ languages to translate summary to others languages, and that translation if also done through ChatGPT will be awesome

NOTE: i am not talking about this option The language used in ChatGPT response. Auto is recommended. but its also good if you add many more languages to it not just some

[Feature Request] Summarize long form transcripts from YouTube in chunks

I've found that when trying to make a summary for a video that's longer than about 10 minutes, the summary is only accurate up to 10 minutes of the video. I think it would be a good idea to summarize chunks under the 2000 token limit all the way until the end of the video is reached, then to summarize the summaries into a manageable "master summary". Likewise, I was told on the Discord server that different summary algorithms could be used too, specified here.

A similar extension does this called Eightify that ends up looking like this:
image

The above has a bullet list with timestamps of the video and if you click on the summary it shows the chunked summary so that you can see what the master summary ended up with. I'm interested in trying to do this myself, but I'm still learning how the extension works before I'd be able to even consider trying to make something like that happen.

You exceeded your current quota

Describe the bug
Failed to load response from ChatGPT:
{"error":{"message":"You exceeded your current quota, please check your plan and billing details.","type":"insufficient_quota","param":null,"code":null}}
Retry
If this keeps happening, change AI provider to OpenAI API in the Extension option.

Desktop (please complete the following information):

  • OS: Windows
  • Browser - brave

Screenshot

image

Feature request: Summarize any page.

Thanks for your work!

I have a feature suggestion: It would be great if there was an option to generate a summary of any web article with just one click using the extension toolbar button or through the context menu.

Thank you!"

Font and size changing

Describe the bug
I don't know if its a bug or on purpose but the font size and style change between websites, on my 1440p monitor it's very small sometimes it's barely readable, if i may add a suggestion is to add a customizable font and size of the window, thank you ~

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser : Firefox latest

YouTube comment summary stop working

Describe the bug
click the extension icon in a youtube video page and nothing happened

Desktop (please complete the following information):

  • OS: [macOS 13.3.1]
  • Browser [chrome]

Request to change .zip to a folder

After pulling the directory to the local folder using git, users can load the unpacked extensions directly in Chrome. And afterwards, users can easily use git to update.

Specifically, decompress the .zip file from the chatgpt-google-summary-extension/packages/ directory and re-upload the entire folder.

Thank you for your work!

Will the Blacklist Sites support Regex or wildcard ?

Function issue
Hi there,will the Blacklist Sites URLs list support Regex or wildcard ? 😁

I was trying to list a mount of urls of My Company in the Blacklist, they are regular with several domain suffixes.
So I am wondering that if there is a plan to support Regex or wildcard in the URLs list.

BTW: Thanks for your wonderful work.

Can not Select Models

Describe the bug
After the version, I can not select the models

Desktop (please complete the following information):

  • OS: [Mac]
  • Browser [chrome]

image

Page summary incorrectly depends only on the description of the page

Describe the bug
When I use the extension to get a summary of a page, it sometimes shows "Sorry, the summary of this page is not supported.". When I look into the code, it's clear that the empty pageComments is used all the time instead of the pageContent in PageSummary.tsx.

Screenshot 2023-04-19 at 3 00 20 PM

Desktop (please complete the following information):

  • OS: Mac
  • Browser chrome

Display position error

Describe the bug
When using Google search, the interface of the extension should be displayed on the right side instead of above the search results.

Desktop (please complete the following information):

  • OS: macOS
  • Browser: Chrome

image

Feature Request: Timestamp Functionality for Summary Video Plugin

I hope this message finds you well. I wanted to reach out and request a new feature for the summary video plugin. I think it would be incredibly useful if the plugin had a timestamp functionality that allowed users to easily jump to specific moments in the video.

As you know, the plugin is great for summarizing long videos, but it can be difficult to find specific moments within the video without scrolling through the entire summary. By adding a timestamp functionality, users could simply click on a timestamp link and be taken directly to the corresponding moment in the video.

I believe this feature would make the plugin even more user-friendly and improve the overall user experience. If this is something that could be implemented, I would greatly appreciate it!

Thank you for your time and consideration.

keep the GPT summary dialog box stay still

Can the GPT summary dialog box be opened with enough space at once, or can the height of the dialog box be locked, and a scrollbar is used when it exceeds its limit? Currently, the height of the dialog box keeps increasing, causing webpage links below it to constantly move.

If you want to click on a button or link, you have to wait for GPT to finish speaking.

Feature Request: hope to support Safari.

Safari on iOS also supports plugins. I hope that this plugin can also support Safari on Mac/iOS, so that it can be used on both platforms.
Looking forward to it.

Give summary of selected content out of the page content

I like the page content summary feature. However, sometimes I am interested to know more with a part of the content in a given page. How do I get additional context with that?

This is can be done with section content summary, selected content summary, or pasted content summary.

Support for DuckDuckGo?

Hi,

First of all, I love your extension. It's like having a more customisable Bing AI due to this being open source. I'm planning to edit your code to work for DuckDuckGo when I find time but was just wondering if you're already working on it/is it already in development? If so then I'll wait instead of attempting it myself.

Thanks in advance,

Feature suggestion: Trigger Mode and prompt personalization.

First, Thanks for the extension It's the best GPT extension for Google and Youtube so far. I can now uninstall 'WebChatGPT', 'ChatGPT for Google' and 'YouTube Summary with ChatGPT'.

Feature suggestion:

  • An option to activate the response with a click or a keyword in the search like 'Trigger Mode' in 'ChatGPT for Google', so we don't abuse the ChatGPT service in searches where we don't need it. https://i.imgur.com/IClx8x6.png
  • An option to personalize the prompt like in here. Examples: 'Summarize the following in 5 bullet points:', 'Make an executive summary of the following:', 'Make a short summary of the following'...

Unable to correctly recognize the login status of OpenAI-Web.

Describe the bug
A clear and concise description of what the bug is.
Unable to correctly recognize the login status of OpenAI-Web.

Desktop (please complete the following information):

  • OS: [e.g. Macos]
  • Browser [e.g. chrome]
  • Extension Version: v1.13.0

image

image

After installing the browser extension, the formatting of tables on certain websites appears to be anomalous

[email protected]
"Thank you for developing this highly convenient plugin. However, I have observed certain anomalies. I have noticed that the plugin automatically adds styles to the page, which impacts the display of other regular websites that I visit.

Is it feasible to implement a whitelist feature to restrict the plugin's effects to specific websites only? This would minimize its impact on other websites within the browser."

Cannot make Brave browser work

Describe the bug
Have followed the trouble shooting tip:

Disable "Prevent sites from fingerprinting me based on my language preferences" in brave://settings/shields

It does not work.

Desktop (please complete the following information):

  • OS: macOS
  • Browser: Brave

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.