Bitcoin Forum
September 05, 2025, 01:48:36 PM *
News: Latest Bitcoin Core release: 29.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: Bitcointalk Image Uploader | Image Upload has never been so easy  (Read 522 times)
Little Mouse (OP)
Legendary
*
Offline Offline

Activity: 2534
Merit: 2985


Marketing Campaign Manager |Telegram ID- @LT_Mouse


View Profile WWW
July 31, 2025, 04:27:48 PM
Last edit: August 24, 2025, 06:14:35 PM by Little Mouse
Merited by Halab (2), viljy (2), Z_MBFM (2), Ricardo11 (2), crwth (1), Dr.Osh (1), dkbit98 (1), masulum (1), r_victory (1), Bd officer (1), Mia Chloe (1), Wonder Work (1), Mahiyammahi (1)
 #1


I was having fun with chatgpt and found this idea. Right now, to upload an image, we are going to image hosting site and then upload the image, copy the bbcode and paste it here. Instead, we can upload the image from the forum with the help of this extension. The image will be uploaded to the image hosting site, in this case, hostmeme.com and then the bbcode will be automatically pasted in the post dialog box.

Process to run the extension

1. Create a folder with the name "Image Uploader"
2. Create 2 text files inside the folder
3. Rename one file to content.js and add the content shared below
4. Rename another file to manifest.json and add the content shared below
5. Go to Chrome extension and enable developer mode.
6. Click on "Load unpacked" and upload the folder "Image Uploader"

That's all.

content.js
Code:
// --------------------
// Upload Image Button
// --------------------
function addUploadButton() {
  const postBtn = document.querySelector("input[name='post']");
  if (!postBtn || document.getElementById("uploadImageBtn")) return;

  const uploadBtn = document.createElement("button");
  uploadBtn.type = "button"; // Prevent form submission
  uploadBtn.id = "uploadImageBtn";
  uploadBtn.innerText = "Upload Image";
  uploadBtn.style.marginLeft = "10px";
  uploadBtn.style.padding = "5px 10px";
  uploadBtn.style.cursor = "pointer";

  postBtn.parentNode.insertBefore(uploadBtn, postBtn.nextSibling);

  uploadBtn.addEventListener("click", () => {
    const input = document.createElement("input");
    input.type = "file";
    input.accept = "image/*";

    input.onchange = async () => {
      const file = input.files[0];
      if (!file) return;

      const formData = new FormData();
      formData.append("image", file);

      uploadBtn.innerText = "Uploading...";

      try {
        const response = await fetch("https://hostmeme.com/bitcointalk.php", {
          method: "POST",
          body: formData
        });

        const data = await response.json();
        if (data.success && data.url && data.width && data.height) {
          const bbcode = `[img height=${data.height} width=${data.width}]http://${data.url}[/img]`;
          const textarea = document.querySelector("textarea[name='message']");
          if (textarea) {
            textarea.value += `\n${bbcode}\n`;
            textarea.focus();
          }
        }
      } catch (err) {
        console.error("Upload error:", err);
      } finally {
        uploadBtn.innerText = "Upload Image";
      }
    };

    input.click();
  });
}

// --------------------
// Select All in Textarea
// --------------------
function addSelectTextareaButton() {
  const textarea = document.querySelector("textarea[name='message']");
  if (!textarea || document.getElementById("selectTextareaBtn")) return;

  const selectBtn = document.createElement("button");
  selectBtn.type = "button"; // Prevent form submission
  selectBtn.id = "selectTextareaBtn";
  selectBtn.innerText = "Select All";
  selectBtn.style.marginLeft = "10px";
  selectBtn.style.padding = "5px 10px";
  selectBtn.style.cursor = "pointer";

  textarea.parentNode.insertBefore(selectBtn, textarea.nextSibling);

  selectBtn.addEventListener("click", () => {
    textarea.focus();
    textarea.select();
  });
}

// --------------------
// Select for code blocks
// --------------------
function addSelectButtonsToCode() {
  const codeBlocks = document.querySelectorAll("div.code");

  codeBlocks.forEach(block => {
    if (block.dataset.selectAttached === "1") return;
    block.dataset.selectAttached = "1";

    const header = block.previousElementSibling;
    const container = header && header.classList.contains("codeheader")
      ? header
      : block;

    const selectBtn = document.createElement("button");
    selectBtn.type = "button"; // Prevent form submission
    selectBtn.innerText = "Select";
    selectBtn.style.marginLeft = "8px";
    selectBtn.style.padding = "2px 6px";
    selectBtn.style.fontSize = "12px";
    selectBtn.style.cursor = "pointer";

    container.appendChild(selectBtn);

    selectBtn.addEventListener("click", () => {
      const range = document.createRange();
      range.selectNodeContents(block);
      const sel = window.getSelection();
      sel.removeAllRanges();
      sel.addRange(range);
    });
  });
}

// --------------------
// Initialize all features
// --------------------
function initFeatures() {
  addUploadButton();
  addSelectTextareaButton();
  addSelectButtonsToCode();
}

if (document.readyState === "loading") {
  document.addEventListener("DOMContentLoaded", initFeatures);
} else {
  initFeatures();
}

