Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- window.location.pathname.match(/\/u\d+/) && $(function() {
- if (!_userdata.session_logged_in) return;
- var lang = {
- poke : 'Cutucar',
- message : 'Você foi cutucado !'
- },
- a = document.createElement('DIV'), b = poke(window.location.pathname.match(/u(\d+)/)[1], document.title.match(/.*? - (.*)/)[1]), c = document.getElementById('profile-advanced-right') || document.getElementById('page-body');
- a.style.textAlign = 'right';
- a.appendChild(b);
- c.insertBefore(a,c.firstChild);
- function poke(id, unm) {
- var a = document.createElement('A');
- if (id == _userdata.user_id) return a;
- nome: 'Nome do usuário:',
- titulo: 'Título da mensagem:',
- message: 'Você foi cutucado:'
- };
- var user = prompt(MP.nome).replace(/\s/g,'+');
- var title = prompt(MP.titulo).replace(/\s/g,'+');
- var message = prompt(MP.message).replace(/\s/g,'+');
- jQuery.post('/privmsg', {
- folder: 'inbox',
- mode: 'post',
- post: '1',
- username: user,
- subject: title,
- message: message
- }).done(function () {
- console.log("Enviado");
- }).fail(function () {
- console.log("Erro");
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement