Skip to content

Commit fa7873d

Browse files
authored
Merge pull request #3 from vivek-nexus/v2.0.0
v2.0.0
2 parents 308aa31 + 0466875 commit fa7873d

11 files changed

Lines changed: 31 additions & 25 deletions

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Transcripto
1+
# TranscripTonic
22
Simple Google Meet transcripts. Private and open source.
33

44
![marquee-large](/assets/marquee-large.png)
@@ -20,21 +20,21 @@ View video on [YouTube](https://www.youtube.com/watch?v=MRmZLO-f8Sg)
2020

2121

2222
# Installation
23-
<a href="https://chromewebstore.google.com/detail/transcripto/ciepnfnceimjehngolkijpnbappkkiag" target="_blank">
23+
<a href="https://chromewebstore.google.com/detail/ciepnfnceimjehngolkijpnbappkkiag" target="_blank">
2424
<img src="https://storage.googleapis.com/web-dev-uploads/image/WlD8wC6g8khYWPJUsQceQkhXSlv1/iNEddTyWiMfLSwFD6qGq.png" />
2525
</a>
2626

2727
<br />
2828
<br />
2929

30-
# How to use Transcripto
30+
# How to use TranscripTonic
3131
![screenshot-2](/assets/screenshot-2.png)
32-
Transcripto has two modes of operation.
32+
TranscripTonic has two modes of operation.
3333

3434
**In both modes, transcript will be automatically downloaded as a text file at the end of each meeting.**
3535

3636
- **Auto mode:** Automatically records transcripts for all meetings
37-
- **Manual mode:** Switch on Transcripto by clicking on captions icon in Google Meet (CC icon)
37+
- **Manual mode:** Switch on TranscripTonic by clicking on captions icon in Google Meet (CC icon)
3838

3939

4040
> **Avoid closing the meeting tab to end the call.** If you do it by mistake, you can still download the last meeting transcript by opening the extension. This will be overwritten when a new meeting starts.
@@ -48,12 +48,12 @@ Transcripto has two modes of operation.
4848

4949
**Can I change the language of the transcript?**
5050

51-
Yes. Transcripto picks up the output of Google Meet captions. Google Meet captions supports variety of languages that you can choose from. Click the settings icon when captions start showing and change the language.
51+
Yes. TranscripTonic picks up the output of Google Meet captions. Google Meet captions supports variety of languages that you can choose from. Click the settings icon when captions start showing and change the language.
5252

5353
<br />
5454
<br />
5555

5656
# Privacy policy
57-
Transcripto Chrome extension does not collect any information from users in any manner. All processing/transcript storage happens within the user's Chrome browser and does not leave the device.
57+
TranscripTonic Chrome extension does not collect any information from users in any manner. All processing/transcript storage happens within the user's Chrome browser and does not leave the device.
5858

5959

assets/demo.gif

1.08 MB
Loading

assets/marquee-large.png

731 Bytes
Loading

assets/marquee-small.png

450 Bytes
Loading

assets/screenshot-1.png

-41.6 KB
Loading

assets/screenshot-2.png

-48.6 KB
Loading

assets/youtube-thumbnail.png

-74.8 KB
Loading

extension/background.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ chrome.runtime.onMessage.addListener(function (message, sender, sendResponse) {
2222
function downloadTranscript() {
2323
chrome.storage.local.get(["transcript", "meetingTitle", "meetingStartTimeStamp"], function (result) {
2424
if (result.transcript) {
25-
const fileName = result.meetingTitle && result.meetingStartTimeStamp ? `Transcripto/Transcript-${result.meetingTitle} at ${result.meetingStartTimeStamp}.txt` : `Transcripto/Transcript.txt`
25+
const fileName = result.meetingTitle && result.meetingStartTimeStamp ? `TranscripTonic/Transcript-${result.meetingTitle} at ${result.meetingStartTimeStamp}.txt` : `TranscripTonic/Transcript.txt`
2626

2727
// Create an array to store lines of the text file
2828
const lines = [];
@@ -35,7 +35,8 @@ function downloadTranscript() {
3535
});
3636

3737
lines.push("---")
38-
lines.push("Transcript saved using Transcripto Chrome extension")
38+
lines.push("Transcript saved using TranscripTonic Chrome extension (https://chromewebstore.google.com/detail/ciepnfnceimjehngolkijpnbappkkiag)")
39+
3940

4041
// Join the lines into a single string
4142
const textContent = lines.join('\n');
@@ -50,15 +51,15 @@ function downloadTranscript() {
5051
filename: fileName,
5152
conflictAction: 'uniquify' // Automatically rename the file if it already exists
5253
}).then(() => {
53-
console.log("Transcript downloaded to Transcripto directory")
54+
console.log("Transcript downloaded to TranscripTonic directory")
5455
}).catch((error) => {
5556
console.log(error)
5657
chrome.downloads.download({
5758
url: 'data:text/plain;base64,' + btoa(textContent),
58-
filename: "Transcripto/Transcript.txt",
59+
filename: "TranscripTonic/Transcript.txt",
5960
conflictAction: 'uniquify' // Automatically rename the file if it already exists
6061
})
61-
console.log("Invalid file name. Transcript downloaded to Transcripto directory with simple file name.")
62+
console.log("Invalid file name. Transcript downloaded to TranscripTonic directory with simple file name.")
6263
})
6364
}
6465
else

extension/content.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ let meetingStartTimeStamp = new Date().toLocaleString("default", options).replac
1313
let meetingTitle = document.title
1414
const extensionStatusJSON_bug = {
1515
"status": 400,
16-
"message": "<strong>Transcripto seems to have an error</strong> <br /> Please report it <a href='https://github.com/vivek-nexus/transcripto/issues' target='_blank'>here</a>."
16+
"message": "<strong>TranscripTonic seems to have an error</strong> <br /> Please report it <a href='https://github.com/vivek-nexus/transcriptonic/issues' target='_blank'>here</a>."
1717
}
1818

1919
checkExtensionStatus().then(() => {
@@ -50,7 +50,7 @@ checkExtensionStatus().then(() => {
5050
observer.observe(targetNode, config)
5151
chrome.storage.sync.get(["operationMode"], function (result) {
5252
if (result.operationMode == "manual")
53-
showNotification({ status: 400, message: "<strong>Transcripto is not running</strong> <br /> Turn on captions using the CC icon, if needed" })
53+
showNotification({ status: 400, message: "<strong>TranscripTonic is not running</strong> <br /> Turn on captions using the CC icon, if needed" })
5454
else
5555
showNotification(extensionStatusJSON)
5656
})
@@ -196,8 +196,13 @@ function transcriber(mutationsList, observer) {
196196
const people = document.querySelector('.a4cQT').firstChild.firstChild.childNodes
197197

198198
const person = people[people.length - 1]
199-
const currentPersonName = person.childNodes[1] ? person.childNodes[1].textContent : ""
200-
const currentTranscriptText = person.childNodes[2].lastChild ? person.childNodes[2].lastChild.textContent : ""
199+
if ((!person.childNodes[0]) || (!person.childNodes[1]?.lastChild)) {
200+
console.log("There is a bug in TranscripTonic. Please report it at https://github.com/vivek-nexus/transcriptonic/issues")
201+
showNotification(extensionStatusJSON_bug)
202+
return
203+
}
204+
const currentPersonName = person.childNodes[0] ? person.childNodes[0].textContent : ""
205+
const currentTranscriptText = person.childNodes[1].lastChild ? person.childNodes[1].lastChild.textContent : ""
201206

202207
if (beforeTranscriptText == "") {
203208
personNameBuffer = currentPersonName
@@ -263,7 +268,7 @@ function updateMeetingTitle() {
263268
async function checkExtensionStatus() {
264269
// Set default value as 200
265270
chrome.storage.local.set({
266-
extensionStatusJSON: { status: 200, message: "<strong>Transcripto is running</strong> <br /> Do not turn off captions" },
271+
extensionStatusJSON: { status: 200, message: "<strong>TranscripTonic is running</strong> <br /> Do not turn off captions" },
267272
});
268273

269274
// https://stackoverflow.com/a/42518434

extension/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "Transcripto",
3-
"version": "1.1.0",
2+
"name": "TranscripTonic",
3+
"version": "2.0.0",
44
"manifest_version": 3,
55
"description": "Simple Google Meet transcripts. Private and open source.",
66
"action": {

0 commit comments

Comments
 (0)