// Observe dynamically loaded posts and forms
const observer = new MutationObserver(() => {
  addUploadButton();
  addSelectTextareaButton();
  addSelectButtonsToCode();
});
observer.observe(document.body, { childList: true, subtree: true });

manifest.json
Code:
{
  "manifest_version": 3,
  "name": "Bitcointalk Image Uploader",
  "version": "1.0",
  "description": "Upload image to hostmeme.com and insert BBCode in Bitcointalk post.",
  "permissions": ["scripting", "activeTab"],
  "host_permissions": ["https://hostmeme.com/*"],
  "content_scripts": [
    {
      "matches": ["https://bitcointalk.org/*"],
      "js": ["content.js"],
      "run_at": "document_end"
    }
  ],
  "action": {
    "default_title": "Bitcointalk Image Uploader"
  }
}

██████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
██████████████████████
.SHUFFLE.COM..███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
█████████████████████
████████████████████
██████████████████████
████████████████████
██████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
██████████████████████
██████████████████████
██████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
.
...Next Generation Crypto Casino...
Little Mouse (OP)
Legendary
*
Offline Offline

Activity: 2534
Merit: 2985


Marketing Campaign Manager |Telegram ID- @LT_Mouse


View Profile WWW
July 31, 2025, 04:28:01 PM
 #2

Reserved

██████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
██████████████████████
.SHUFFLE.COM..███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
█████████████████████
████████████████████
██████████████████████
████████████████████
██████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
██████████████████████
██████████████████████
██████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
.
...Next Generation Crypto Casino...
LDL
Hero Member
*****
Offline Offline

Activity: 1078
Merit: 789



View Profile
July 31, 2025, 04:43:44 PM
Merited by CryptoYar (4), Platinumys (2)
 #3

I welcome this update from @Little Mouse because we upload images from various sources and post the link of that image here. It is a rather troublesome process but if the above method can be followed and posted then the method of uploading images on the forum will look more interesting.
Where the need to upload images was just done by uploading images from the uploader. But only time will tell whether the developers of the forum will add this feature. However, this update of @Little Mouse seems acceptable and very contemporary to me.

 
.Winna.com..

░░░░░░░▄▀▀▀
░░


▐▌▐▌
▄▄▄▒▒▒▄▄▄
████████████
█████████████
███▀▀███▀

▄▄

██████████████
████████████▄
█████████████
███▄███▄█████▌
███▀▀█▀▀█████
████▀▀▀█████▌
████████████
█████████████
█████
▀▀▀██████

▄▄
THE ULTIMATE CRYPTO
...CASINO & SPORTSBOOK...
─────  ♦  ─────

▄▄██▄▄
▄▄████████▄▄
██████████████
████████████████
███████████████
████████████████
▀██████████████▀
▀██████████▀
▀████▀

▄▄▄▄

▄▄▀███▀▄▄
▄██████████▄
███████████
███▄▄
▄███▄▄▄███
████▀█████▀███
█████████████████
█████████████
▀███████████
▀▀█████▀▀

▄▄▄▄


.....INSTANT.....
WITHDRAWALS
 
...UP TO 30%...
LOSSBACK
 
 

   PLAY NOW   
]
Mahiyammahi
Sr. Member
****
Offline Offline

Activity: 392
Merit: 254



View Profile
July 31, 2025, 04:46:21 PM
 #4

So this extension is allowing us to have a upload image option besides post/preview in forum button. That's a great initiative to reduce our worktime. But I don't know about hostmeme so much, Ig we if we could use talkimg for hosting it would be great. I would give it try with my custom image hosting. Lot's of tool is appearing for our works to do more easy and fastest way.

But only time will tell whether the developers of the forum will add this feature. However, this update of @Little Mouse seems acceptable and very contemporary to me.

Ig there's no plan of doing that rn, cause it needed to trust a 3rd party hosting site to integrate with forum. It would be better if we use 3rd party , it's not particularly fall under any risk if we use it our own. If forum don't provide their own hosting than  it is not ideal to integrate this .


DYING_S0UL check you manifest.json file extension it should be .json extension not .txt sometimes windows hides extension and we input unintentionally .txt

██████████████████▄▄▄▄████▄
███▄███▀▀▀████████▀▀▀████▀██▄
████▌███████▀████████▄▄█▌██
████▌████▄████▀▀██▌█████▌████
██▄██████████▀▀██▌████▀██▐██
▄███████████▄▄▄▄▄███████▄▄█████▄
███▄▄▄▄▄████▀▀▀████▀▀▀███▀████▀█
████▀██████████▐█▀████████▄▀▀▀██
██▄███▀█████████▐▌█████████▀▀▄██
███▄▄█████████▐██████▄██▄▄▄▄███▀
██████████████████▄▄▄███▀█████▀
███▀▀▀███▄▄▄██████▀▀▀▀▀▀
██████▀██████▀▀▀▀
|
▄▄████████▄▄
▄█████░█░█░██████▄
▄███░█░░█░█░█░█░░░███▄
█████░█░░░░░░░░█░█████
▄████████░░░█▄█░█▄███████▄
██████░░░░░░░░░░█░░░█████

█████░█░░░░▀▄▄▄█░█░█░████
███████░█░░░░░░░█░░░█████
▀███████░████░░█████████▀
▀██████░█░░░░██░░██████▀
▀██████░░░██░░███████▀
▀███████░░███████▀
▀▀████████▀▀
$HOG AIRDROP
███  LIVE!  ███
|
 
