Explore / Human–AI dialogue create a bookmarklet from the following JavaScript: (() => {… Save Share Download ▾ Reportcreate a bookmarklet from the following JavaScript:
(() => {
Array.from(document.getElementsByTagName('*')).forEach(el => {
if (window.getComputedStyle(el).display == 'none') {
return;
}
if ((el.tagName == 'svg') && (parseInt(window.getComputedStyle(el).height) > 200)) {
el.setAttribute('height','200px');
el.setAttribute('width','200px');
}
else {
if(el.hasAttribute('style')) {
el.style="null";
}
}
if (el.tagName == 'a') {
el.style.margin = '3px 0px 3px 0px';
}
});
document.querySelectorAll('style,link[rel="stylesheet"]').forEach(item => item.remove());
Array.from(document.getElementsByTagName('img')).forEach(img => {
img.removeAttribute('src');
img.style.height = '200px';
img.style.width = '200px';
img.style.border = '2px solid black;'
if (img.hasAttribute('alt')){
let alt= img.getAttribute('alt');
let span = document.createElement('span');
if (alt.length > 0) {
span.textContent = alt;
img.innerHTML = span.innerHTML;
img.parentNode.replaceChild(span, img);
} else {
span.textContent = 'image';
img.innerHTML = span.innerHTML;
img.parentNode.replaceChild(span, img);
}
}
})})();
Show full message · 42 lines AssistantCopy response
To create a bookmarklet from the provided JavaScript, follow these steps:
Open a text editor or any code editor of your choice.
Copy first prompt Copy first response
Details
Provider openai
Model provenance As recorded by source dataset
Turns 1 (2 messages)
Language en
Added to archive Nov 23, 2026
ID 01m84t2832n55m6tnt8smpm0rsSource & license Imported from ShareChat — Chatbot Conversations in the Wild (source ). Imported records earn no Research Points.
Upstream record: sharechat-prefiltered.jsonl:11654
tucnguyen/ShareChat, revision a57c741e002684939f577594fdae1559832a584d. Publicly shared ChatGPT, Claude, Gemini, Grok and Perplexity conversations (Apr 2023–Oct 2025), PII-redacted by the authors (Presidio). Cite Yan et al. 2026, arXiv:2512.17843. Derivative subsets permitted with attribution. Dialogue normalized; system instructions, tools and private metadata omitted.
License: CC-BY-NC-4.0
Copy the JavaScript code and paste it into the editor.
Remove the leading and trailing parentheses(() => {and})();from the code.
Minify or remove any unnecessary line breaks or spaces to make the code a single line.
Optionally, you can add a comment at the beginning to describe the bookmarklet.
Open a text editor or any code editor of your choice.
Copy the JavaScript code and paste it into the editor.
Remove the leading and trailing parentheses(() => {and})();from the code.
Minify or remove any unnecessary line breaks or spaces to make the code a single line.
Optionally, you can add a comment at the beginning to describe the bookmarklet.
Here's the modified JavaScript code that can be used as a bookmarklet:
────────────────────────────────────────────────────────────────────
javascriptCopy codejavascript:(() => {Array.from(document.getElementsByTagName('*')).forEach(el => {if (window.getComputedStyle(el).display == 'none') { return; } if ((el.tagName == 'svg') && (parseInt(window.getComputedStyle(el).height) > 200)) {el.setAttribute('height','200px'); el.setAttribute('width','200px');} else {if(el.hasAttribute('style')) {el.style="null";}} if (el.tagName == 'a') {el.style.margin = '3px 0px 3px 0px';}});document.querySelectorAll('style,link[rel="stylesheet"]').forEach(item => item.remove());Array.from(document.getElementsByTagName('img')).forEach(img => {img.removeAttribute('src');img.style.height = '200px';img.style.width = '200px';img.style.border = '2px solid black;';if (img.hasAttribute('alt')){let alt= img.getAttribute('alt');let span = document.createElement('span');if (alt.length > 0) {span.textContent = alt;img.innerHTML = span.innerHTML;img.parentNode.replaceChild(span, img);} else {span.textContent = 'image';img.innerHTML = span.innerHTML;img.parentNode.replaceChild(span, img);}}})})();
To use this code as a bookmarklet, follow these steps:
Create a new bookmark in your web browser.
Edit the bookmark and copy the modified JavaScript code into the URL field.
Create a new bookmark in your web browser.
Edit the bookmark and copy the modified JavaScript code into the URL field.
Now, when you click on the bookmark, the JavaScript code will be executed on the current web page, applying the modifications described in the code.
Cite this conversation “create a bookmarklet from the following JavaScript: (() => {….” Conversation with text-davinci-002-render-sha, from the ShareChat — Chatbot Conversations in the Wild dataset. The Chat Archive, 2026. https://thechatarchive.com/c/01m84t2832n55m6tnt8smpm0rs
Copy citation
Dataset releases Not yet included in a published release.