The Official ChatGTP cheat code thread.

Micky Mikey

Veteran
Supporter
Joined
Sep 27, 2013
Messages
16,043
Reputation
3,005
Daps
89,701
So far I've used it for the following;
Write a children's book
Update my resume
Assist me in writing code
Regularly use it to write emails
Used it to write SOP's and other documentations for my job
Used it as a personal therapist to talk through my thoughts
Used it for midjourney prompts
 

KBtheKey

Top Tier
Joined
Jan 4, 2017
Messages
6,572
Reputation
1,078
Daps
15,499
Reppin
#Swhtx
Buddy probably thinks ChatGPT is some underground thing
It was some months ago but now with it being in front street and the current youth being tech savvy from like 3 years old i doubt there will be that many people that don't try to take advantage of it in some way. Really shyt like this is part of our evolution
 

bnew

Veteran
Joined
Nov 1, 2015
Messages
58,200
Reputation
8,613
Daps
161,844
just created a bookmarklet that will extract tiktok.com embed urls on thecoli, convert to proper url format and archive them on tik.fail website so that if tiktok video later gets deleted it might be recoverable.
Code:
javascript: (function() {
    var tiktokUrls = [];
    var spans = document.querySelectorAll('span[data-s9e-mediaembed-iframe]');
    for (var i = 0; i < spans.length; i++) {
        var span = spans[i];
        var data = JSON.parse(span.getAttribute('data-s9e-mediaembed-iframe'));
        if (data[5].indexOf('\/\/www.tiktok.com\/embed\/') === 0) {
            var url = 'https:' + data[5];
            if (tiktokUrls.indexOf(url) === -1) {
                tiktokUrls.push(url);
            }
        }
    }
    for (var i = 0; i < tiktokUrls.length; i++) {
        window.open('https://tik.fail/?url=' + tiktokUrls[i]);
    }
})();


or

javascript: (function() { var tiktokUrls = []; var spans = document.querySelectorAll('span[data-s9e-mediaembed-iframe]'); for (var i = 0; i < spans.length; i++) { var span = spans[i]; var data = JSON.parse(span.getAttribute('data-s9e-mediaembed-iframe')); if (data[5].indexOf('\/\/www.tiktok.com\/embed\/') === 0) { var url = 'https:' + data[5]; if (tiktokUrls.indexOf(url) === -1) { tiktokUrls.push(url); } } } for (var i = 0; i < tiktokUrls.length; i++) { window.open('https://tik.fail/?url=' + tiktokUrls[i]); }})();

it took me two about 6-8 minutes and 2 attempts using bing chat which also uses gpt-4

This updated version of the bookmarklet uses the indexOf method to check if a TikTok URL is already in the tiktokUrls array before adding it. This ensures that there are no duplicate TikTok URLs in the array, so only unique TikTok URLs will be opened in new tabs.

You can use this updated bookmarklet in the same way as the previous one: by creating a new bookmark and pasting the above code into the URL field. Then, when you’re on a page with TikTok URLs, you can click the bookmark to run the bookmarklet and open the unique TikTok URLs in new tabs.

you have to allow popups on thecoli.com so that it'll archive more than one url.
PHexNl7.png


my 1st prompt was.

write a bookmarketlet that extracts www.tiktok.com urls from the html source page and looks similar to this "\/\/"\/\/www.tiktok.com\/embed\/7189755478090566917" and convert to a the properly formatted url "https://www.tiktok.com/embed/7189755478090566917" . the tiktok url ID will always be unique digits such as "7189755478090566917" is in the example url i provided. the bookmarklet must should use javascript:void(window.open('https://tik.fail/?url=' + document.location.href));
so that it inserts found tiktok urls like javascript:void(window.open('https://tik.fail/?url=https://www.tiktok.com/embed/7189755478090566917' + document.location.href));

source page examples are below


<span data-s9e-mediaembed="tiktok" style="width:340px"><span style="padding-bottom:205.882353%"><span data-s9e-mediaembed-iframe='["allowfullscreen","","scrolling","no","src","\/\/www.tiktok.com\/embed\/7189755478090566917"]'></span></span></span><br />
<span data-s9e-mediaembed="tiktok" style="width:340px"><span style="padding-bottom:205.882353%"><span data-s9e-mediaembed-iframe='["allowfullscreen","","scrolling","no","src","\/\/www.tiktok.com\/embed\/7242633306418728219"]'></span></span></span><br />
<span data-s9e-mediaembed="tiktok" style="width:340px"><span style="padding-bottom:205.882353%"><span data-s9e-mediaembed-iframe='["allowfullscreen","","scrolling","no","src","\/\/www.tiktok.com\/embed\/7265074208890228001"]'></span></span></span><br />
<br />
<span data-s9e-mediaembed="tiktok" style="width:340px"><span style="padding-bottom:205.882353%"><span data-s9e-mediaembed-iframe='["allowfullscreen","","scrolling","no","src","\/\/www.tiktok.com\/embed\/7257913645940739355"]'></span></span></span><br />
<br />