|
DYING_S0UL
Hero Member
*****
Offline Offline

Activity: 784
Merit: 691


The Alliance Of Bitcointalk Translators - ENG>BAN


View Profile WWW
July 31, 2025, 04:50:55 PM
 #5

I am having a problem with the extension. I got this error below!

Failed to load extension
File
~\Desktop\Image Uploader
Error
Manifest file is missing or unreadable
Could not load manifest.

I did everything as instructed in your post but for some reason it isn't working. Made two text files, renamed those, copied the code/content, saved those files and so on..Where did it went wrong? A little help guys.. Smiley

.
 betpanda.io 
 
ANONYMOUS & INSTANT
.......ONLINE CASINO.......
▄███████████████████████▄
█████████████████████████
█████████████████████████
████████▀▀▀▀▀▀███████████
████▀▀▀█░▀▀░░░░░░▄███████
████░▄▄█▄▄▀█▄░░░█▄░▄█████
████▀██▀░▄█▀░░░█▀░░██████
██████░░▄▀░░░░▐░░░▐█▄████
██████▄▄█░▀▀░░░█▄▄▄██████
█████████████████████████
█████████████████████████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀░░░▀██████████
█████████░░░░░░░█████████
███████░░░░░░░░░███████
████████░░░░░░░░░████████
█████████▄░░░░░▄█████████
███████▀▀▀█▄▄▄█▀▀▀███████
██████░░░░▄░▄░▄░░░░██████
██████░░░░█▀█▀█░░░░██████
██████░░░░░░░░░░░░░██████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀▀▀▀▀▀█████████
███████▀▀░░░░░░░░░███████
██████░░░░░░░░░░░░▀█████
██████░░░░░░░░░░░░░░▀████
██████▄░░░░░░▄▄░░░░░░████
████▀▀▀▀▀░░░█░░█░░░░░████
████░▀░▀░░░░░▀▀░░░░░█████
████░▀░▀▄░░░░░░▄▄▄▄██████
█████░▀░█████████████████
█████████████████████████
▀███████████████████████▀
.
SLOT GAMES
....SPORTS....
LIVE CASINO
▄░░▄█▄░░▄
▀█▀░▄▀▄░▀█▀
▄▄▄▄▄▄▄▄▄▄▄   
█████████████
█░░░░░░░░░░░█
█████████████

▄▀▄██▀▄▄▄▄▄███▄▀▄
▄▀▄█████▄██▄▀▄
▄▀▄▐▐▌▐▐▌▄▀▄
▄▀▄█▀██▀█▄▀▄
▄▀▄█████▀▄████▄▀▄
▀▄▀▄▀█████▀▄▀▄▀
▀▀▀▄█▀█▄▀▄▀▀

Regional Sponsor of the
Argentina National Team
PX-Z
Legendary
*
Offline Offline

Activity: 1932
Merit: 1218


Wallet transaction notifier @txnNotifierBot


View Profile
July 31, 2025, 04:51:34 PM
 #6

Great tool. Never tried it yet since i'm on mobile phone.

But a little tip, i guess its much better to paste this userscript with the help of TamperMonkey or GreaseMonkey just like the other userscript tools instead of doing it on developer mode without needing the manifest.json.

.
 betpanda.io 
 
ANONYMOUS & INSTANT
.......ONLINE CASINO.......
▄███████████████████████▄
█████████████████████████
█████████████████████████
████████▀▀▀▀▀▀███████████
████▀▀▀█░▀▀░░░░░░▄███████
████░▄▄█▄▄▀█▄░░░█▄░▄█████
████▀██▀░▄█▀░░░█▀░░██████
██████░░▄▀░░░░▐░░░▐█▄████
██████▄▄█░▀▀░░░█▄▄▄██████
█████████████████████████
█████████████████████████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀░░░▀██████████
█████████░░░░░░░█████████
███████░░░░░░░░░███████
████████░░░░░░░░░████████
█████████▄░░░░░▄█████████
███████▀▀▀█▄▄▄█▀▀▀███████
██████░░░░▄░▄░▄░░░░██████
██████░░░░█▀█▀█░░░░██████
██████░░░░░░░░░░░░░██████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀▀▀▀▀▀█████████
███████▀▀░░░░░░░░░███████
██████░░░░░░░░░░░░▀█████
██████░░░░░░░░░░░░░░▀████
██████▄░░░░░░▄▄░░░░░░████
████▀▀▀▀▀░░░█░░█░░░░░████
████░▀░▀░░░░░▀▀░░░░░█████
████░▀░▀▄░░░░░░▄▄▄▄██████
█████░▀░█████████████████
█████████████████████████
▀███████████████████████▀
.
SLOT GAMES
....SPORTS....
LIVE CASINO
▄░░▄█▄░░▄
▀█▀░▄▀▄░▀█▀
▄▄▄▄▄▄▄▄▄▄▄   
█████████████
█░░░░░░░░░░░█
█████████████

▄▀▄██▀▄▄▄▄▄███▄▀▄
▄▀▄█████▄██▄▀▄
▄▀▄▐▐▌▐▐▌▄▀▄
▄▀▄█▀██▀█▄▀▄
▄▀▄█████▀▄████▄▀▄
▀▄▀▄▀█████▀▄▀▄▀
▀▀▀▄█▀█▄▀▄▀▀

