Dude... I'll be damned if you're going to just walk in here and blow my mind like that. WTF am I even watching right now? Who do you think you are? Is my sense of normalcy just some plaything to you? I'm outraged sir, utterly outraged... at how unbelievably good this video is. Stop being so amazing, it's making the rest of us look ordinary!
Major kudos for this tutorial, and bonus for including the prompt and code in the description. This vid does a superb job of showing just how powerful ChatGPT is, and your mastery of communicating to ChatGPT.
0:00 - Introduction 0:31 - Prompt explanation 1:41 - Test file demonstration 2:24 - Converting the code into a bookmarklet 3:22 - Adding the bookmarklet to the browser 4:33 - Using the bookmarklet to add the button 5:08 - Testing the button functionality 5:34 - Adding a delay when stopping response generation 6:12 - Converting the code into a Chrome extension 6:19 - Saving the manifest.json and content.js files 6:52 - Loading the extension in the browser 7:05 - Final test run and conclusion
This is really excellent. I have designed the same process but by using successive API calls for pro projects. Your solution is more elegant and available to users who don't access the API. All the best !!!
Boi, I seen a lot of grifters hopping on that AI trend. Claiming to teach you "the ultimate prompt", the secret of ChatGPT and whatnot...but THIS is the real deal !! Next level ingenuity ! Congrats to you !
Hi everyone, looks like the ChatGPT site was updated today, I have applied the fix and the plugin should be working now. Thanks to those of you who notified me!...oh yea, I also added support for Excel files. Enjoy!
@automatemylife00 For some reason, large files that need to be split are not being input piece by piece into ChatGPT (figured this out form testing / debugging). In other words, only Part 1 is being input. Any suggestions / solutions?
I have been using this since it came out and today the button is gone. I cant seem to get it back with either the plug in or putting the code directly into the page. Any advice
@@automatemylife00 Thanks for your quick response and fix. I can confirm the button is back! Thanks for your continued support and help in the community.
Thanks! Check out this video : ua-cam.com/video/wiw0JyzNdVM/v-deo.html and see if it resolves the issue you are experiencing. Also keep in mind that you could also use the Chatgpt file uploader plugin if you just need to use it: ChatGPT File Uploader tinyurl.com/5n7rjhar
Your videos are so educational! 1. You have a real talent for explaining complex ideas in an easy-to-understand way. 2. Your content is so informative and well-researched. 3. I always learn something new from your videos. 4. Thank you for sharing your knowledge with us! 5. Your videos are a great resource for anyone looking to learn about [topic]. 6. You have a real gift for teaching through video. 7. Your channel is a must-watch for anyone interested in [topic]. 8. I appreciate all the hard work you put into making such informative videos. 9. Your dedication to providing accurate and helpful information is inspiring.
VM67:28 Uncaught TypeError: Cannot read properties of null (reading 'parentNode') at :28:15 (anonymous) @ VM67:28 _app-de11afa369c8a1b8.js:14 react-scroll-to-bottom: Please set "behavior" when calling "scrollToBottom". In future versions, the default behavior will be changed from smooth scrolling to discrete scrolling to align with HTML Standard. I am getting this error
Check out this video : ua-cam.com/video/wiw0JyzNdVM/v-deo.html and see if it resolves the issue you are experiencing. Also keep in mind that you could also use the Chatgpt file uploader plugin if you just need to use it: ChatGPT File Uploader tinyurl.com/5n7rjhar
Why does noone mention the fact that ChatGPT can only handle 4096 tokens? So if the message is too long and you split it up into parts, it will only remember the last part
Great video! The question is - did You test chat gpt memory? That's great solutions, but probably when you ask chat about information from the beggining of your long file then it will start hallucinate.
@@automatemylife00 It doesn't... the hard limit (for now) is 8K tokens (4K for GPT 3.5). Anthropic has a context token limit of 100K but it is weak compared to GPT.
Great content ! If you are trying to replicate this, just a few precisions that I think can help : The selector provided by chatGPT might not always work as expected. You can replace it with this one: "div.relative.flex.h-full.max-w-full.flex-1.overflow-hidden > div > main > div.absolute.bottom-0 > form > div > div:nth-child(1)". Also, keep in mind that the bookmarklet code has a character limit of 2000. If you encounter any errors with the generated code, consider minifying it to fit within this limit.
same thing here, if any of you can send us the revised code or where exactly we have to insert your line that would be great. For me it is just uploading the first part and then stops !!!
Man, it seems like these AI tools are getting so out of control, that if you don't use them to your own advantage, you will be left so far behind everyone else. To be fair, it's really good for content creators (and more so if you use with Famester Social). You can create content, make it go popular straight away. I like where is this going, my only worry is that maybe some people would lose their jobs.
I'm too embarrassed to ask. How do you make it to submit pdf files. I did try to add .pdf into the prompt but I got gibberish long text maybe I assumed it cannot detect or read the pdf file.
Can you make it “see” images. Like flow charts? And or make it give us images? I know a plug-in coming for this feature but waitlists don’t like me lol
Another 'poor man's option' instead of bookmark buttons and extensions that disappear would be wrapping it in a Tampermonkey script that always loads for the site. Also makes it easier to tweak and eyeball things.
An update occured in google chrome, and it´s not working anymore with 3 errors: VM86:31 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'parentNode')
Check out this video : ua-cam.com/video/wiw0JyzNdVM/v-deo.html and see if it resolves the issue you are experiencing. Also keep in mind that you could also use the Chatgpt file uploader plugin if you just need to use it: ChatGPT File Uploader tinyurl.com/5n7rjhar
Check out this video : ua-cam.com/video/wiw0JyzNdVM/v-deo.html and see if it resolves the issue you are experiencing. Also keep in mind that you could also use the Chatgpt file uploader plugin if you just need to use it: ChatGPT File Uploader tinyurl.com/5n7rjhar
I need this so badly - but get this error when pasting the code into the console? VM193:30 Uncaught TypeError: Cannot read properties of null (reading 'parentNode') at :30:15 Any ideas how to fix this?
This is astounding! Is there a way to create an external memory / access a database to retrieve info? That would be amazing! Really great work. Subscribed! :)
I really would appreciate if you could upload a version of your plugin that is able to read pdf and maybe word files (although these can be easily transfered to txt.) Thank you in advance. Another question: I need gpt to analyze the content of the pdf/txt whatever files with some regulatory documents. Copying small chunks of text already works excellent but I need to upload huge files of text. so if you can programm something like this I am willing to make it worth you`re while.
Great stuff. Thanks. This is a supper useful addition. Please keep up the good work. Any chance it will be able to be able to do this with PDF files?? Or YT videos?
In my tests, I've found that chunking doesn't get around the context limits. It works to get summaries, but the earlier chunks will fall out of memory.
I get a lot of projects in Hindi. Suggest one where I can give the project name and specify whether I need it in Hindi or English, and it should generate a 40-page project in one go. The project should contain only 5 to 7 headings, with more sentences under each heading, but without using numbered or point-wise explanations. How can i create code for this
But whats the point. If you tell it to optimise or do something with all of the code, it simply cannot do that. Because 15000 character in 3 parts or 45000 characters, it can't store at once to analyse. So what's the point ?
may i suggest waiting for "Confirmed" from Chatgpt before input the next chunk of the text. This way it allows Chatgpt to process the information so that it can be utilize and etc.
Is it placing this code in a console? Pressing enter key // Create the button const submitButton = document.createElement('button'); submitButton.textContent = 'Submit File'; submitButton.style.backgroundColor = 'green'; submitButton.style.color = 'white'; submitButton.style.padding = '5px'; submitButton.style.border = 'none'; submitButton.style.borderRadius = '5px'; submitButton.style.margin = '5px'; // Create the progress element const progressElement = document.createElement('progress'); progressElement.style.width = '99%'; progressElement.style.height = '5px'; progressElement.style.backgroundColor = 'grey'; // Create the progress bar const progressBar = document.createElement('div'); progressBar.style.width = '0%'; progressBar.style.height = '100%'; progressBar.style.backgroundColor = 'blue'; // Append the progress bar to the progress element progressElement.appendChild(progressBar); // Find the target element to insert before const targetElement = document.querySelector('.flex.flex-col.w-full.py-2.flex-grow.md\\:py-3.md\\:pl-4'); // Insert the button and progress element before the target element targetElement.parentNode.insertBefore(progressElement, targetElement); targetElement.parentNode.insertBefore(submitButton, targetElement); // Add click event listener to the button submitButton.addEventListener('click', async function () { // Create the file input element const fileInput = document.createElement('input'); fileInput.type = 'file'; fileInput.accept = '.txt, .js, .py, .html, .css, .json, .csv'; // Listen for file selection fileInput.addEventListener('change', async function (event) { const file = event.target.files[0]; const reader = new FileReader(); // Read the file as text reader.readAsText(file); reader.onload = async function () { const text = reader.result; // Split text into chunks const chunkSize = 15000; const numChunks = Math.ceil(text.length / chunkSize); let chatgptReady = false; for (let i = 0; i < numChunks; i++) { const start = i * chunkSize; const chunk = text.slice(start, start + chunkSize); const part = i + 1; const filename = file.name; const chunkWithMessage = `Do not respond with anything other than to acknowledge that you have received this chunk of the file.
Part ${part} of ${numChunks}:
${chunk}`; // Submit chunk to conversation await submitConversation(chunkWithMessage, part, filename); // Update progress bar progressBar.style.width = `${((i + 1) / numChunks) * 100}%`; // Check if chatgpt is ready while (!chatgptReady) { await new Promise((resolve) => setTimeout(resolve, 1000)); chatgptReady = !document.querySelector('.text-2xl > span:not(.invisible)'); } } // Set progress bar to blue when all chunks are submitted progressBar.style.backgroundColor = 'blue'; }; }); // Trigger file input click fileInput.click(); }); // Function to submit conversation async function submitConversation(text, part, filename) { const textarea = document.querySelector("textarea[tabindex='0']"); const enterKeyEvent = new KeyboardEvent('keydown', { bubbles: true, cancelable: true, keyCode: 13, }); textarea.value = `Part ${part} of ${filename}:
This is weird. All day today I've seen the Submit button but now that I was going to upload a file, it's gone. I don't remember changing anything but I disabled all of my ChatGPT plugins and other Chrome extensions. Plus, I logged out and back in again. Still not there. Any ideas why?
Great work.... I was running into a small error creating the bookmarklet... Figured out it does not like comments like // removing comments from code and it works now I added some file types i needed ;) Not I need to figure out to download the new file as well and we will really have something cooking
If the code it produced for you worked, why not provide that code instead of the prompt to generate that code? When I supplied it with your prompt, I got a slightly different result each time I submitted it. Some of them did create a submit button but without the ability to continue for file sizes over 15000. Some generated errors and no submit button at all.
I created a similar script that breaks large prompts into chunks except that you don't even need to hit the "Stop generating" button, it's completely autonomous and it will just wait for part 2, 3, 4 and so on until it completes the process. Then after completion, ChatGPT will ask how it can help you. Right now its just a basic python script but I do want to make into a chrome extension. I'm not a coder or anything so ChatGPT managed to help me get as far as I could with it. Perhaps I will upload a video showcasing it. Edit: I just uploaded a short video showcasing the script in case anyone is interested.
I added that code to the console and it did add the button and the progress bar. But now it won't go away😐 How do I make it go away, can't find the code in the console to delete it.
First: Many Thanks. I got an ERROR: "Uncaught DOMException: Failed to execute 'querySelector' on 'Document': '.flex.flex-col.w-full.py-2.flex-grow.md:py-3.md:pl-4' is not a valid selector. at :27:30" - Any Suggestions?
check out this video : ua-cam.com/video/wiw0JyzNdVM/v-deo.html and see if it resolves the issue you are experiencing. Also keep in mind that you could also use the Chatgpt file uploader plugin if you just need to use it: ChatGPT File Uploader tinyurl.com/5n7rjhar
Is there a way to insert PDF files as well? I just tried to convert my PDF to TXT but chat GPT didn't like the file. So in this particular cas it didn't work witch is sad.
Excellent job. I met this issue when I try to insert the code in to web page in Chrome browser. VM432:25 Uncaught DOMException: Failed to execute 'querySelector' on 'Document': '.flex.flex-col.w-full.py-2.flex-grow.md:py-3.md:pl-4' is not a valid selector. at :25:30
Uncaught TypeError: Cannot read properties of null (reading 'parentNode') at :30:15 its showing this error wt to doo i got fixed that but its not showing uploading button
Check out this video : ua-cam.com/video/wiw0JyzNdVM/v-deo.html and see if it resolves the issue you are experiencing. Also keep in mind that you could also use the Chatgpt file uploader plugin if you just need to use it: ChatGPT File Uploader tinyurl.com/5n7rjhar
I have installed the plugin from Chrome Marketplace. I load a text document of about 8000 characters and the chat reports "The message you submitted was too long, please reload the conversation and submit something shorter". Why is that?
Check out this video : ua-cam.com/video/wiw0JyzNdVM/v-deo.html and see if it resolves the issue you are experiencing. Also keep in mind that you could also use the Chatgpt file uploader plugin if you just need to use it: ChatGPT File Uploader tinyurl.com/5n7rjhar
I did copy paste the code generated by chatgpt into the console, however it is taking a very long time (more than 10 min) to generate the submit file button . Why is this?
Hi, when i copy the code and hit enter in the Console I get this message : VM103:25 Uncaught DOMException: Failed to execute 'querySelector' on 'Document': '.flex.flex-col.w-full.py-2.flex-grow.md:py-3.md:pl-4' is not a valid selector. at :25:32
Check out this video : ua-cam.com/video/wiw0JyzNdVM/v-deo.html and see if it resolves the issue you are experiencing. Also keep in mind that you could also use the Chatgpt file uploader plugin if you just need to use it: ChatGPT File Uploader tinyurl.com/5n7rjhar
I am getting this error "Uncaught TypeError: Cannot read properties of null (reading 'parentNode') at :25:15" when I copy paste the code in the console. Can you please help me out
@@anjaschwager8506 No, I uninstalled the extension because I thought you could send files as files, not text, and then the chunk system complicates the thing.
Check out this video : ua-cam.com/video/wiw0JyzNdVM/v-deo.html and see if it resolves the issue you are experiencing. Also keep in mind that you could also use the Chatgpt file uploader plugin if you just need to use it: ChatGPT File Uploader tinyurl.com/5n7rjhar
Dude... I'll be damned if you're going to just walk in here and blow my mind like that. WTF am I even watching right now? Who do you think you are? Is my sense of normalcy just some plaything to you? I'm outraged sir, utterly outraged... at how unbelievably good this video is. Stop being so amazing, it's making the rest of us look ordinary!
That was funny, thanks for the kind words.
Major kudos for this tutorial, and bonus for including the prompt and code in the description. This vid does a superb job of showing just how powerful ChatGPT is, and your mastery of communicating to ChatGPT.
Glad you liked it!
0:00 - Introduction
0:31 - Prompt explanation
1:41 - Test file demonstration
2:24 - Converting the code into a bookmarklet
3:22 - Adding the bookmarklet to the browser
4:33 - Using the bookmarklet to add the button
5:08 - Testing the button functionality
5:34 - Adding a delay when stopping response generation
6:12 - Converting the code into a Chrome extension
6:19 - Saving the manifest.json and content.js files
6:52 - Loading the extension in the browser
7:05 - Final test run and conclusion
Probably AI generated, but as I'm on mobile right now, this is very appreciated.
Thank you my good sir.
This is really excellent. I have designed the same process but by using successive API calls for pro projects. Your solution is more elegant and available to users who don't access the API. All the best !!!
Pierre - did you find yourself going with this solution or still doing it the API route?
Bro this is high quality stuff. You taught me something I didn’t know I could do with this
However please be catious sending private info
@@SpookyKillerz😢 please explain how and more on this
@@audiophile... keys and passwords and such
Boi, I seen a lot of grifters hopping on that AI trend. Claiming to teach you "the ultimate prompt", the secret of ChatGPT and whatnot...but THIS is the real deal !! Next level ingenuity ! Congrats to you !
Hi everyone, looks like the ChatGPT site was updated today, I have applied the fix and the plugin should be working now. Thanks to those of you who notified me!...oh yea, I also added support for Excel files. Enjoy!
where can I find the plugin that you've updated?
Thank you.
@@darvski the link is in the description as well : tinyurl.com/5n7rjhar
Does not work at all
I've seen and followed many AI people channels and this channel is by far the best one I came across. Keep up the good work!
Thanks, I appreciate that!
@@automatemylife00 Thank you! The differential is that you shows what went wrong as well.
seriously.
This channel is simply run by brilliant web developer 💯👏🔥
@automatemylife00
For some reason, large files that need to be split are not being input piece by piece into ChatGPT (figured this out form testing / debugging). In other words, only Part 1 is being input.
Any suggestions / solutions?
Dude. Browser Injection? Mindblowing.
Dude. I did'nt know you could do these things in the browser, nevermind with ChatGPT. Super educational, valuable content! Subscribed.
JavaScript
Wow. This channel is so underrated.
This is the most unique yt gpt channel out there.
Thanks I appreciate that!
The fact you did this without GPT-4 makes it much more impressive.
This was GPT 3
3.5 free
Love the content! Just subbed
Skill level 100, Value level 1000 !! Amazing work
There seems to be an issue with the code. A few days ago it worked properly, today it isn't working anymore.
Wow! such a relaxing voice, teaching us how to automate GPT!
Subscribed! New Fan!
Thank you!
I have been using this since it came out and today the button is gone. I cant seem to get it back with either the plug in or putting the code directly into the page. Any advice
Yes, the plugin is no longer working. I am trying to figure out what is the culprit. Openai or Chrome? Unknown at this point.
I have updated the plugin, it should be working within 24hrs (google web store has to approve the update)
@@automatemylife00 Thanks for your quick response and fix. I can confirm the button is back! Thanks for your continued support and help in the community.
love you man you are awsome!!!
This is awesome but I kept on getting an error message: VM195:29 Uncaught TypeError: Cannot read properties of null (reading 'parentNode')
at :29:15
Thanks! Check out this video : ua-cam.com/video/wiw0JyzNdVM/v-deo.html
and see if it resolves the issue you are experiencing. Also keep in mind that you could also use the Chatgpt file uploader plugin if you just need to use it:
ChatGPT File Uploader
tinyurl.com/5n7rjhar
@@automatemylife00 Thank you! I will go through your video and give it a try!
works pretty well good job man!
Thank you Sir! This was an eye opener for me - brilliant. You have really broadened my understanding of everything ChatGPT.
I am so glad i came across your channel,I love yyour content and guidelines.I am busy with a project ,just trying it out and prompting
Your videos are so educational!
1. You have a real talent for explaining complex ideas in an easy-to-understand way.
2. Your content is so informative and well-researched.
3. I always learn something new from your videos.
4. Thank you for sharing your knowledge with us!
5. Your videos are a great resource for anyone looking to learn about [topic].
6. You have a real gift for teaching through video.
7. Your channel is a must-watch for anyone interested in [topic].
8. I appreciate all the hard work you put into making such informative videos.
9. Your dedication to providing accurate and helpful information is inspiring.
Bro used chatGPT to come up with 9 reasons
@@mohammad81295
VM67:28 Uncaught TypeError: Cannot read properties of null (reading 'parentNode')
at :28:15
(anonymous) @ VM67:28
_app-de11afa369c8a1b8.js:14 react-scroll-to-bottom: Please set "behavior" when calling "scrollToBottom". In future versions, the default behavior will be changed from smooth scrolling to discrete scrolling to align with HTML Standard.
I am getting this error
Check out this video : ua-cam.com/video/wiw0JyzNdVM/v-deo.html
and see if it resolves the issue you are experiencing. Also keep in mind that you could also use the Chatgpt file uploader plugin if you just need to use it:
ChatGPT File Uploader
tinyurl.com/5n7rjhar
Biggest problem is how many tokens it can remember from the conversation, meaning eventually the oldest messages will be lost in its memory
This
Yah, it basically has to be used as zero-shot and just summarize per chunk.
That's pretty clever, I'm impressed
this is great! mainly since this shows you can use ChatGPT itself to make an extension that improves the ChatGPT experience. Nice 👍👍
Oh i wasn't expecting to get a heart, thanks! ❤️
However please be cautious sending private info
@@SpookyKillerz Just disable chat history.
@@ibrahimdevx and you trust them from removing it? They scraped the whole internet and changed from non-profit to for-profit
Novice here and this video make my brain spark with curiosity.
Wow! I'll learn a lot by going through this tutorial step by step. I didn't know about Bookmarklets. Thanks a lot.
Why does noone mention the fact that ChatGPT can only handle 4096 tokens? So if the message is too long and you split it up into parts, it will only remember the last part
Thanks man. This is really helpful. Just unlocked a whole new domain of things that I now know are possible. Thanks again.
Great video! The question is - did You test chat gpt memory? That's great solutions, but probably when you ask chat about information from the beggining of your long file then it will start hallucinate.
good point, Chatgpt still has its limitations but perhaps feeding Chatgpt smaller chunks at a time will help it maintain its focus.
@@automatemylife00 It doesn't... the hard limit (for now) is 8K tokens (4K for GPT 3.5). Anthropic has a context token limit of 100K but it is weak compared to GPT.
@@jim77004 I've tried that tool, but I have no idea how to summit the file into Claude, could you share the tips?
Hey, does this extension has a git repo?
Great content !
If you are trying to replicate this, just a few precisions that I think can help :
The selector provided by chatGPT might not always work as expected. You can replace it with this one: "div.relative.flex.h-full.max-w-full.flex-1.overflow-hidden > div > main > div.absolute.bottom-0 > form > div > div:nth-child(1)".
Also, keep in mind that the bookmarklet code has a character limit of 2000. If you encounter any errors with the generated code, consider minifying it to fit within this limit.
I had to re run the propt using your selector advice, thanks so much is working now
can you repost the code now for us stupid ones? I am not sur exactly where to insert the correction. Thank you!!!
same thing here, if any of you can send us the revised code or where exactly we have to insert your line that would be great. For me it is just uploading the first part and then stops !!!
Alban, Thank you sooooo much
@@Eagleeyekiller Hey buddy, use this,
// Create button element
const button = document.createElement('button');
button.innerText = 'Submit File';
button.style.backgroundColor = 'green';
button.style.color = 'white';
button.style.padding = '5px';
button.style.border = 'none';
button.style.borderRadius = '5px';
button.style.margin = '5px';
// Create progress element
const progress = document.createElement('div');
progress.style.width = '99%';
progress.style.height = '5px';
progress.style.backgroundColor = 'grey';
// Create progress bar inside progress element
const progressBar = document.createElement('div');
progressBar.style.width = '0%';
progressBar.style.height = '100%';
progressBar.style.backgroundColor = 'blue';
// Append progress bar to progress element
progress.appendChild(progressBar);
// Find the element to insert before
const targetElement = document.querySelector('div.relative.flex.h-full.max-w-full.flex-1.overflow-hidden > div > main > div.absolute.bottom-0 > form > div > div:nth-child(1)');
// Insert button and progress elements before the target element
targetElement.parentNode.insertBefore(button, targetElement);
targetElement.parentNode.insertBefore(progress, targetElement);
// File types to accept
const acceptedFileTypes = ['.txt', '.js', '.py', '.ipynb', '.html', '.css', '.json', '.csv'];
// File input change event handler
button.addEventListener('click', function () {
const fileInput = document.createElement('input');
fileInput.type = 'file';
fileInput.accept = acceptedFileTypes.join(',');
fileInput.addEventListener('change', async function (event) {
const file = event.target.files[0];
const filename = file.name;
// Read the file as text
const reader = new FileReader();
reader.onload = async function (event) {
const fileContent = event.target.result;
const chunkSize = 15000;
const numChunks = Math.ceil(fileContent.length / chunkSize);
// Submit each chunk as a conversation
for (let i = 0; i < numChunks; i++) {
const start = i * chunkSize;
const chunk = fileContent.slice(start, start + chunkSize);
const part = i + 1;
// Submit conversation chunk
await submitConversation(chunk, part, filename);
// Update progress bar
progressBar.style.width = `${((i + 1) / numChunks) * 100}%`;
}
// Check if chatgpt is ready
let chatgptReady = false;
while (!chatgptReady) {
await new Promise((resolve) => setTimeout(resolve, 1000));
chatgptReady = !document.querySelector('.text-2xl > span:not(.invisible)');
}
// Update progress bar to turn blue
progressBar.style.backgroundColor = 'blue';
};
// Read the file as text
reader.readAsText(file);
});
// Trigger file input dialog
fileInput.click();
});
// Function to submit conversation chunk
async function submitConversation(text, part, filename) {
const textarea = document.querySelector("textarea[tabindex='0']");
const enterKeyEvent = new KeyboardEvent('keydown', {
bubbles: true,
cancelable: true,
keyCode: 13,
});
textarea.value = `Part ${part} of ${filename}:
${text}`;
textarea.dispatchEvent(enterKeyEvent);
}
great information. i just got subscribed love your contents
Such a brilliantly clear walk through. Thank you.
Hi!! ChatGPT site was updated again and it's not working automatically :( Is it possible to fix it?
Thanks for letting me know, Just submitted an update for the plugin. :)
Man, it seems like these AI tools are getting so out of control, that if you don't use them to your own advantage, you will be left so far behind everyone else. To be fair, it's really good for content creators (and more so if you use with Famester Social). You can create content, make it go popular straight away. I like where is this going, my only worry is that maybe some people would lose their jobs.
I appreciate the honesty, and agreed it would be tough when lot of people start getting fired and bots come in their place.
yo, totally agree
I'm too embarrassed to ask. How do you make it to submit pdf files. I did try to add .pdf into the prompt but I got gibberish long text maybe I assumed it cannot detect or read the pdf file.
OMFG and made all with the same chatgpt? 🤯
Ican't wait to finish the job to try it!
Thanks for the excellent content and greetings for everyone! ✌🇲🇽
That was excellent. Well done. Thank you.
Can you make it “see” images. Like flow charts? And or make it give us images? I know a plug-in coming for this feature but waitlists don’t like me lol
this just blew my mind. thanks for the share
Another 'poor man's option' instead of bookmark buttons and extensions that disappear would be wrapping it in a Tampermonkey script that always loads for the site. Also makes it easier to tweak and eyeball things.
An update occured in google chrome, and it´s not working anymore
with 3 errors:
VM86:31 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'parentNode')
Check out this video : ua-cam.com/video/wiw0JyzNdVM/v-deo.html
and see if it resolves the issue you are experiencing. Also keep in mind that you could also use the Chatgpt file uploader plugin if you just need to use it:
ChatGPT File Uploader
tinyurl.com/5n7rjhar
This is phenomenal work. I subscribed immediately.❤
Me too 😮
No words to say . Really amazing and great!
This is probably the most useful UA-cam clip I have seen in my life, thanks for this
it is Showing this error : Uncaught TypeError: Cannot read properties of null (reading 'parentNode') what should I do now ?
Check out this video : ua-cam.com/video/wiw0JyzNdVM/v-deo.html
and see if it resolves the issue you are experiencing. Also keep in mind that you could also use the Chatgpt file uploader plugin if you just need to use it:
ChatGPT File Uploader
tinyurl.com/5n7rjhar
I need this so badly - but get this error when pasting the code into the console?
VM193:30 Uncaught TypeError: Cannot read properties of null (reading 'parentNode')
at :30:15
Any ideas how to fix this?
This is astounding! Is there a way to create an external memory / access a database to retrieve info? That would be amazing! Really great work. Subscribed! :)
Following!
Following
prompt it my friend! prompt it!
@@garrettmarsh1102 im all ears on this one
One of use should try and reply here
WOW, great prompt man
I really would appreciate if you could upload a version of your plugin that is able to read pdf and maybe word files (although these can be easily transfered to txt.) Thank you in advance. Another question: I need gpt to analyze the content of the pdf/txt whatever files with some regulatory documents. Copying small chunks of text already works excellent but I need to upload huge files of text. so if you can programm something like this I am willing to make it worth you`re while.
CTRL+A CTRL+C CTRL+V
Can you import pdfs?
Nice. I’ve been trying to figure out how to code something like this for weeks now. 👍🏾
for some reason it does not work for me. when i click the bookmark, nothing happens... im using brave.
It's great, but can you include the ability to use .pdf .doc or .docx files also.
I will look into adding that.
@@automatemylife00 Please do it ASAP!
Your a Blessing from the Heaves Above!
Great stuff. Thanks. This is a supper useful addition. Please keep up the good work. Any chance it will be able to be able to do this with PDF files?? Or YT videos?
This will go viral if someone posts it in reddit.
…and thus prevented by strict alignment in a week. Keep it down law 😂
My reddit bot already has posted it
@@bestbotreview please teach me how to make bot 😊
Dont
God no, that place is a bunch of toxic incel lurkers & sensitive soy people. Too many extremes, I stay away.
We built Tammy AI to allow users to save summaries online so that they do not need to worry about downloading files.
is it just youtube summaries?
@@aa898246 for the moment. more interesting products in the pipeline.
@@SteveMoore-n1v I was gonna joke about it too, but I respect the honesty of your reply
Liked (loved!) and subscribed. That was bad ass my man. 👊🏼
Improvement. When you know the amount of chunks you can tell Chat-GPT to wait for all parts and the word #FINISHED# to avoid answers to every chunk.
In my tests, I've found that chunking doesn't get around the context limits. It works to get summaries, but the earlier chunks will fall out of memory.
@@jim77004 Ive used prompts to they memorize and just say read until i finished
But I don't know how long it takes.
I'd be interested, too, if somebody finds our how to avoid answers to every chunk.
@@jim77004 that’s my experience, too. Can anyone provide clarity on this topic?
I get a lot of projects in Hindi. Suggest one where I can give the project name and specify whether I need it in Hindi or English, and it should generate a 40-page project in one go. The project should contain only 5 to 7 headings, with more sentences under each heading, but without using numbered or point-wise explanations. How can i create code for this
But whats the point. If you tell it to optimise or do something with all of the code, it simply cannot do that. Because 15000 character in 3 parts or 45000 characters, it can't store at once to analyse. So what's the point ?
may i suggest waiting for "Confirmed" from Chatgpt before input the next chunk of the text. This way it allows Chatgpt to process the information so that it can be utilize and etc.
Is it placing this code in a console? Pressing enter key
// Create the button
const submitButton = document.createElement('button');
submitButton.textContent = 'Submit File';
submitButton.style.backgroundColor = 'green';
submitButton.style.color = 'white';
submitButton.style.padding = '5px';
submitButton.style.border = 'none';
submitButton.style.borderRadius = '5px';
submitButton.style.margin = '5px';
// Create the progress element
const progressElement = document.createElement('progress');
progressElement.style.width = '99%';
progressElement.style.height = '5px';
progressElement.style.backgroundColor = 'grey';
// Create the progress bar
const progressBar = document.createElement('div');
progressBar.style.width = '0%';
progressBar.style.height = '100%';
progressBar.style.backgroundColor = 'blue';
// Append the progress bar to the progress element
progressElement.appendChild(progressBar);
// Find the target element to insert before
const targetElement = document.querySelector('.flex.flex-col.w-full.py-2.flex-grow.md\\:py-3.md\\:pl-4');
// Insert the button and progress element before the target element
targetElement.parentNode.insertBefore(progressElement, targetElement);
targetElement.parentNode.insertBefore(submitButton, targetElement);
// Add click event listener to the button
submitButton.addEventListener('click', async function () {
// Create the file input element
const fileInput = document.createElement('input');
fileInput.type = 'file';
fileInput.accept = '.txt, .js, .py, .html, .css, .json, .csv';
// Listen for file selection
fileInput.addEventListener('change', async function (event) {
const file = event.target.files[0];
const reader = new FileReader();
// Read the file as text
reader.readAsText(file);
reader.onload = async function () {
const text = reader.result;
// Split text into chunks
const chunkSize = 15000;
const numChunks = Math.ceil(text.length / chunkSize);
let chatgptReady = false;
for (let i = 0; i < numChunks; i++) {
const start = i * chunkSize;
const chunk = text.slice(start, start + chunkSize);
const part = i + 1;
const filename = file.name;
const chunkWithMessage = `Do not respond with anything other than to acknowledge that you have received this chunk of the file.
Part ${part} of ${numChunks}:
${chunk}`;
// Submit chunk to conversation
await submitConversation(chunkWithMessage, part, filename);
// Update progress bar
progressBar.style.width = `${((i + 1) / numChunks) * 100}%`;
// Check if chatgpt is ready
while (!chatgptReady) {
await new Promise((resolve) => setTimeout(resolve, 1000));
chatgptReady = !document.querySelector('.text-2xl > span:not(.invisible)');
}
}
// Set progress bar to blue when all chunks are submitted
progressBar.style.backgroundColor = 'blue';
};
});
// Trigger file input click
fileInput.click();
});
// Function to submit conversation
async function submitConversation(text, part, filename) {
const textarea = document.querySelector("textarea[tabindex='0']");
const enterKeyEvent = new KeyboardEvent('keydown', {
bubbles: true,
cancelable: true,
keyCode: 13,
});
textarea.value = `Part ${part} of ${filename}:
${text}`;
textarea.dispatchEvent(enterKeyEvent);
}
This is weird. All day today I've seen the Submit button but now that I was going to upload a file, it's gone. I don't remember changing anything but I disabled all of my ChatGPT plugins and other Chrome extensions. Plus, I logged out and back in again. Still not there. Any ideas why?
Great work.... I was running into a small error creating the bookmarklet... Figured out it does not like comments like // removing comments from code and it works now I added some file types i needed ;)
Not I need to figure out to download the new file as well and we will really have something cooking
I'm using the firefox plugin. unfortunately the button does not appear. popupblcker is deactivated. what am I doing wrong?
The was amazing!! Is it possible to make it possible to upload pdf files? Given that the pdf format is much more complex, do you think it is possible?
Great content. very informative. However, I'm on a macbook pro. 2:29 right click isn't giving me that drop down menu. What am I doing wrong?
To open the last DevTools panel, click the Three-dot menu. button to the right of the address bar and select More Tools > Developer Tools.
If the code it produced for you worked, why not provide that code instead of the prompt to generate that code? When I supplied it with your prompt, I got a slightly different result each time I submitted it. Some of them did create a submit button but without the ability to continue for file sizes over 15000. Some generated errors and no submit button at all.
He provided the plugin in the description. Isn't that enough?
the bookmark part is not working for me. When i click the bookmark that i made following your instructions nothing happens. No button.
here is an updated booklet that works now:
javascript:(function() { const button = document.createElement("button"); button.textContent = "Submit File"; button.style.backgroundColor = "green"; button.style.color = "white"; button.style.padding = "5px"; button.style.border = "none"; button.style.borderRadius = "5px"; button.style.margin = "5px"; const progressElement = document.createElement("progress"); progressElement.style.width = "99%"; progressElement.style.height = "5px"; progressElement.style.backgroundColor = "grey"; const progressBar = document.createElement("div"); progressBar.style.width = "0%"; progressBar.style.height = "100%"; progressBar.style.backgroundColor = "blue"; progressElement.appendChild(progressBar); const targetElement = document.querySelector('.flex.flex-col.w-full.py-\\[10px\\].flex-grow.md\\:py-4.md\\:pl-4.relative.border.border-black\\/10.bg-white.dark\\:border-gray-900\\/50.dark\\:text-white.dark\\:bg-gray-700.rounded-xl.shadow-xs.dark\\:shadow-xs'); if (targetElement) { targetElement.parentNode.insertBefore(progressElement, targetElement); targetElement.parentNode.insertBefore(button, targetElement); } else { console.error("Target element not found!"); } async function submitConversation(text, part, filename) { const textarea = document.querySelector("textarea[tabindex='0']"); const enterKeyEvent = new KeyboardEvent("keydown", { bubbles: true, cancelable: true, keyCode: 13, }); textarea.value = `Part ${part} of ${filename}:
${text}`; textarea.dispatchEvent(enterKeyEvent); } button.addEventListener("click", async () => { const fileInput = document.createElement("input"); fileInput.type = "file"; fileInput.accept = ".txt, .js, .py, .html, .css, .json, .csv"; fileInput.click(); fileInput.addEventListener("change", async (event) => { const file = event.target.files[0]; const filename = file.name; const reader = new FileReader(); reader.onload = async (e) => { const fileContent = e.target.result; const chunks = chunkString(fileContent, 15000); const numChunks = chunks.length; let progress = 0; for (let i = 0; i < numChunks; i++) { const chunk = chunks[i]; await submitConversation(chunk, i + 1, filename); progress = ((i + 1) / numChunks) * 100; progressBar.style.width = `${progress}%`; let chatgptReady = false; while (!chatgptReady) { await new Promise((resolve) => setTimeout(resolve, 1000)); chatgptReady = !document.querySelector(".text-2xl > span:not(.invisible)"); } } progressBar.style.backgroundColor = "blue"; }; reader.readAsText(file); }); }); function chunkString(str, size) { const numChunks = Math.ceil(str.length / size); const chunks = new Array(numChunks); for (let i = 0, o = 0; i < numChunks; ++i, o += size) { chunks[i] = str.substr(o, size); } return chunks; }})();
this really works! Thanx a lot!
bro ,you made my day
I created a similar script that breaks large prompts into chunks except that you don't even need to hit the "Stop generating" button, it's completely autonomous and it will just wait for part 2, 3, 4 and so on until it completes the process. Then after completion, ChatGPT will ask how it can help you. Right now its just a basic python script but I do want to make into a chrome extension. I'm not a coder or anything so ChatGPT managed to help me get as far as I could with it. Perhaps I will upload a video showcasing it.
Edit: I just uploaded a short video showcasing the script in case anyone is interested.
send me this lol
@@Swalla I have a video on my channel that will include it.
I added that code to the console and it did add the button and the progress bar. But now it won't go away😐
How do I make it go away, can't find the code in the console to delete it.
First: Many Thanks.
I got an ERROR: "Uncaught DOMException: Failed to execute 'querySelector' on 'Document': '.flex.flex-col.w-full.py-2.flex-grow.md:py-3.md:pl-4' is not a valid selector.
at :27:30" - Any Suggestions?
same question. VM205:30 Uncaught TypeError: Cannot read properties of null (reading 'parentNode')
at :30:15
check out this video : ua-cam.com/video/wiw0JyzNdVM/v-deo.html
and see if it resolves the issue you are experiencing. Also keep in mind that you could also use the Chatgpt file uploader plugin if you just need to use it:
ChatGPT File Uploader
tinyurl.com/5n7rjhar
Is there a way to insert PDF files as well? I just tried to convert my PDF to TXT but chat GPT didn't like the file. So in this particular cas it didn't work witch is sad.
Wow, I can't seem to stop watching all of your videos. They are absolutely amazing!
Thanks!
I tried to upload a book but it didnt continue reading the next part of it. How can i prompt to continue reading the second part?
Just had a similar problem. Did you find a way to work around that?
Excellent job. I met this issue when I try to insert the code in to web page in Chrome browser.
VM432:25 Uncaught DOMException: Failed to execute 'querySelector' on 'Document': '.flex.flex-col.w-full.py-2.flex-grow.md:py-3.md:pl-4' is not a valid selector.
at :25:30
try this selector : .flex.flex-col.w-full.py-2.flex-grow.md\\:py-3.md\\:pl-4
hope that helps.
Uncaught TypeError: Cannot read properties of null (reading 'parentNode')
at :30:15
its showing this error wt to doo
i got fixed that but its not showing uploading button
Check out this video : ua-cam.com/video/wiw0JyzNdVM/v-deo.html
and see if it resolves the issue you are experiencing. Also keep in mind that you could also use the Chatgpt file uploader plugin if you just need to use it:
ChatGPT File Uploader
tinyurl.com/5n7rjhar
excellent stuff, thanks for this
Glad you enjoyed it!
I have installed the plugin from Chrome Marketplace. I load a text document of about 8000 characters and the chat reports "The message you submitted was too long, please reload the conversation and submit something shorter".
Why is that?
I was just about to use it. Is it possible that it is no longer available? The upload prompt is missing now.
The idea of the Google extension is very good I would like to see more extensions I thank you for your time
love u boss
how to solve when that happened:VM262:28 Uncaught TypeError: Cannot read properties of null (reading 'parentNode')
at :28:15
Check out this video : ua-cam.com/video/wiw0JyzNdVM/v-deo.html
and see if it resolves the issue you are experiencing. Also keep in mind that you could also use the Chatgpt file uploader plugin if you just need to use it:
ChatGPT File Uploader
tinyurl.com/5n7rjhar
I did copy paste the code generated by chatgpt into the console, however it is taking a very long time (more than 10 min) to generate the submit file button . Why is this?
it's so cool i can't wait to try it by myself right now
i keep getting errors in the console...been self diagnosing in gpt but no firm result
Somehow not working for me, I get many errors..
Hi, when i copy the code and hit enter in the Console I get this message : VM103:25 Uncaught DOMException: Failed to execute 'querySelector' on 'Document': '.flex.flex-col.w-full.py-2.flex-grow.md:py-3.md:pl-4' is not a valid selector.
at :25:32
Check out this video : ua-cam.com/video/wiw0JyzNdVM/v-deo.html
and see if it resolves the issue you are experiencing. Also keep in mind that you could also use the Chatgpt file uploader plugin if you just need to use it:
ChatGPT File Uploader
tinyurl.com/5n7rjhar
I was completely unaware that this was possible with ChatGPT - Awesome Tutorial.
Brilliant. Smarty pants. Appreciate your time and insight into this method.
Thanks! I'm glad you enjoyed it.
The background music is really good
I am getting this error "Uncaught TypeError: Cannot read properties of null (reading 'parentNode')
at :25:15" when I copy paste the code in the console. Can you please help me out
me too 😔😔
@@artiflix112 same any fix found?
@@anjaschwager8506 No, I uninstalled the extension because I thought you could send files as files, not text, and then the chunk system complicates the thing.
Check out this video : ua-cam.com/video/wiw0JyzNdVM/v-deo.html
and see if it resolves the issue you are experiencing. Also keep in mind that you could also use the Chatgpt file uploader plugin if you just need to use it:
ChatGPT File Uploader
tinyurl.com/5n7rjhar
this is insane homie thanks
I try the plug in but does not read office word files...