and then i just asked it to remove duplicate urls to avoid links that posters Quote.

edit:

more AI help
Prompt: write easy instructions to add a bookmarklet to the browser toolbar.

Sure! Here are the easy instructions to add a bookmarklet to your browser toolbar:

  1. Open your web browser and go to the Bookmarks menu. In most browsers, this can be found by clicking on the Menu button (usually represented by three horizontal lines or dots) in the top-right corner of the window, and then selecting Bookmarks from the drop-down menu.
  2. In the Bookmarks menu, select Bookmark Manager or Show All Bookmarks. This will open a new tab or window with your bookmarks.
  3. In the Bookmark Manager, click on the Organize or Add New Bookmark button, and then select Add Page or New Bookmark from the drop-down menu.
  4. In the New Bookmark dialog box, enter a name for your bookmarklet in the Name field, and paste the bookmarklet code into the URL field.
  5. Click on the Save or Add button to save your new bookmarklet.
  6. Your new bookmarklet should now appear in your bookmarks. To add it to your browser toolbar, simply drag and drop it from the Bookmark Manager onto your toolbar.
That’s it! You can now use your bookmarklet by clicking on it in your browser toolbar whenever you want to run it.
 
Last edited:

bnew

Veteran
Joined
Nov 1, 2015
Messages
58,200
Reputation
8,613
Daps
161,844
created a CopyQ action using Bing chat(precise), it took like 2+ dozen prompts but thats on me since i didn't know how to communicate my request effectively.

i wanted to create this because I got tired of copying and pasting urls from twitter or instagram embeds or elsewhere that looks like https://twitter.com/nbcwashington/status/1699945306236887477?ref_src=twsrc%5Etfw%7Ctwcamp%5Etweetembed%7Ctwterm%5E1699945306236887477%7Ctwgr%5E%7Ctwcon%5Es1_&ref_url= because i wanted them to look like https://twitter.com/nbcwashington/status/1699945306236887477 .. it'll do the same with instagram urls like https://www.instagram.com/oxygen_mas/?utm_source=ig_embed , https://www.instagram.com/oxygen_mas/?utm_source=ig_embed and any instgram url that has /p/ , /tv or /reel with "?" in them. basically cleaning them up.

edit: original code had a bug that messed up formmatting for multiple urls selected, changed formatting and prevented new clipboard entries.
the new one fixes all of that.
Code:
copyq:
function onClipboardChanged() {
    var text = clipboard().text();
    var new_text = text.replace(/(https:\/\/(www\.)?(instagram\.com|twitter\.com)\/[^?]+)\?[^ ]*/g, '$1');
    copy(new_text);
}

onClipboardChanged();

Code:
copyq:
function onClipboardChanged() {
    var text = clipboard().text();
    if (text.indexOf('https://www.instagram.com') === 0 || text.indexOf('https://instagram.com') === 0) {
        var new_text = text.split('?')[0];
        copy(new_text);
    } else if (text.indexOf('https://twitter.com/') === 0) {
        var new_text = text.split('?')[0];
        copy(new_text);
    }
}

onClipboardChanged();

GwaatCb.png

fNhERYvl.png

XEDgkNS.png

SWVOJbpl.png


bing instructions

Here’s how you can add the provided CopyQ action so that it works automatically and doesn’t create a new item:
  1. Open CopyQ and select the “Commands/Global Shortcuts” option from the “File” menu or press the default shortcut F6.
  2. In the Command dialog, click the “Add” button to create a new command.
  3. Select “New Command” to create an empty command.
  4. In the right part of the Command dialog, you can now configure your new command.
  5. Paste the provided script into the “Command” field.
  6. Make sure that the “Automatic” option is checked under the “Type of Action” group. This will ensure that the command is triggered whenever the clipboard changes.
  7. Click on “OK” or “Apply” button in the dialog to save your new command permanently
That’s it! Your new CopyQ action should now be set up to work automatically and not create a new item when triggered. Let me know if you have any questions or need further assistance! 😊


The new copyq action code is a script that is designed to automatically modify the text content of the system clipboard whenever it changes.
The script is written in JavaScript and is intended to be used with the copyq clipboard manager application.