Regional Sponsor of the
Argentina National Team
Royal Cap
Full Member
***
Offline Offline

Activity: 182
Merit: 118


View Profile WWW
July 31, 2025, 05:29:16 PM
Last edit: July 31, 2025, 05:55:38 PM by Royal Cap
Merited by Z_MBFM (1)
 #7


Wow this really works great I just tried it out of curiosity and I am very happy with the end result.
 I just created the extension by following the instructions given by Just Little Mouse and through that extension I uploaded a cat picture here to test.
 And it really worked great. And through this I just uploaded the cat picture. This will be really useful for those who need to upload pictures regularly



Failed to load extension
File
~\Desktop\Image Uploader
Error
Manifest file is missing or unreadable
Could not load manifest.

I think you have not renamed your file extension. You can follow the instructions below to do so

1. First you have to open your file explorer then from the three dot menu you have to click on options

2. Then go to view then if you click a view, below uncheck the hide extensions for known file types and apply it.

3. Then you have to go into your image uploader folder and rename manifest.json.txt to manifest.json , similarly in the case of content.js.


Hope this will help you to setup your extension.





Z_MBFM
Sr. Member
****
Online Online

Activity: 868
Merit: 423


Top-tier crypto casino and sportsbook


View Profile WWW
July 31, 2025, 05:50:17 PM
 #8

This is a nice tool. good job Little Mouse. ChatGPT has made the development world a lot easier. A lot can be done with AI if you know the right prompts, and have some technical knowledge. This extension will make posting images much easier on this forum.

--
Hope this will help you to setup your extension.
Good job, you done a good tutorial but you should have put all the details in the first post. There was no need to post two consecutively. It would be better if you merged your two posts. Attach the second post to the first post and delete the second post. or just delete the 1st post. because, there has no any important words

██████▄██▄███████████▄█▄
█████▄██▒███▄████▄▄▄█
███████▒█▒▒██████████
████▐█████▒▒▒▒▒▒▒▒▒▒████
████████▒▒▒▒▒▄▄▄▄███████
██▄████▒▒▒▒▒███▀█▀▀█▄▄▄█
▀████▒▒▒███▄█████▄▄█████▀██
█████▒▒▒██▄████▀██▄▀▀▀█████▄
███▒▒▒███████▐█▄▀▄███▀██▄
███████▄▄▄███▌▌█▄▀▀███████▄
▀▀▀███████████▌██▀▀▀▀▀█▄▄▄████▀
███████▀▀██████▄▄██▄▄▄▄███▀▀
████████████▀▀▀██████████
BETFURY
▄███████████████████▄
█████████████████████
█████████████████████
█████████████████████
█████████████████████
█████████████████████
█████████████████████
█████████████████████
█████████████████████
█████████████████████
▀███████████████████▀
CASINO  
+8,000 GAMES

▄███████████████████▄
██████████░░░████████
██████████░░░░███████
███░░░░███░░░▒▒▒▒▒███
██░░░░░░█████▒▒▒▒▒▒██
██░░░░░███████▒▒▒▒▒██
████░░██████░░░▒▒████
█████████░░░░░░░████
██████████░░░░░░░████
█████████████░░██████
▀███████████████████▀
SPORTS
 BEST ODDS
 
WELCOME BONUS
UP TO 590% + 225 FS
[ Play Now ]
Wonder Work
Sr. Member
****
Offline Offline

Activity: 476
Merit: 300


The largest #BITCOINPOKER site to this day


View Profile WWW
July 31, 2025, 06:02:35 PM
 #9

This is extraordinary tool that has been created. This will save a lot of time and help you easily upload images and extract/bbcode links.

Wow this really works great I just tried it out of curiosity and I am very happy with the end result.

Wow you already tried and uploaded the picture. But I'm trying it, the extension is not loading, is this a problem?

After uploading everything correctly, it keeps showing failure.



Royal Cap, I followed your system but I didn't find any solution like that.

DYING_S0UL
Hero Member
*****
Offline Offline

Activity: 784
Merit: 691


The Alliance Of Bitcointalk Translators - ENG>BAN


View Profile WWW
July 31, 2025, 06:08:29 PM
 #10

DYING_S0UL check you manifest.json file extension it should be .json extension not .txt sometimes windows hides extension and we input unintentionally .txt

Thanks mate, it worked! You pointed at the right place. Even though I changed the extensions, it just got renamed as manifest.json.txt but the file type still remained as .txt (hidden). That's why it showed as unreadable. I think, I have changed file types countless times by renaming file name and replacing after the .dot but this was first time something like this happened. I don't think it was like this before, if so I would have noticed that. 

Royal Cap, I already know how to change it! Appreciate the help. Others will surely find it useful.



Looks like we got a competition. LM is coming for joker_josue's job (TalkImg), be careful Grin.
Jokes aside..It was impressive indeed. Just one question why hostmeme.com?



.
 betpanda.io 
 
