Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!



   1556

ADD AN SEND BUTTON

by retrohaxxx - 18 August, 2024 - 06:58 AM
This post is by a banned member (retrohaxxx) - Unhide
3.437
Posts
929
Threads
1 Year of service
#1
(This post was last modified: 18 August, 2024 - 07:01 AM by retrohaxxx. Edited 1 time in total.)
SO BASICALLY I MET WITH AN BIKE ACCIDENT , IN THAT I BROKE MY LEFT HAND

NOW I AM TYPING WITH 1 HAND AND WHEN I TRY TO SEND MESSAGE I ALWAYS HAVE TO US KEYBOARD AND PRESS ENTER BUT THERE IS NO OPTION FOR SENDING MESSAGE USING MOUSE ,
ITS SO PAINFULL THAT WHEN EVER I SELLECT EMOJIES I HAVE TO USE KEYBOARD AGAIN TO SEND THAT MESSAGE Feelssadman,

SO MY SUGGESTION IS TO ADD AN SEND BUTTON NEAR THAT EMOJI BUTTON IN RIGHT SIDE

[Image: image.png]

I HOPE U GUYS UNDERSTAND ME AND MY PAIN [Image: pepe.gif] Feelssadman
SELLING CHEAP ALL TYPE OF DISCORD PRODUCTS
https://t.me/retrohubs
https://discord.gg/retrohub

CLICK HERE TO BUY 
This post is by a banned member (Nayfer) - Unhide
Nayfer  
Contributor
624
Posts
109
Threads
6 Years of service
#2
???[Image: keeksad.png] [Image: keeksad.png] [Image: keeksad.png]
 
[Image: jst90Wr.gif]
This post is by a banned member (Alex) - Unhide
Alex  
Staff
2.039
Posts
103
Threads
Staff Team
6 Years of service
#3
Unfortunately we don't have a button to send messages in cracked.io. I made a script which adds a message button near the emotes.
 
Code:
 
// ==UserScript==
// @name         Cracked.io Shoutbox Send Button
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Adds a send button to the shoutbox on cracked.io
// @author       Cracked.io/Alex
// @match        https://*.cracked.io/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Function to simulate pressing the Enter key
    function sendMessage() {
        let messageInput = document.querySelector('#message_input');
        if (messageInput && messageInput.value.trim().length > 0) {
            let event = new KeyboardEvent('keypress', {
                bubbles: true,
                cancelable: true,
                keyCode: 13
            });
            messageInput.dispatchEvent(event);
        }
    }

    // Create the Send button
    function addButton() {
        let button = document.createElement('button');
        button.innerHTML = 'Send';
        button.style.position = 'relative';
        button.style.marginLeft = '10px';
        button.style.padding = '5px 10px';
        button.style.backgroundColor = '#4CAF50';
        button.style.color = 'white';
        button.style.border = 'none';
        button.style.cursor = 'pointer';
        button.style.borderRadius = '4px';

        button.addEventListener('click', function() {
            sendMessage();
        });

        // Add the button to the page
        let inputContainer = document.querySelector('#shoutbox #message_input').parentElement;
        if (inputContainer) {
            inputContainer.appendChild(button);
        }
    }

    // Wait for the shoutbox to load
    function waitForShoutbox() {
        let shoutbox = document.querySelector('#shoutbox');
        if (shoutbox) {
            addButton();
        } else {
            setTimeout(waitForShoutbox, 500);
        }
    }

    waitForShoutbox();
})();


It should look like this:

[Image: I1ZtE9F.png]
[Image: aOvS8tx.gif]
Ad by @RFSHARK - Ends in 14/11

[Image: fiesta_parrot.gif]  Get more sales & exposure | Increase your sales!Click here! [Image: fiesta_parrot.gif]

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.



Forum Jump:


Users browsing this thread: 1 Guest(s)