Emordy na SB [Alfa]
-
usunięte konto
- Posty: 122735
- Rejestracja: 13-04-2013, 21:50
- Beczki: 1609
Emordy na SB [Alfa]
Post autor: usunięte konto » 25-02-2017, 19:50
na
$(chat).append(początek kodu html);
pętla zawierająca $(chat).append(kolejne emotki);
po zakonczeniu pętli
$(chat).append(koniec kodu html);
chyba wporzo
To konto przedstawia wyimaginowaną postać.
Treść postów prezentuje wcześniej napisane scenariusze. Jest to fikcja.
usunięte konto
Emordy na SB [Alfa]
Post autor: Cartman » 28-02-2017, 14:09
Kod: Zaznacz cały
// ==UserScript==
// @name BW Chat+Emotki
// @version 1.2.2
// @author Cartman na bazie skryptu ThomassPWA z DW
// @description Emotikony na sb
// @namespace https://bugwie.com/memberlist.php?mode=viewprofile&u=98
// @namespace http://darkwarez.pl/forum/profil-1083311.html
// @include http://bugwie.com/*
// @include https://bugwie.com/*
// @require http://code.jquery.com/jquery-1.11.2.min.js
// @grant GM_getValue
// @grant GM_setValue
// ==/UserScript==
$(document).ready(function()
{
var emordy = [];
emordy[0] = [':)' , ').gif'];
emordy[1] = [':]' , 'fake-smile.gif'];
emordy[2] = [':fack-off:' , 'fackoff.gif'];
emordy[3] = [':facepalm:' , 'fpbugwie.gif'];
emordy[4] = [':puppyeyes:' , 'puppy-eyes_anim.gif'];
emordy[5] = [':chillout:' , 'coolio_anim.gif'];
emordy[6] = [':wow:' , 'wow.gif'];
emordy[7] = [':O' , 'shocked-anim.gif'];
emordy[8] = [':hihi:' , 'hihi_anim.gif'];
emordy[9] = [':lmao:' , 'hahaha.gif'];
emordy[10] = [':rotfl:' , 'rotfl_anim.gif'];
emordy[11] = ['^_^' , 'happy2.gif'];
emordy[12] = [':letssin:' , 'lets_sin-anim.gif'];
emordy[13] = [':shy:' , 'shy.gif'];
emordy[14] = [':thumbup:' , 'thumb-up_anim.gif'];
emordy[15] = [':thumbdown:' , 'thumb-down_anim.gif'];
emordy[16] = [':sweet:' , 'wow_anim.gif'];
emordy[17] = [':hump:' , 'hump.gif'];
emordy[18] = [':heart:' , 'heart-anim.gif'];
emordy[19] = [':love:' , 'falled_in_love-anim.gif'];
emordy[20] = [':ehh:' , 'ehh.gif'];
emordy[21] = [':cry:' , 'cry_anim.gif'];
emordy[22] = [':hmm:' , 'thinking_anim.gif'];
emordy[23] = [':yes:' , 'yes_anim.gif'];
emordy[24] = [':no:' , 'no_anim.gif'];
emordy[25] = [':wht:' , 'wht.gif'];
emordy[26] = ['<_<' , 'pissed-off.gif'];
emordy[27] = [':shifty:' , 'shifty-anim.gif'];
emordy[28] = [':middlef:' , 'middlef-anim.gif'];
emordy[29] = [':|' , 'wtf.gif'];
emordy[30] = [':bored:' , 'bored_anim.gif'];
emordy[31] = [':ermm:' , 'ermm.gif'];
emordy[32] = [':roll:' , 'roll.gif'];
emordy[33] = [':wutf:' , '13318032632857651668.gif'];
emordy[34] = [':crazy:' , 'crazy-anim.gif'];
emordy[35] = [':whistle:' , 'whistle-anim.gif'];
emordy[36] = [':lol-sweat:' , 'big-grin-sweat.gif'];
emordy[37] = ['^^"' , 'sweatdrop-anim.gif'];
emordy[38] = [':cool:' , 'coolbugwie.gif'];
emordy[39] = [':muted:' , 'muted.gif'];
emordy[40] = [':zonk:' , 'zonk2.gif'];
emordy[41] = [':huh:' , 'hmm.gif'];
emordy[42] = [':eek:' , 'eek.gif'];
emordy[43] = [':tehehe:' , 'tehehe.gif'];
emordy[44] = [':czesc:' , 'hi.png'];
emordy[45] = [':ok:' , 'ok.gif'];
emordy[46] = [':dance:' , 'dance-anim.gif'];
emordy[47] = [':lol:' , 'smi1.png'];
emordy[48] = [':lol2:' , 'lol2.gif'];
emordy[49] = [':ema:' , 'emaBW.gif'];
emordy[50] = [':nara:' , 'nara.gif'];
emordy[51] = [':3' , '3.gif'];
// Sprawdzenie czy czat jest włączony
// Dodanie skryptów do <head>
var script = document.createElement('script');
script.type = 'text/javascript';
script.innerHTML = "function emoticon(x) { document.getElementById('text_shoutbox').value = document.getElementById('text_shoutbox').value + ' ' + x + ' '; document.getElementById('text_shoutbox').focus(); updateCharEV(); }\n";
script.innerHTML+= "function updateCharEV() { document.getElementById(\"charCounterEV\").innerHTML = document.getElementById(\"text_shoutbox\").value.length; }\n";
script.innerHTML+= "function sendMessage(session) { sendComment(session); document.getElementById('charCounterEV').innerHTML = '0'; }";
document.getElementsByTagName('head')[0].appendChild(script);
// Dodanie kodu HTML do chatu
var chat = $('#text_shoutbox').parent().parent().parent().parent().parent();
var html = '<tr><td class=\"row\"><span class=\"row\"><\/b> Znaków: <b id=\"charCounterEV\">0<\/b>\/198<\/span><br />';
var indaend = '<\/td><\/tr>';
$('#text_shoutbox').attr('onpaste','updateCharEV();');
$('#text_shoutbox').attr('onchange','updateCharEV();');
$('#text_shoutbox').attr('maxlength','198');
$(chat).append(html);
for (var i=0; i<emordy.length; i++) {
var emoty = '<a href=\"javascript:emoticon(\'' + emordy[i][0] + '\')\"><img src=\"images\/smilies\/'+ emordy[i][1] +'\" border=\"0\" alt=\"\" title=\"\"><\/a>';
$(chat).append(emoty);
}
$(chat).append(indaend);
// Pobranie ID sesji i ustawienie podczas wysyłania
var uid = new RegExp('([0-9]+)').exec( $('#shoutbox_scroll').attr('onsubmit') )[0];
$('#shoutbox_test').attr('onsubmit','sendMessage('+uid+'); return false;');
// Uchwyt odpowiedzialny za wciskanie klawiszy
$('#chatbarText').keyup(function(event) { if(event.which != 13) { updateCharEV(); if( initPwLink) updatePwTopic(); }});
// Uchwyt odpowiedzialny za wysyłanie formy
$('#shoutbox_test').submit(function(event) { if( $('#text_shoutbox').val().length > 3 ) { var count = GM_getValue('EvCount'); count = 0; count++; GM_setValue('EvCount',count); $('#msgCounterEV').text(count); $('#charCounterEV').text('0'); return false; } });
}
);