ANONYMOUS & INSTANT
.......ONLINE CASINO.......
▄███████████████████████▄
█████████████████████████
█████████████████████████
████████▀▀▀▀▀▀███████████
████▀▀▀█░▀▀░░░░░░▄███████
████░▄▄█▄▄▀█▄░░░█▄░▄█████
████▀██▀░▄█▀░░░█▀░░██████
██████░░▄▀░░░░▐░░░▐█▄████
██████▄▄█░▀▀░░░█▄▄▄██████
█████████████████████████
█████████████████████████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀░░░▀██████████
█████████░░░░░░░█████████
███████░░░░░░░░░███████
████████░░░░░░░░░████████
█████████▄░░░░░▄█████████
███████▀▀▀█▄▄▄█▀▀▀███████
██████░░░░▄░▄░▄░░░░██████
██████░░░░█▀█▀█░░░░██████
██████░░░░░░░░░░░░░██████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀▀▀▀▀▀█████████
███████▀▀░░░░░░░░░███████
██████░░░░░░░░░░░░▀█████
██████░░░░░░░░░░░░░░▀████
██████▄░░░░░░▄▄░░░░░░████
████▀▀▀▀▀░░░█░░█░░░░░████
████░▀░▀░░░░░▀▀░░░░░█████
████░▀░▀▄░░░░░░▄▄▄▄██████
█████░▀░█████████████████
█████████████████████████
▀███████████████████████▀
.
SLOT GAMES
....SPORTS....
LIVE CASINO
▄░░▄█▄░░▄
▀█▀░▄▀▄░▀█▀
▄▄▄▄▄▄▄▄▄▄▄   
█████████████
█░░░░░░░░░░░█
█████████████

▄▀▄██▀▄▄▄▄▄███▄▀▄
▄▀▄█████▄██▄▀▄
▄▀▄▐▐▌▐▐▌▄▀▄
▄▀▄█▀██▀█▄▀▄
▄▀▄█████▀▄████▄▀▄
▀▄▀▄▀█████▀▄▀▄▀
▀▀▀▄█▀█▄▀▄▀▀

Regional Sponsor of the
Argentina National Team
Mitchell
Staff
Legendary
*
Offline Offline

Activity: 4410
Merit: 2568


Verified awesomeness ✔


View Profile WWW
July 31, 2025, 06:13:05 PM
 #11

Made a quick userscript of this in case someone wants to use Tampermonkey. Hope this is okay Little Mouse.

Code:
// ==UserScript==
// @name         Bitcointalk Image Uploader
// @namespace    https://bitcointalk.org
// @version      2025-07-31
// @description  Upload image to hostmeme.com and insert BBCode in Bitcointalk post.
// @author       Litte Mouse
// @match        https://bitcointalk.org/index.php?action=post2
// @match        https://bitcointalk.org/index.php?action=post;msg=*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=bitcointalk.org
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    function addUploadButton() {
        const postBtn = document.querySelector("input[name='post']");
        if (!postBtn || document.getElementById("uploadImageBtn")) return;

        const uploadBtn = document.createElement("button");
        uploadBtn.id = "uploadImageBtn";
        uploadBtn.innerText = "Upload Image";
        uploadBtn.type = "button";
        uploadBtn.style.marginLeft = "10px";
        uploadBtn.style.padding = "5px 10px";

        postBtn.parentNode.insertBefore(uploadBtn, postBtn.nextSibling);

        uploadBtn.addEventListener("click", () => {
            const input = document.createElement("input");
            input.type = "file";
            input.accept = "image/*";

            input.onchange = async () => {
                const file = input.files[0];
                if (!file) return;

                const formData = new FormData();
                formData.append("image", file);

                uploadBtn.innerText = "Uploading...";

                try {
                    const response = await fetch("https://hostmeme.com/bitcointalk.php", {
                        method: "POST",
                        body: formData
                    });

                    const data = await response.json();
                    if (data.success && data.url && data.width && data.height) {
                        const bbcode = `[img height=${data.height} width=${data.width}]${data.url}[/img]`;
                        const textarea = document.querySelector("textarea[name='message']");
                        if (textarea) {
                            textarea.value += `\n${bbcode}\n`;
                        }
                    } else {
                        alert("Upload failed: " + (data.error || "Unknown error"));
                    }
                } catch (err) {
                    alert("Upload error: " + err.message);
                } finally {
                    uploadBtn.innerText = "Upload Image";
                }
            };

            input.click();
        });
    }

    addUploadButton();

})();



Use it at your own risk

.
 betpanda.io 
 
ANONYMOUS & INSTANT
.......ONLINE CASINO.......
▄███████████████████████▄
█████████████████████████
█████████████████████████
████████▀▀▀▀▀▀███████████
████▀▀▀█░▀▀░░░░░░▄███████
████░▄▄█▄▄▀█▄░░░█▄░▄█████
████▀██▀░▄█▀░░░█▀░░██████
██████░░▄▀░░░░▐░░░▐█▄████
██████▄▄█░▀▀░░░█▄▄▄██████
█████████████████████████
█████████████████████████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀░░░▀██████████
█████████░░░░░░░█████████
███████░░░░░░░░░███████
████████░░░░░░░░░████████
█████████▄░░░░░▄█████████
███████▀▀▀█▄▄▄█▀▀▀███████
██████░░░░▄░▄░▄░░░░██████
██████░░░░█▀█▀█░░░░██████
██████░░░░░░░░░░░░░██████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀▀▀▀▀▀█████████
███████▀▀░░░░░░░░░███████
██████░░░░░░░░░░░░▀█████
██████░░░░░░░░░░░░░░▀████
██████▄░░░░░░▄▄░░░░░░████
████▀▀▀▀▀░░░█░░█░░░░░████
████░▀░▀░░░░░▀▀░░░░░█████
████░▀░▀▄░░░░░░▄▄▄▄██████
█████░▀░█████████████████
█████████████████████████
▀███████████████████████▀
.
SLOT GAMES
....SPORTS....
LIVE CASINO
▄░░▄█▄░░▄
▀█▀░▄▀▄░▀█▀
▄▄▄▄▄▄▄▄▄▄▄   
█████████████
█░░░░░░░░░░░█
█████████████

