// ==UserScript==
// @name Nyx - reply preview enhancement
// @description Vylepseni overlibu na nahled reply
// @include http://www.nyx.cz/code/index.php?*
// @include https://www.nyx.cz/code/index.php?*
// ==/UserScript==
/* mini hack on fuckin overlib :) */
function own_to_string(text) {
return text;
}
function new_rs(id, id_aud) {
overlib('
Loading...
', STICKY, NOCLOSE, FULLHTML, WRAP, WRAPMAX, 600, BORDER, 0);
//alert('ol_reply.php?id=' + id + '&id_aud=' + id_aud);
//OLdebugAJAX = true;
/*
OLgetAJAX('ol_reply.php?id=' + id + '&id_aud=' + id_aud, function(){
ht = OLresponseAJAX;
alert(ht);
// tohle by melo odstranit to go, pac normalni kliknuti funguje jako fungovalo drive...
re = new RegExp('
-> go');
ht = ht.replace(re, '');
alert(ht);
OLgetRef('rs').innerHTML=ht;
});*/
OLgetAJAX('ol_reply.php?id=' + id + '&id_aud=' + id_aud, function(){OLgetRef('rs').innerHTML= OLresponseAJAX ;});
return false;
}
function overlib_new() {
body = document.getElementsByTagName('body')[0];
// pridame funkci new_rs do htmlka
o_script = document.createElement('script');
o_script.setAttribute('type', 'text/javascript');
o_script.appendChild(document.createTextNode(new_rs));
body.appendChild(o_script);
//projedeme vsechny tagy A
a_element = document.getElementsByTagName('a');
for(i=0;i