Czuję, jakbym miał zwarcie w mózgu. ~Ricky
Jebać alkoćpunów, zawsze jestem czysty bo się myję

Cartman
-
usunięte konto
- Posty: 122735
- Rejestracja: 13-04-2013, 21:50
- Beczki: 1609
Emordy na SB [Alfa]
Post autor: usunięte konto » 28-02-2017, 15:50
Licznik znaków aktualizuje się dopiero po kliknięciu na emotkę.
To konto przedstawia wyimaginowaną postać.
Treść postów prezentuje wcześniej napisane scenariusze. Jest to fikcja.
usunięte konto
Emordy na SB [Alfa]
Post autor: Cartman » 02-03-2017, 13:58
Kod: Zaznacz cały
// ==UserScript==
// @name BW Chat+Emotki
// @version 1.2.2 toggle edyszyn
// @author Cartman na bazie skryptu ThomassPWA z DW
// @description Emotikony na sb
// @namespace https://bugwie.com/memberlist.php?mode=viewprofile&u=98
// @namespace http://darkwarez.pl/forum/profil-1083311.html
// @include http://bugwie.com/*
// @include https://bugwie.com/*
// @require http://code.jquery.com/jquery-1.11.2.min.js
// @grant GM_getValue
// @grant GM_setValue
// ==/UserScript==
$(document).ready(function()
{
var emordy = [];
emordy[0] = [':)' , ').gif'];
emordy[1] = [':]' , 'fake-smile.gif'];
emordy[2] = [':fack-off:' , 'fackoff.gif'];
emordy[3] = [':facepalm:' , 'fpbugwie.gif'];
emordy[4] = [':puppyeyes:' , 'puppy-eyes_anim.gif'];
emordy[5] = [':chillout:' , 'coolio_anim.gif'];
emordy[6] = [':wow:' , 'wow.gif'];
emordy[7] = [':O' , 'shocked-anim.gif'];
emordy[8] = [':hihi:' , 'hihi_anim.gif'];
emordy[9] = [':lmao:' , 'hahaha.gif'];
emordy[10] = [':rotfl:' , 'rotfl_anim.gif'];
emordy[11] = ['^_^' , 'happy2.gif'];
emordy[12] = [':letssin:' , 'lets_sin-anim.gif'];
emordy[13] = [':shy:' , 'shy.gif'];
emordy[14] = [':thumbup:' , 'thumb-up_anim.gif'];
emordy[15] = [':thumbdown:' , 'thumb-down_anim.gif'];
emordy[16] = [':sweet:' , 'wow_anim.gif'];
emordy[17] = [':hump:' , 'hump.gif'];
emordy[18] = [':heart:' , 'heart-anim.gif'];
emordy[19] = [':love:' , 'falled_in_love-anim.gif'];
emordy[20] = [':ehh:' , 'ehh.gif'];
emordy[21] = [':cry:' , 'cry_anim.gif'];
emordy[22] = [':hmm:' , 'thinking_anim.gif'];
emordy[23] = [':yes:' , 'yes_anim.gif'];
emordy[24] = [':no:' , 'no_anim.gif'];
emordy[25] = [':wht:' , 'wht.gif'];
emordy[26] = ['<_<' , 'pissed-off.gif'];
emordy[27] = [':shifty:' , 'shifty-anim.gif'];
emordy[28] = [':middlef:' , 'middlef-anim.gif'];
emordy[29] = [':|' , 'wtf.gif'];
emordy[30] = [':bored:' , 'bored_anim.gif'];
emordy[31] = [':ermm:' , 'ermm.gif'];
emordy[32] = [':roll:' , 'roll.gif'];
emordy[33] = [':wutf:' , '13318032632857651668.gif'];
emordy[34] = [':crazy:' , 'crazy-anim.gif'];
emordy[35] = [':whistle:' , 'whistle-anim.gif'];
emordy[36] = [':lol-sweat:' , 'big-grin-sweat.gif'];
emordy[37] = ['^^"' , 'sweatdrop-anim.gif'];
emordy[38] = [':cool:' , 'coolbugwie.gif'];
emordy[39] = [':muted:' , 'muted.gif'];
emordy[40] = [':zonk:' , 'zonk2.gif'];
emordy[41] = [':huh:' , 'hmm.gif'];
emordy[42] = [':eek:' , 'eek.gif'];
emordy[43] = [':tehehe:' , 'tehehe.gif'];
emordy[44] = [':czesc:' , 'hi.png'];
emordy[45] = [':ok:' , 'ok.gif'];
emordy[46] = [':dance:' , 'dance-anim.gif'];
emordy[47] = [':lol:' , 'smi1.png'];
emordy[48] = [':lol2:' , 'lol2.gif'];
emordy[49] = [':ema:' , 'emaBW.gif'];
emordy[50] = [':nara:' , 'nara.gif'];
emordy[51] = [':3' , '3.gif'];
// Sprawdzenie czy czat jest włączony
// Dodanie skryptów do <head>
var script = document.createElement('script');
script.type = 'text/javascript';
script.innerHTML = "function emoticon(x) { document.getElementById('text_shoutbox').value = document.getElementById('text_shoutbox').value + ' ' + x + ' '; document.getElementById('text_shoutbox').focus(); updateCharEV(); }\n";
script.innerHTML+= "function updateCharEV() { document.getElementById(\"charCounterEV\").innerHTML = document.getElementById(\"text_shoutbox\").value.length; }\n";
script.innerHTML+= "function sendMessage(session) { sendComment(session); document.getElementById('charCounterEV').innerHTML = '0'; }";
document.getElementsByTagName('head')[0].appendChild(script);
// Dodanie kodu HTML do chatu
var chat = $('#text_shoutbox').parent().parent().parent().parent().parent();
var test = $('#text_shoutbox').parent();
var poka = '<input type="button" name="button2 ricz" value="Emotikony" class="button2" id="pokapoka">';
var html = '<tr><td class=\"row\"><span class=\"row\"><\/b> Znaków: <b id=\"charCounterEV\">0<\/b>\/198<\/span><br />';
$('#text_shoutbox').attr('onpaste','updateCharEV();');
$('#text_shoutbox').attr('onchange','updateCharEV();');
$('#text_shoutbox').attr('maxlength','198');
$(test).append(poka);
$("input#pokapoka.button2").on('click', function(e) {
e.preventDefault();
$('a.emo').toggle();
});
$(chat).append(html);
for (var i=0; i<emordy.length; i++) {
var emoty = '<a href=\"javascript:emoticon(\'' + emordy[i][0] + '\')\" class=\"emo\" style="display: none"><img src=\"images\/smilies\/'+ emordy[i][1] +'\" border=\"0\" alt=\"\" title=\"\"><\/a>';
$(chat).append(emoty);
}
var indaend = '<\/td><\/tr>';
$(chat).append(indaend);
// Pobranie ID sesji i ustawienie podczas wysyłania
var uid = new RegExp('([0-9]+)').exec( $('#shoutbox_scroll').attr('onsubmit') )[0];
$('#shoutbox_test').attr('onsubmit','sendMessage('+uid+'); return false;');
// Uchwyt odpowiedzialny za wciskanie klawiszy
$('#chatbarText').keyup(function(event) { if(event.which != 13) { updateCharEV(); if( initPwLink) updatePwTopic(); }});
// Uchwyt odpowiedzialny za wysyłanie formy
$('#shoutbox_test').submit(function(event) { if( $('#text_shoutbox').val().length > 3 ) { var count = GM_getValue('EvCount'); count = 0; count++; GM_setValue('EvCount',count); $('#msgCounterEV').text(count); $('#charCounterEV').text('0'); return false; } });
}
);
Aktualizuje się też w tekście ale trzeba kliknąć po za pole tekstowe. Może w następnej wersji się tym zajmę.