▄▀▄██▀▄▄▄▄▄███▄▀▄
▄▀▄█████▄██▄▀▄
▄▀▄▐▐▌▐▐▌▄▀▄
▄▀▄█▀██▀█▄▀▄
▄▀▄█████▀▄████▄▀▄
▀▄▀▄▀█████▀▄▀▄▀
▀▀▀▄█▀█▄▀▄▀▀

Regional Sponsor of the
Argentina National Team
Advertisements are not endorsed by me.
Royal Cap
Full Member
***
Offline Offline

Activity: 182
Merit: 118


View Profile WWW
July 31, 2025, 06:13:54 PM
 #12

Royal Cap, I followed your system but I didn't find any solution like that.
I am sure you did not edit the extension of your file properly. If you have followed my steps then your extension should definitely work. Here you must rename the extension of both the files. If you look carefully and see that there is a (.txt) at the end of your file name, if you remove it then it should definitely work.

Wonder Work
Sr. Member
****
Offline Offline

Activity: 476
Merit: 300


The largest #BITCOINPOKER site to this day


View Profile WWW
July 31, 2025, 06:45:25 PM
 #13

Royal Cap, I followed your system but I didn't find any solution like that.
I am sure you did not edit the extension of your file properly. If you have followed my steps then your extension should definitely work. Here you must rename the extension of both the files. If you look carefully and see that there is a (.txt) at the end of your file name, if you remove it then it should definitely work.
Thank you, renamed the extension name and it working fine. At first, I had the same problem after changing the name a few times, but now it is not working anymore. After clearing everything and trying again, it is working fine. Thank you for helping me with this.


Upload Photo:

Jewan420
Sr. Member
****
Offline Offline

Activity: 560
Merit: 277


Patience and hard work are the keys to success.


View Profile WWW
July 31, 2025, 07:00:35 PM
 #14

This is a really great tool that will help a forum member save time and effort in posting pictures. It is especially useful for those who post pictures regularly or post pictures frequently.

However, I am not encouraging its use yet, the main reason being that it is still unknown to everyone whether it has any negative aspects. Maybe it will not have any negative aspects. Since I do not post many pictures, I will refrain from using it for now and wait for everyone's feedback.











██
██
██████
R


▀▀██████▄▄
████████████████
▀█████▀▀▀█████
████████▌███▐████
▄█████▄▄▄█████
████████████████
▄▄██████▀▀
LLBIT
██████
██
██
██████
██
██
██
██
██
██
██
██
██
██
██
██████
██████████████
 
 TH#1 SOLANA CASINO 
██████████████
██████
██
██
██
██
██
██
██
██
██
██
██
██████
████████████▄
▀▀██████▀▀███
██▄▄▀▀▄▄████
████████████
██████████
███▀████████
▄▄█████████
████████████
████████████
████████████
████████████
█████████████
████████████▀
████████████▄
▀▀▀▀▀▀▀██████
████████████
███████████
██▄█████████
████▄███████
████████████
█░▀▀████████
▀▀██████████
█████▄█████
████▀▄▀████
▄▄▄▄▄▄▄██████
████████████▀
[
[
5,000+
GAMES
INSTANT
WITHDRAWALS
][
][
HUGE
   REWARDS   
VIP
PROGRAM
]
]
████
██
██
██
██
██
██
██
██
██
██
██
████
████████████████████████████████████████████████
 
PLAY NOW
 

████████████████████████████████████████████████
████
██
██
██
██
██
██
██
██
██
██
██
████
Uruhara
Hero Member
*****
Offline Offline

Activity: 1092
Merit: 753


I always do it wholeheartedly.


View Profile
July 31, 2025, 07:22:57 PM
 #15

My first try let's see  Cool



And it seems I succeeded right away.



And I'll share a few tips for those who are still having trouble finding the manifest.json file.

You can try converting your manifest.json (still text file) file here: https://mconverter.eu/convert/txt/json/
You can simply convert it there.

step 1 - go to https://mconverter.eu/convert/txt/json/ and click drop txt file here



step 2 - Select the manifest.json file which is actually still a txt file without you realizing it, so you have to change it.




step 3 - select json format




and done




After this, simply follow the steps outlined by Little Mouse above. You'll be successful immediately.

Now you can upload images directly from the forum menu.


And all my tutorial images are uploaded in the way given according to the new way created by Little Mouse


Thank you very much, Little Mouse. Smiley

