Prompt.js for the web

prompt.js to change the web

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

You will need to install an extension such as Tampermonkey to install this script.

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

Δημιουργός
FRAN TILVA
Ημερήσιες εγκαταστάσεις
0
Σύνολο εγκαταστάσεων
4
Βαθμολογίες
0 0 0
Έκδοση
1.0.0
Δημιουργήθηκε την
06/01/2026
Ενημερώθηκε την
06/01/2026
Μέγεθος
2 KB
Άδεια
MIT
Εφαρμόζεται σε
Όλοι οι ιστοχώροι

// ==UserScript==
// @name Prompt.js for the web
// @name:pt-br Prompt.js para a web
// @namespace greasyfork.org
// @version 1.0.0
// @description prompt.js to change the web
// @description:pt-br prompt.js para mudar a web
// @match *://*/*
// @license MIT
// @run-at document-end
// @grant none
// ==/UserScript==

(function () {
// Painel prompt.js
const painel = document.createElement('div');
Object.assign(painel.style, {
position: 'fixed',
bottom: '10px',
right: '10px',
width: '320px',
background: '#222',
color: '#fff',
padding: '10px',
borderRadius: '8px',
zIndex: 9999,
fontFamily: 'monospace'
});

// Área de texto = prompt.js
const textarea = document.createElement('textarea');
textarea.placeholder = 'Escreva seu código JS (prompt.js)...';
Object.assign(textarea.style, {
width: '100%',
height: '120px',
marginBottom: '8px',
fontFamily: 'monospace'
});

// Botão Executar prompt.js
const executar = document.createElement('button');
executar.textContent = 'Executar prompt.js';
Object.assign(executar.style, {
width: '100%',
padding: '6px',
background: '#4caf50',
color: '#fff',
border: 'none',
borderRadius: '4px',
cursor: 'pointer'
});

executar.onclick = () => {
try {
new Function(textarea.value)();
} catch (e) {
alert('Erro: ' + e.message);
}
};

painel.appendChild(textarea);
painel.appendChild(executar);
document.body.appendChild(painel);
})();