Czuję, jakbym miał zwarcie w mózgu. ~Ricky
Jebać alkoćpunów, zawsze jestem czysty bo się myję

Cartman
Jester
-
usunięte konto
- Posty: 122735
- Rejestracja: 13-04-2013, 21:50
- Beczki: 1609
Emordy na SB [Alfa]
Post autor: usunięte konto » 06-03-2017, 21:18
To konto przedstawia wyimaginowaną postać.
Treść postów prezentuje wcześniej napisane scenariusze. Jest to fikcja.
usunięte konto
-
Kalasznikow
- Posty: 4483
- Rejestracja: 17-04-2013, 13:47
- Lokalizacja: z neta
- Beczki: 148
- Kontakt:
Emordy na SB [Alfa]
Post autor: Kalasznikow » 18-05-2017, 20:58

Co to wersja demo? Gdzie reszta emot

Kalasznikow
-
usunięte konto
- Posty: 122735
- Rejestracja: 13-04-2013, 21:50
- Beczki: 1609
Emordy na SB [Alfa]
Post autor: usunięte konto » 18-05-2017, 21:00
To konto przedstawia wyimaginowaną postać.
Treść postów prezentuje wcześniej napisane scenariusze. Jest to fikcja.
usunięte konto
-
Kalasznikow
- Posty: 4483
- Rejestracja: 17-04-2013, 13:47
- Lokalizacja: z neta
- Beczki: 148
- Kontakt:
Kalasznikow
-
usunięte konto
- Posty: 122735
- Rejestracja: 13-04-2013, 21:50
- Beczki: 1609
Emordy na SB [Alfa]
Post autor: usunięte konto » 18-05-2017, 21:23
To konto przedstawia wyimaginowaną postać.
Treść postów prezentuje wcześniej napisane scenariusze. Jest to fikcja.
usunięte konto
Emordy na SB [Alfa]
Post autor: chuj » 18-05-2017, 23:48
Dodałeś tą co była w pierwszym poście w tamtym temacie? Jak tak, to przeglądnij cały temat, są nowe wersje.
chuj
-
Kalasznikow
- Posty: 4483
- Rejestracja: 17-04-2013, 13:47
- Lokalizacja: z neta
- Beczki: 148
- Kontakt:
Emordy na SB [Alfa]
Post autor: Kalasznikow » 19-05-2017, 12:25
Kalasznikow
chuj
-
usunięte konto
- Posty: 122735
- Rejestracja: 13-04-2013, 21:50
- Beczki: 1609
Emordy na SB [Alfa]
Post autor: usunięte konto » 19-05-2017, 14:09
To konto przedstawia wyimaginowaną postać.
Treść postów prezentuje wcześniej napisane scenariusze. Jest to fikcja.
usunięte konto
chuj
-
usunięte konto
- Posty: 122735
- Rejestracja: 13-04-2013, 21:50
- Beczki: 1609
Emordy na SB [Alfa]
Post autor: usunięte konto » 19-05-2017, 15:16
To konto przedstawia wyimaginowaną postać.
Treść postów prezentuje wcześniej napisane scenariusze. Jest to fikcja.
usunięte konto
Kto jest online
Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 0 gości