This will really make uploading images easier for me.

      ▄▄██████████▄▄
   ▄███▀ ▀▀██████████▄
  █████     ▀▀█████████▄
 ██████▄       ▀▀████████
█████████▄        ▀▀█████▄
██████▀  ▀▀█▄▄       ▀████
██████      ▀▀█▄▄      ███
███████        ▀▀█▄▄  ▄███
█████████▄        ▀██████▀
 █████▀  ▀▀█▄   ▄███████▀
  ▀███       ██████████▀
    ▀██▄  ▄▄█████████▀
       ▀▀████████▀▀
.
.CASINOBET.
██████████████████████████
██████████████████████████
████████████  ████████████
██████████▀ ██ ▀██████████
█████████▀▄█▀▀█▄▀█████████
████████▀▄██████▄▀████████
███████▀▄██ ██ ██▄▀███████
██████ ▄█▀██▀▀█▀▀█▄ ██████
█████ ▄██▄██▄▄█▄▄██▄ █████
████▄ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀ ▄████
██████████████████████████
██████████████████████████
.THE HOME OF CRYPTO REWARDS..
.............. UP TO 65% RAKEBACK + CASHBACK   ..............
██████████████████████████
██████████████████████████
████████▀▀▀ ▄▄ ▀▀▀████████
██████▀ ▄███▀▀███▄ ▀██████
█████ ▄█▀██▀▀▀▀██▀█▄ █████
████▀ █▄▄▀ ▄██▄ ▀▄▄█ ▀████
████ ████ ██████ ████ ████
████▄ █▀▀▄ ▀██▀ ▄▀▀█ ▄████
█████▄▀█▄██▄▄▄▄██▄█▀▄█████
██████▄ ▀███▄▄███▀ ▄██████
████████▄▄▄ ▀▀ ▄▄▄████████
██████████████████████████
..2 ETH GIVEAWAY   |   150% + 500 FS..
..... FOLLOW & PLAY TO WIN       |           WELCOME OFFER.........
..PLAY NOW..
Dave1
Hero Member
*****
Offline Offline

Activity: 1792
Merit: 609



View Profile
July 31, 2025, 08:00:00 PM
 #16

Testing a upload image... in 3..2..1..



Nice tool LM as most of us are need to upload some image to send our message across. I just adjust the height and the width to make it a good fit in my screen, other than that, no problem unpacking the extension.

Obim34
Sr. Member
****
Online Online

Activity: 728
Merit: 438


Visit Campaign Manager |TG ID- @LT_Mouse


View Profile WWW
July 31, 2025, 08:25:03 PM
 #17

This is brilliant, another work made easy.



However, I am not encouraging its use yet, the main reason being that it is still unknown to everyone whether it has any negative aspects. Maybe it will not have any negative aspects. Since I do not post many pictures, I will refrain from using it for now and wait for everyone's feedback.
The only way it can be harmful is from the image host provider, as long as they keep things straight, it is safe.




▄▄▄▄▄▄▄▄▄▄▄░▄▄▄▄▄███▄▄▄▄▄▄▄▄▄███▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▄▄▄▄▄▄░▄▄▄▄▄▄░░▄▄▄▄▄▄▄▄▄▄▄▄▄▄░▄▄▄▄▄░▄▄▄▄▄▄▄░███████████████████░░████████▄▄░███████████████████████████████
▄█████████████████████████████████████████████████████████████░░██████████▄█████████████████▀▀███████████▀
████████████████████████████████████████████████████████████░░█████████████████████████▀████▄███████▀░░
████▄▄███████████████████████████████▄▄██████████████████████░▄██████████████████████████▄███▄███████░░░░
▀█████████████████████████████████████████████████████▀██████████████████▀▀████████████████▄▄▄█████████▄░░
██████████░▀███▀█████████████▀░▀████▀███████▀█████████████▀████████████████░░▀▀████████░▀█████████████████▄
█████████████▀███████▀▀▀████▀████▀████▀░░▀██████████████████
█████████████████████████████████████████████████████████████████████████████████▀▀▀▀▀▀
███████████████████████████████████████████████▀███▀
.
.100% WELCOME BONUS  NO KYC  UP TO 15% CASHBACK.....[PLAY NOW]
SamReomo
Hero Member
*****
Offline Offline

Activity: 1274
Merit: 800


L0tt0.com - the best crypto casino!


View Profile
July 31, 2025, 08:32:53 PM
 #18

The only way it can be harmful is from the image host provider, as long as they keep things straight, it is safe.
If I'm not wrong, LM is the owner of the site and that's why I believe the host should also be a reliable one. I think this extension should work with Talkimg as that's also a popular image hosting site that allows Bitcointalk image uploading.

 
 L0TT0 
  RETRO  
██████████

████████████████████████████████
██████████████████████████████████████
 

  CRYPTO  
█████████████████████████
██████████████████████████████████████

██████████████████
  CASINO  