Here is a detailed description of what the new copyq action code does:

1. The script defines a function named onClipboardChanged that is called whenever the content of the system clipboard changes.

2. Inside the onClipboardChanged function, the script retrieves the current text content of the clipboard by calling the clipboard().text() method.

3. The script then checks if the text content of the clipboard starts with either 'https://www.instagram.com' or 'https://instagram.com'. If it does, then the script proceeds to step 4. Otherwise, if the text content of the clipboard starts with 'https://twitter.com/', then the script proceeds to step 5.

4. If the text content of the clipboard starts with either 'https://www.instagram.com' or 'https://instagram.com', then the script creates a new string by splitting the original text at the first occurrence of '?' and taking only the first part of the resulting array. This effectively removes everything after (and including) the first '?' character from the original text. The script then copies this new string to the system clipboard by calling the copy() function with the new string as its argument.

5. If the text content of the clipboard starts with 'https://twitter.com/', then the script creates a new string by splitting the original text at the first occurrence of '?' and taking only the first part of the resulting array. This effectively removes everything after (and including) the first '?' character from the original text. The script then copies this new string to the system clipboard by calling the copy() function with the new string as its argument.

After defining the onClipboardChanged function, the script calls it once at the end to ensure that it runs immediately when loaded by copyq. This ensures that any existing text in the system clipboard is processed by the script when it is first loaded.

I hope this helps you understand what this new copyq action code does in detail! 😊

This version uses BBCode tags such as to format text as bold, which should be compatible with XenForo forums. Let me know if this helps! 😊

for the unfamiliar

Gonna start this thread off with CopyQ, which is in my opinion a must have clipboard manager. You can pin/sticky text or images that you use often too. It also works on all desktop OS's.

CopyQ

CopyQ is advanced clipboard manager with editing and scripting features.


Overview
CopyQ monitors system clipboard and saves its content in customized tabs. Saved clipboard can be later copied and pasted directly into any application.

CopyQ Review - Versatile and Multi-Platform Clipboard Manager

vxor30y.jpg


edit: forgot to add a screenshot of it's tray icon usage. you can set the amount of recent clipboard items it'll show in the tray icon. i have mines set to 29

3ZLeEUS.jpg

{found on google images}
 
Last edited:

bnew

Veteran
Joined
Nov 1, 2015
Messages
58,200
Reputation
8,613
Daps
161,844
bQLqLlJ.png


i've created a dozen or so webscrapers too. I am not a programmer, you just need to know how to phrase your request and paste relevant html sourcecode or header info from inspect tool in some cases.
 
Joined
Dec 16, 2014
Messages
25,544
Reputation
6,376
Daps
154,690
bQLqLlJ.png


i've created a dozen or so webscrapers too. I am not a programmer, you just need to know how to phrase your request and paste relevant html sourcecode or header info from inspect tool in some cases.
What does a web scraper do?
 

bnew

Veteran
Joined
Nov 1, 2015
Messages
58,200
Reputation
8,613
Daps
161,844
What does a web scraper do?


AI response:

A web scraper is a program or software tool that extracts data from websites1. It can access the web through HTML requests, a browser, or a web server. It can save the data to a local file, a database, or a visual format1.

To put it in simpler terms, imagine you’re making a scrapbook about your favorite movies. You decide to include information about these movies from a website like Reddit. Now, you could manually go to each movie’s Reddit page, read all the comments, and write down the interesting ones in your scrapbook. But this would take a lot of time and effort.

Here’s where a web scraper comes in handy! It’s like an automatic version of you. You tell it what information you want (like comments about your favorite movies), and it goes to the Reddit pages, reads all the comments, and saves the interesting ones for you. It does this quickly and efficiently, saving you a lot of time and effort.

However, it’s important to note that while web scraping can be very useful, it should be done responsibly and in accordance with the website’s terms of service. Some websites may have rules against scraping their content.



you ever did something tedious and repetitive on a particular website? copy text in the same place but on a different page or save images, videos, documents? well web scrapers can help you automate all that so what would could have taken you an hour or more, days weeks or months could be done in seconds, minutes, hours, days or weeks depending on how much you're scraping.
 
Last edited:

bnew

Veteran
Joined
Nov 1, 2015
Messages
58,200
Reputation
8,613
Daps
161,844




Code:
"When coding related tasks are given, do not write code right away. First plan on what steps are needed to solve the problem in a terse manner. note down your thoughts and then start writing code. unless asked for explanations, don't provide one about the written code or mention about logging or error handling or any other non functional requirements. Unless otherwise mentioned, always print back the whole code including modifications."
 
Top