Uploading Files to ChatGPT: A More Powerful Experience

Поділитися
Вставка
  • Опубліковано 27 січ 2025

КОМЕНТАРІ • 968

  • @IreEternal
    @IreEternal Рік тому +6

    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!

  • @LabGecko
    @LabGecko Рік тому +12

    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.

  • @SenselessTalk
    @SenselessTalk Рік тому +134

    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

    • @ex0stasis72
      @ex0stasis72 Рік тому +7

      Probably AI generated, but as I'm on mobile right now, this is very appreciated.

    • @GamingNoobpro-dp3iq
      @GamingNoobpro-dp3iq Рік тому

      Thank you my good sir.

  •  Рік тому +55

    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 !!!

    • @videoxplorer
      @videoxplorer Рік тому +2

      Pierre - did you find yourself going with this solution or still doing it the API route?

  • @SaltyRad
    @SaltyRad Рік тому +340

    Bro this is high quality stuff. You taught me something I didn’t know I could do with this

    • @SpookyKillerz
      @SpookyKillerz Рік тому +2

      However please be catious sending private info

    • @audiophile...
      @audiophile... Рік тому +1

      ​@@SpookyKillerz😢 please explain how and more on this

    • @ElNicopewpew
      @ElNicopewpew Рік тому

      @@audiophile... keys and passwords and such

  • @laStar972chuck
    @laStar972chuck Рік тому +11

    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 !

  • @automatemylife00
    @automatemylife00  Рік тому +7

    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!

    • @darvski
      @darvski Рік тому +3

      where can I find the plugin that you've updated?

    • @skysquid2
      @skysquid2 Рік тому

      Thank you.

    • @automatemylife00
      @automatemylife00  Рік тому +1

      @@darvski the link is in the description as well : tinyurl.com/5n7rjhar

    • @fototoken
      @fototoken Рік тому +1

      Does not work at all

  • @francycharuto
    @francycharuto Рік тому +114

    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!

    • @automatemylife00
      @automatemylife00  Рік тому +9

      Thanks, I appreciate that!

    • @francycharuto
      @francycharuto Рік тому

      @@automatemylife00 Thank you! The differential is that you shows what went wrong as well.

    • @mainwon
      @mainwon Рік тому

      seriously.

    • @lucaszecat
      @lucaszecat Рік тому

      This channel is simply run by brilliant web developer 💯👏🔥

    • @jlaroche0
      @jlaroche0 Рік тому

      @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?

  • @JustKamKam
    @JustKamKam Рік тому +1

    Dude. Browser Injection? Mindblowing.

  • @CheapCheerful
    @CheapCheerful Рік тому +72

    Dude. I did'nt know you could do these things in the browser, nevermind with ChatGPT. Super educational, valuable content! Subscribed.

  • @temp911Luke
    @temp911Luke Рік тому +6

    Wow. This channel is so underrated.
    This is the most unique yt gpt channel out there.

  • @ibrahimdevx
    @ibrahimdevx Рік тому +9

    The fact you did this without GPT-4 makes it much more impressive.

  • @byteolu
    @byteolu Рік тому +1

    Love the content! Just subbed

  • @Airsoftshowoffs
    @Airsoftshowoffs Рік тому +26

    Skill level 100, Value level 1000 !! Amazing work

  • @dali.g
    @dali.g Рік тому +2

    There seems to be an issue with the code. A few days ago it worked properly, today it isn't working anymore.

  • @CoachDeb
    @CoachDeb Рік тому

    Wow! such a relaxing voice, teaching us how to automate GPT!
    Subscribed! New Fan!

  • @wjm103193
    @wjm103193 Рік тому +3

    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

    • @dmark32
      @dmark32 Рік тому

      Yes, the plugin is no longer working. I am trying to figure out what is the culprit. Openai or Chrome? Unknown at this point.

    • @automatemylife00
      @automatemylife00  Рік тому +1

      I have updated the plugin, it should be working within 24hrs (google web store has to approve the update)

    • @dmark32
      @dmark32 Рік тому

      @@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.

  • @manojpandey4724
    @manojpandey4724 Рік тому +2

    love you man you are awsome!!!

  • @saffrontheshowydachshund2233
    @saffrontheshowydachshund2233 Рік тому +4

    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

    • @automatemylife00
      @automatemylife00  Рік тому

      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

    • @saffrontheshowydachshund2233
      @saffrontheshowydachshund2233 Рік тому

      @@automatemylife00 Thank you! I will go through your video and give it a try!

  • @leroytheconvoy713
    @leroytheconvoy713 Рік тому +1

    works pretty well good job man!

  • @ozsuncoast
    @ozsuncoast Рік тому +7

    Thank you Sir! This was an eye opener for me - brilliant. You have really broadened my understanding of everything ChatGPT.

  • @desigantharmen8664
    @desigantharmen8664 Рік тому +1

    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

  • @talatnomanqurashi672
    @talatnomanqurashi672 Рік тому +3

    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.

  • @Qawd1230
    @Qawd1230 Рік тому +3

    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

    • @automatemylife00
      @automatemylife00  Рік тому

      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

  • @NaitorStudios
    @NaitorStudios Рік тому +23

    Biggest problem is how many tokens it can remember from the conversation, meaning eventually the oldest messages will be lost in its memory

  • @RobertoCarlos-ke2dg
    @RobertoCarlos-ke2dg Рік тому +1

    That's pretty clever, I'm impressed

  • @clay8256
    @clay8256 Рік тому +80

    this is great! mainly since this shows you can use ChatGPT itself to make an extension that improves the ChatGPT experience. Nice 👍👍

    • @clay8256
      @clay8256 Рік тому +2

      Oh i wasn't expecting to get a heart, thanks! ❤️

    • @SpookyKillerz
      @SpookyKillerz Рік тому

      However please be cautious sending private info

    • @ibrahimdevx
      @ibrahimdevx Рік тому

      @@SpookyKillerz Just disable chat history.

    • @SpookyKillerz
      @SpookyKillerz Рік тому

      @@ibrahimdevx and you trust them from removing it? They scraped the whole internet and changed from non-profit to for-profit

  • @javieramor8395
    @javieramor8395 Рік тому

    Novice here and this video make my brain spark with curiosity.

  • @ScottzPlaylists
    @ScottzPlaylists Рік тому +7

    Wow! I'll learn a lot by going through this tutorial step by step. I didn't know about Bookmarklets. Thanks a lot.

  • @boas_
    @boas_ Рік тому +6

    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

  • @jlaroche0
    @jlaroche0 Рік тому +2

    Thanks man. This is really helpful. Just unlocked a whole new domain of things that I now know are possible. Thanks again.

  • @cieluchowski
    @cieluchowski Рік тому +10

    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
      @automatemylife00  Рік тому +4

      good point, Chatgpt still has its limitations but perhaps feeding Chatgpt smaller chunks at a time will help it maintain its focus.

    • @jim77004
      @jim77004 Рік тому +1

      @@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.

    • @caoyuhao
      @caoyuhao Рік тому

      @@jim77004 I've tried that tool, but I have no idea how to summit the file into Claude, could you share the tips?

  • @Smarandii
    @Smarandii Рік тому +2

    Hey, does this extension has a git repo?

  • @albanmellinger8647
    @albanmellinger8647 Рік тому +57

    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.

    • @geo4design
      @geo4design Рік тому +4

      I had to re run the propt using your selector advice, thanks so much is working now

    • @Eagleeyekiller
      @Eagleeyekiller Рік тому +5

      can you repost the code now for us stupid ones? I am not sur exactly where to insert the correction. Thank you!!!

    • @ahmadkargar
      @ahmadkargar Рік тому

      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 !!!

    • @frankhand9463
      @frankhand9463 Рік тому

      Alban, Thank you sooooo much

    • @ash3xa
      @ash3xa Рік тому +3

      @@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);
      }

  • @felixofori8930
    @felixofori8930 Рік тому

    great information. i just got subscribed love your contents

  • @FrazerKirkman
    @FrazerKirkman Рік тому +10

    Such a brilliantly clear walk through. Thank you.

  • @ofirdekel2748
    @ofirdekel2748 8 місяців тому +1

    Hi!! ChatGPT site was updated again and it's not working automatically :( Is it possible to fix it?

    • @automatemylife00
      @automatemylife00  8 місяців тому

      Thanks for letting me know, Just submitted an update for the plugin. :)

  • @kiranicharles0112
    @kiranicharles0112 Рік тому +175

    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.

    • @juanarnal004
      @juanarnal004 Рік тому

      I appreciate the honesty, and agreed it would be tough when lot of people start getting fired and bots come in their place.

    • @RamiroCastillo-x6l
      @RamiroCastillo-x6l Рік тому

      yo, totally agree

  • @onubunnners
    @onubunnners Рік тому +2

    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.

  • @megamanxx585
    @megamanxx585 Рік тому +5

    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! ✌🇲🇽

  • @yeknafaskesh1257
    @yeknafaskesh1257 Рік тому +1

    That was excellent. Well done. Thank you.

  • @TheSacredGrove
    @TheSacredGrove Рік тому +5

    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

  • @najeemtakiyu-deen4684
    @najeemtakiyu-deen4684 Рік тому +1

    this just blew my mind. thanks for the share

  • @sprinteroptions9490
    @sprinteroptions9490 Рік тому +4

    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.

  • @MetalicaruSPro
    @MetalicaruSPro Рік тому +2

    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')

    • @automatemylife00
      @automatemylife00  Рік тому

      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

  • @patrickorone1149
    @patrickorone1149 Рік тому +11

    This is phenomenal work. I subscribed immediately.❤

  • @MrMahesh7001
    @MrMahesh7001 Рік тому +7

    No words to say . Really amazing and great!

  • @TheCobste
    @TheCobste Рік тому

    This is probably the most useful UA-cam clip I have seen in my life, thanks for this

  • @falakrustagi4300
    @falakrustagi4300 Рік тому +4

    it is Showing this error : Uncaught TypeError: Cannot read properties of null (reading 'parentNode') what should I do now ?

    • @automatemylife00
      @automatemylife00  Рік тому

      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

  • @ThomasJankovich-o9b
    @ThomasJankovich-o9b 10 місяців тому

    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?

  • @adamschneller392
    @adamschneller392 Рік тому +17

    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! :)

  • @manuelherrerahipnotista8586
    @manuelherrerahipnotista8586 Рік тому +1

    WOW, great prompt man

  • @coop_gamer_one
    @coop_gamer_one Рік тому +4

    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.

  • @JJ1NE
    @JJ1NE Рік тому +1

    Can you import pdfs?

  • @donharris8846
    @donharris8846 Рік тому +5

    Nice. I’ve been trying to figure out how to code something like this for weeks now. 👍🏾

  • @pathumwijayasooriya4302
    @pathumwijayasooriya4302 Рік тому

    for some reason it does not work for me. when i click the bookmark, nothing happens... im using brave.

  • @MSF425
    @MSF425 Рік тому +3

    It's great, but can you include the ability to use .pdf .doc or .docx files also.

  • @emporiumdao2222
    @emporiumdao2222 Рік тому +1

    Your a Blessing from the Heaves Above!

  • @LiberyTree
    @LiberyTree Рік тому +11

    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?

  • @vectoralphaSec
    @vectoralphaSec Рік тому +236

    This will go viral if someone posts it in reddit.

    • @funkydrops
      @funkydrops Рік тому +12

      …and thus prevented by strict alignment in a week. Keep it down law 😂

    • @bestbotreview
      @bestbotreview Рік тому +2

      My reddit bot already has posted it

    • @jimmy6589
      @jimmy6589 Рік тому

      ​@@bestbotreview please teach me how to make bot 😊

    • @jarnolinds1954
      @jarnolinds1954 Рік тому

      Dont

    • @Lemurai
      @Lemurai Рік тому

      God no, that place is a bunch of toxic incel lurkers & sensitive soy people. Too many extremes, I stay away.

  • @SteveMoore-n1v
    @SteveMoore-n1v Рік тому +24

    We built Tammy AI to allow users to save summaries online so that they do not need to worry about downloading files.

    • @aa898246
      @aa898246 Рік тому +2

      is it just youtube summaries?

    • @SteveMoore-n1v
      @SteveMoore-n1v Рік тому +1

      @@aa898246 for the moment. more interesting products in the pipeline.

    • @MM-ts9jy
      @MM-ts9jy Рік тому

      @@SteveMoore-n1v I was gonna joke about it too, but I respect the honesty of your reply

  • @PaulChambersCo
    @PaulChambersCo Рік тому

    Liked (loved!) and subscribed. That was bad ass my man. 👊🏼

  • @robbe4711
    @robbe4711 Рік тому +13

    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.

    • @jim77004
      @jim77004 Рік тому +1

      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.

    • @carlospc223
      @carlospc223 Рік тому

      ​@@jim77004 Ive used prompts to they memorize and just say read until i finished
      But I don't know how long it takes.

    • @Kraterlandschaft
      @Kraterlandschaft Рік тому

      I'd be interested, too, if somebody finds our how to avoid answers to every chunk.

    • @danielagema
      @danielagema Рік тому

      @@jim77004 that’s my experience, too. Can anyone provide clarity on this topic?

  • @umeshchandraverma6518
    @umeshchandraverma6518 4 місяці тому

    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

  • @stabgan
    @stabgan Рік тому +3

    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 ?

  • @k9clubme
    @k9clubme Рік тому +9

    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.

    • @valentineonuchukwu9694
      @valentineonuchukwu9694 Рік тому

      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);
      }

  • @stokedbeachbum
    @stokedbeachbum Рік тому

    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?

  • @rogertheorangecat
    @rogertheorangecat Рік тому +3

    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

  • @mist2559
    @mist2559 Рік тому

    I'm using the firefox plugin. unfortunately the button does not appear. popupblcker is deactivated. what am I doing wrong?

  • @carlosmgpinheiro
    @carlosmgpinheiro Рік тому +3

    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?

  • @Cadlactom
    @Cadlactom Рік тому

    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?

    • @automatemylife00
      @automatemylife00  Рік тому

      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.

  • @euthydemos
    @euthydemos Рік тому +6

    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.

    • @setsu2221
      @setsu2221 Рік тому +1

      He provided the plugin in the description. Isn't that enough?

  • @TheZime
    @TheZime Рік тому

    the bookmark part is not working for me. When i click the bookmark that i made following your instructions nothing happens. No button.

  • @denkikoiji
    @denkikoiji Рік тому +5

    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; }})();

    • @rs-wd9or
      @rs-wd9or Рік тому

      this really works! Thanx a lot!

  • @abhii8713
    @abhii8713 Рік тому +1

    bro ,you made my day

  • @DerpyNoodIe
    @DerpyNoodIe Рік тому +3

    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.

    • @Swalla
      @Swalla Рік тому

      send me this lol

    • @DerpyNoodIe
      @DerpyNoodIe Рік тому

      @@Swalla I have a video on my channel that will include it.

  • @saranshpradeep6301
    @saranshpradeep6301 Рік тому

    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.

  • @kalhosni
    @kalhosni Рік тому +1

    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?

    • @sourabharya7946
      @sourabharya7946 Рік тому

      same question. VM205:30 Uncaught TypeError: Cannot read properties of null (reading 'parentNode')
      at :30:15

    • @automatemylife00
      @automatemylife00  Рік тому

      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

  • @wietsevanmeerbeeck5957
    @wietsevanmeerbeeck5957 Рік тому +1

    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.

  • @futurizerush
    @futurizerush Рік тому +2

    Wow, I can't seem to stop watching all of your videos. They are absolutely amazing!

  • @parsaazari8278
    @parsaazari8278 Рік тому +1

    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?

    • @barbudania
      @barbudania Рік тому

      Just had a similar problem. Did you find a way to work around that?

  • @caoyuhao
    @caoyuhao Рік тому +1

    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

    • @automatemylife00
      @automatemylife00  Рік тому

      try this selector : .flex.flex-col.w-full.py-2.flex-grow.md\\:py-3.md\\:pl-4
      hope that helps.

  • @NeoTrader-D
    @NeoTrader-D Рік тому

    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

    • @automatemylife00
      @automatemylife00  Рік тому

      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

  • @StephenBeale
    @StephenBeale Рік тому +2

    excellent stuff, thanks for this

  • @Kondarv
    @Kondarv Рік тому

    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?

  • @hajotv
    @hajotv Рік тому

    I was just about to use it. Is it possible that it is no longer available? The upload prompt is missing now.

  • @vhslagter1
    @vhslagter1 Рік тому

    The idea of the Google extension is very good I would like to see more extensions I thank you for your time

  • @rishabhmishra4224
    @rishabhmishra4224 Рік тому

    love u boss

  • @fezercook
    @fezercook Рік тому

    how to solve when that happened:VM262:28 Uncaught TypeError: Cannot read properties of null (reading 'parentNode')
    at :28:15

    • @automatemylife00
      @automatemylife00  Рік тому

      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

  • @colarey
    @colarey Рік тому

    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?

  • @代文凯
    @代文凯 Рік тому +1

    it's so cool i can't wait to try it by myself right now

  • @gavinpercy.
    @gavinpercy. Рік тому

    i keep getting errors in the console...been self diagnosing in gpt but no firm result

  • @pjoshi6140
    @pjoshi6140 Рік тому +1

    Somehow not working for me, I get many errors..

  • @remi.bolduc
    @remi.bolduc Рік тому +1

    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

    • @automatemylife00
      @automatemylife00  Рік тому

      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

  • @xzendor7digitalartcreations
    @xzendor7digitalartcreations Рік тому +1

    I was completely unaware that this was possible with ChatGPT - Awesome Tutorial.

  • @insight-guy
    @insight-guy Рік тому +1

    Brilliant. Smarty pants. Appreciate your time and insight into this method.

  • @MrMikkyn
    @MrMikkyn Рік тому

    The background music is really good

  • @swathireddy8636
    @swathireddy8636 Рік тому +1

    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

    • @artiflix112
      @artiflix112 Рік тому

      me too 😔😔

    • @anjaschwager8506
      @anjaschwager8506 Рік тому

      @@artiflix112 same any fix found?

    • @artiflix112
      @artiflix112 Рік тому

      @@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.

    • @automatemylife00
      @automatemylife00  Рік тому

      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

  • @rauchu5861
    @rauchu5861 Рік тому

    this is insane homie thanks

  • @AlbaRStudio23
    @AlbaRStudio23 Рік тому

    I try the plug in but does not read office word files...