.
|| 
] PLAY N0W 
[/ta
Perfectbaby
Hero Member
*****
Offline Offline

Activity: 770
Merit: 531



View Profile
August 01, 2025, 07:23:23 AM
 #19

Thank you little mouse for this wonderful work done, at least we now have two image hosting site where we can easily upload our picture them using link to post here. I test run the site and uploaded image and it displays smoothly, though I would take my time to add the extension to my browser maybe when I am that chance.

.
▄███████████████████████▄
█████████████████████████
███████████████▀▀▄▄██████
█████████████▀░▀█████████
███████████▀▄░█░░░▀██████
██████████░███░█▄▄▄██████
███████▀▀░▀▀█▀▀░▀▀███████
█████▀░░░░░░░▀▄░░░░▀█████
█████░░░░░░░░░█░░░░░█████
█████▄░░░░░░░▄▀░░░▄██████
███████▄▄▄▄▄█████████████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
████████████▀████████████
█████████▀▀░░░▀▀█████████
████████░░░░░░░░░████████
██████░░░░░░░░░░░░░██████
█████░░░░░░░░░░░░░░░█████
█████░░░░░░░░░░░░░░░█████
██████▄░░░░▄▄▄░░░░▄██████
█████████▀▀░░░▀▀█████████
████████▄▄▄▄▄▄▄▄▄████████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀▀▀▀▀██████████
███████▀░▀█▄░░░░▄████████
██████░░░░░█▄░▄█▀░░▀█████
█████░░▄▄▄▄▄██▀░░░░░█████
█████▀▀▀░░░░▄█▄▄▄▄▄▄█████
█████░░░▄▄█▀▀░█░░░░░█████
██████▄█▀▀░░░░▀█░░░██████
███████▄▄░░░░░░█░▄███████
██████████▄▄▄▄▄██████████
█████████████████████████
▀███████████████████████▀
▄████████████████████████▄
██████████████████████████
█████████████░████████████
████████████▀▄████████████
█████▀▀░░░░░░░░░░░░▀▀█████
████▀░░░░░░░░░░░░░░░░▀████
████░░░██░██░░░░█░░░░░████
████░░░▄▄▀▄▄░░▀▀▄▀▀░░░████
████▄░░▀▀░▀▀░░░░▀░░░░▄████
█████▄▄░░░░░░░░░░░░▄▄█████
██████████████████████████
██████████████████████████
▀████████████████████████▀
.
DYING_S0UL
Hero Member
*****
Offline Offline

Activity: 784
Merit: 691


The Alliance Of Bitcointalk Translators - ENG>BAN


View Profile WWW
August 01, 2025, 03:53:47 PM
 #20

The only way it can be harmful is from the image host provider, as long as they keep things straight, it is safe.
If I'm not wrong, LM is the owner of the site and that's why I believe the host should also be a reliable one. I think this extension should work with Talkimg as that's also a popular image hosting site that allows Bitcointalk image uploading.

Are you sure it's owned by LM? I visited the site and found one of the casino ads that LM is currently managing. So I guess it might be related to him. But it would be better if LM clarifies this somewhere (or did he?).
Another thing I noticed is that we can see all the images that was uploaded into the site, a feature named Gallery! Unless you manually tick the checkbox to "Mark this image private (Won’t show in gallery)". So I was wondering how the tool is configured to upload the images! Is is by default private? Because I saw an image of Satoshi in a coin that a member upload and posted here in this very thread and was also in the gallery.

.
 betpanda.io 
 
ANONYMOUS & INSTANT
.......ONLINE CASINO.......
▄███████████████████████▄
█████████████████████████
█████████████████████████
████████▀▀▀▀▀▀███████████
████▀▀▀█░▀▀░░░░░░▄███████
████░▄▄█▄▄▀█▄░░░█▄░▄█████
████▀██▀░▄█▀░░░█▀░░██████
██████░░▄▀░░░░▐░░░▐█▄████
██████▄▄█░▀▀░░░█▄▄▄██████
█████████████████████████
█████████████████████████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀░░░▀██████████
█████████░░░░░░░█████████
███████░░░░░░░░░███████
████████░░░░░░░░░████████
█████████▄░░░░░▄█████████
███████▀▀▀█▄▄▄█▀▀▀███████
██████░░░░▄░▄░▄░░░░██████
██████░░░░█▀█▀█░░░░██████
██████░░░░░░░░░░░░░██████
█████████████████████████
▀███████████████████████▀
▄███████████████████████▄
█████████████████████████
██████████▀▀▀▀▀▀█████████
███████▀▀░░░░░░░░░███████
██████░░░░░░░░░░░░▀█████
██████░░░░░░░░░░░░░░▀████
██████▄░░░░░░▄▄░░░░░░████
████▀▀▀▀▀░░░█░░█░░░░░████
████░▀░▀░░░░░▀▀░░░░░█████
████░▀░▀▄░░░░░░▄▄▄▄██████
█████░▀░█████████████████
█████████████████████████
▀███████████████████████▀
.
SLOT GAMES
....SPORTS....
LIVE CASINO
▄░░▄█▄░░▄
▀█▀░▄▀▄░▀█▀
▄▄▄▄▄▄▄▄▄▄▄   
█████████████
█░░░░░░░░░░░█
█████████████

▄▀▄██▀▄▄▄▄▄███▄▀▄
▄▀▄█████▄██▄▀▄
▄▀▄▐▐▌▐▐▌▄▀▄
▄▀▄█▀██▀█▄▀▄
▄▀▄█████▀▄████▄▀▄
▀▄▀▄▀█████▀▄▀▄▀
▀▀▀▄█▀█▄▀▄▀▀

Regional Sponsor of the
Argentina National Team
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!