// ==UserScript== // @name DW Addon+ // @version 1.1.15 // @author ThomassPWA // @description Skrypt rozszerzający funkcjonalność forum DarkWarez.pl // @namespace https://dwaddon.pl/ // @include http://darkwarez.pl/forum/* // @include http://tb7.pl/mojekonto/sciagaj?pwa // @require http://code.jquery.com/jquery-1.11.2.min.js // @grant GM_getValue // @grant GM_setValue // ==/UserScript== $(document).ready(function() { /////////////////////////////////////////////////////////////////// // KONFIGURACJA DODATKÓW ////////////////////////////////////////////////////////////////// // Dodatek aktywny = true, wyłączenie = false var initReplyChecker = true; // Sprawdzanie co 10 sekund czy pojawiły się nowe posty w temacie var initRateChecker = true; // Pobieranie oceny z FilmWeb i IMDB do widoku tematów z filmami var initQuickPlus = true; // Interaktywne i szybkie dodawanie pochwał var initQuickReply = true; // Szybka odpowiedź na końcu tematu var initCodeSelect = true; // Zaznaczanie tagów [code] po kliknięciu w ikonkę var initDiamonds = true; // Sprawdzanie ile diamentów potrzebujesz do 30 poziomu konta var initFirstPost = true; // Sprawdzanie czy Twój post będzie pierwszy na stronie var initOnlineSort = true; // Sortowanie listy online var initPostNo = true; // Numerowanie postów w temacie var initCheckPW = true; // Sprawdzanie czy już można wysłać kolejne PW var initLinksChecker = true; // Sprawdzanie czy linki są aktywne (tylko wybrane hostingi) var initSubTopics = true; // Możliwość subskrybowania wybranych tematów var initCallUser = true; // Dodanie nicku ze znakiem @ do szybkiej odpowiedzi var initQuotePosts = true; // Cytowanie selektywne wybranych postów var initIgnoreUsers = true; // Ignorowanie wybranych użytkowników (ukrywa posty) var initUnmaskLinks = true; // Interaktywne i szybkie odblokowanie linków (bez CAPTCHA) var initHideMarked = true; // Ukrywanie oznaczonych filmów/gier w widoku tematów var initMarkUsers = true; // Oznaczania użytkowników na forum wybranym kolorem + txt var initShowStatus = true; // Pokazuje status online/offlinie pod profilem usera var initSendToTb7 = true; // Wysyłanie linków do generacji na serwis tb7.pl var initMovieInfo = true; // Podstawowe informacje o filmie pobieranie z FilmWeb var initHidePorn = true; // Ukrywa działy XXX ze strony głównej + wyników wyszukiwania var plusText = ""; // Tekst dodawany przy dodawaniu plusa var newPostSound = true; // Dźwięk podczas pojawienia się nowych postów var replyRefresh = true; // Auto-odświeżanie podczas sprawdzania (gdy 0 znaków w odp) // Lista oznaczonych osób var markList = [ // SCHEMAT: 'NICK ; KOLOR ; TEKST', ]; // Lista ignorowanych osób var ignoreList = [ // SCHEMAT: 'NICK', ]; ////////////////////////////////////////////////////////////////// var apiURL = 'https://dwaddon.pl/api'; var version = '2d4075ff584576fc7c0efffd88f94b58'; var www = window.location.pathname; var isTopic,isHomePage,isTopicsList,isPW; if( www == '/forum/' ) isHomePage = true; if( typeof $("img[src='templates/bLock/images/lang_english/reply.gif']").attr('src') !== "undefined" || typeof $("img[src='templates/bLock/images/lang_english/reply-locked.gif']").attr('src') !== "undefined" ) isTopic = true; if( typeof $("img[alt='Napisz nowy temat']" ).attr('alt') !== "undefined" ) isTopicsList = true; function newVersion() { if( confirm("INFORMACJA - DW Addon+\nPojawiła się nowa wersja skryptu!\nAby móc korzystać normalnie zainstaluj nowszą wersję.\n\nCzy chcesz przejść do strony pobierania?") ) window.location.href="https://dwaddon.pl/pobierz"; } function codeFix() { $('.code1').each(function() { var tmp = $(this).parent().prev().children().children().html(); $(this).parent().prev().children().children().html(' ' + tmp); $(this).css('border-color','#b22222'); $(this).attr('class','code'); }); } function quoteSelected() { $('Odpowiedz z cytatem').insertAfter($('img[alt="Odpowiedz z cytatem"]').parent()); function getSelectionHtml() { var html = ""; if (typeof window.getSelection != "undefined") { var sel = window.getSelection(); if (sel.rangeCount) { var container = document.createElement("div"); for (var i = 0, len = sel.rangeCount; i < len; ++i) { container.appendChild(sel.getRangeAt(i).cloneContents()); } html = container.innerHTML; } } else if (typeof document.selection != "undefined") { if (document.selection.type == "Text") { html = document.selection.createRange().htmlText; } } return html; } $('.quoteSelected').click(function() { if( String(getSelection()).length > 3 ) { var pUID = $(this).parent().parent().parent().parent().parent().parent().prev().find('.name').children().attr('name'); var nickName = $(this).parent().parent().parent().parent().parent().parent().prev().find('.name').text(); var nickURL = $(this).parent().parent().parent().parent().parent().parent().prev().find('.name').children().next().children().attr('href'); var nickColour = $(this).parent().parent().parent().parent().parent().parent().prev().find('.name').children().next().children().children().attr('style'); var nickColour1 = $(this).parent().parent().parent().parent().parent().parent().prev().find('.name').children().next().children().children().attr('original'); if( typeof nickColour1 != "undefined" ) { var style = [ 'rgb(255, 204, 102)','rgb(20, 116, 38)','rgb(153, 153, 0)','rgb(169, 126, 152)','rgb(198, 186, 198)','rgb(187, 18, 18)','rgb(69, 167, 167)','rgb(142, 47, 182)','rgb(255, 179, 0)' ]; switch(nickColour1) { case style[0]: nickColour = '#FFCC66'; break; case style[1]: nickColour = '#147426'; break; case style[2]: nickColour = '#999900'; break; case style[3]: nickColour = '#A97E98'; break; case style[4]: nickColour = '#C6BAC6'; break; case style[5]: nickColour = '#BB1212'; break; case style[6]: nickColour = '#45A7A7'; break; case style[7]: nickColour = '#8E2FB6'; break; case style[8]: nickColour = '#FFB300'; break; } } else if( typeof nickColour != "undefined") { nickColour = new RegExp("color:(.+?);").exec(nickColour); nickColour = nickColour[1]; } else nickColour = "#FFB300"; $('#message').val( $('#message').val() + '[quote="[url=http://darkwarez.pl/forum/'+nickURL+'][color='+nickColour+']'+nickName+'[/color][/url] [url=http://darkwarez.pl/forum/viewtopic.php?p='+pUID+'#'+pUID+'][color=#a4a4a4]napisał:[/color][/url]"]' + "{DATA}" + "[/quote]\n"); } $.ajax ({ url: apiURL, type: "POST", data: { method: 'getQuoteBBCode', ver: version, data : encodeURIComponent( getSelectionHtml() ) } }) .done(function( msg ) { var data = $('#message').val(); var api = jQuery.parseJSON(msg); if( api.success ) { data = data.replace("{DATA}", api.data); $('#message').val(data); } else if( api.isNewVersion ) newVersion(); else alert("Wystąpił błąd!\nDodatek: Cytowanie selektywne\nBłąd: "+api.error+"\nWersja API: "+api.apiVer+"\nZgłoś błąd do ThomassPWA"); }); }); } function ignoreUsers() { $('tr').each(function() { if( $.inArray($(this).find('.name').text(), ignoreList) > -1 ) { $(this).next().remove(); $(this).remove(); } }); } function RateChecker() { $( "span .topictitle" ).each(function() { var isMovie = new RegExp("[(]([0-9]{4})[)]").test($(this).text()); if( isMovie ) { var name = $(this).text(); if( name.indexOf("/") > -1 ) name = name.split("/").pop().trim(); $( "
» Ocena?" ).insertAfter($(this)); } }); $( ".ocenaFilmu" ).click(function() { var line = $(this); line.text("Proszę czekać..."); var name = $(this).attr('name'); $.ajax ({ url: apiURL, type: "POST", data: { method: 'getMovieRate', ver: version, movie : name } }) .done(function( msg ) { var id = Math.floor((Math.random() * 100000000) + 1); var str = ""; var api = jQuery.parseJSON(msg); if( api.success ) { console.log(api); if( api.FilmWeb.Result ) str += " Ocena: /10 ( głosów) | "; else str += " Brak oceny | "; if( api.IMDB.Result ) str += " Ocena: /10 ( głosów)"; else str += " Brak oceny"; $(line).html(str); $('#' + id).find('#urlFilmweb').attr('href',api.FilmWeb.URL); $('#' + id).find('#rateFilmweb').text(api.FilmWeb.Rate); $('#' + id).find('#votesFilmweb').text(api.FilmWeb.Total); $('#' + id).find('#urlImdb').attr('href',api.IMDB.URL); $('#' + id).find('#rateImdb').text(api.IMDB.Rate); $('#' + id).find('#votesIMDB').text(api.IMDB.Total); } else if( api.isNewVersion ) newVersion(); else alert("Wystąpił błąd!\nDodatek: RateChecker\nBłąd: "+api.error+"\nWersja API: "+api.apiVer+"\nZgłoś błąd do ThomassPWA"); }) .fail(function() { $(line).html("Błąd. Spróbuj ponownie."); }); }); } function subTopics() { var img,count=0,tmpTime,tmp=""; var cookie = GM_getValue('sub'); if( typeof cookie == "undefined" ) cookie = ""; function setTmpTime(x) { tmpTime = x; } function getTmpTime( ) { return tmpTime; } // Przycisk 'Subskrybuj' if( isTopic ) { $('
').appendTo('td[align="right"][valign="middle"] span.nav'); } // Wyświetlanie listy if( cookie.length > 5 && window.location.href == "http://darkwarez.pl/forum/"){ cookie = cookie.split(","); for(var i=0;i<=10;i++) { if( typeof cookie[i] != "undefined" ) { cookie[i] = cookie[i].split("|"); if( typeof cookie[i][1] != "undefined" ) { count++; $.ajax({ url: "http://darkwarez.pl/forum/posting.php?mode=topicreview&t="+cookie[i][0], async: false }) .done(function( msg ) { var time = new RegExp('Wys(.+?)<').exec(msg); time = time[1].split(" ").pop(); setTmpTime(time); }); var now = getTmpTime(); if( now != cookie[i][2] ) img = ''; else img = ''; tmp+= ' Temat: '+cookie[i][1]+''+img+'Usuń'+"\n"; } } } if( count > 0 ) { $('
'+tmp+'
Subskrybowane tematy

').insertAfter('table[width="100%"]:first'); } } // Oznaczanie jako przeczytane else if( document.referrer == "http://darkwarez.pl/forum/" || ( www.indexOf('/forum/post-') > -1 ) ) { tmp = []; var topicid = $('input[name="search_topic"]').val(); if( typeof topicid != "undefined" ) { $.ajax({ url: "http://darkwarez.pl/forum/posting.php?mode=topicreview&t="+topicid, async: false }) .done(function( msg ) { var time = new RegExp('Wys(.+?)<').exec(msg); time = time[1].split(" ").pop(); setTmpTime(time); }); cookie = cookie.split(","); for(var i=0; i < cookie.length; i++) { var x = cookie[i].split('|'); if( x[0] == topicid ) { x[2] = getTmpTime(); tmp.push( x.join("|") ); } else tmp.push( x.join("|") ); } tmp = tmp.join(); GM_setValue('sub',tmp); } } // Dodawanie do listy $('#addSub').click(function() { tmp = []; var cookie = GM_getValue('sub'); if( typeof cookie == "undefined" ) cookie = ""; var topicid = $('input[name="search_topic"]').val(); // Dodawanie jeśli już istnieje jeden if( cookie.length > 5 ) { cookie = cookie.split(","); for(var i=0; i < cookie.length; i++) { var x = cookie[i].split("|"); tmp.push(x[0]); } if( $.inArray(topicid, tmp) == -1 ) { tmp = cookie; $.ajax({ url: "http://darkwarez.pl/forum/posting.php?mode=topicreview&t="+topicid, async: false }) .done(function( msg ) { var time = new RegExp('Wys(.+?)<').exec(msg); time = time[1].split(" ").pop(); setTmpTime(time); }); var name = $('title').text().trim().replace('|','').replace(',',''); if( name.indexOf(' - Strona ') > -1 ) { name = name.split(' - Strona '); name.pop(); name = name[0]; } tmp.push(topicid+"|"+name+"|"+getTmpTime()); GM_setValue('sub',tmp.join()); $('#addSub').val('Temat dodano do subskrypcji!'); $('#addSub').css('color','green'); alert('Uwaga! Dodanie zbyt wielu tematów na raz do subskrypcji spowalnia wczytywanie strony głównej!'); } else { $('#addSub').val('Subskrybujesz już ten temat!'); $('#addSub').css('color','red'); } } else { $.ajax({ url: "http://darkwarez.pl/forum/posting.php?mode=topicreview&t="+topicid, async: false }) .done(function( msg ) { var time = new RegExp('Wys(.+?)<').exec(msg); time = time[1].split(" ").pop(); setTmpTime(time); }); var name = $('title').text().trim().replace('|','').replace(',',''); if( name.indexOf(' - Strona ') > -1 ) { name = name.split(' - Strona '); name.pop(); name = name[0]; } GM_setValue('sub',topicid+"|"+name+"|"+getTmpTime()); $('#addSub').val('Temat dodano do subskrypcji!'); $('#addSub').css('color','green'); } }); // Usuwanie z listy $('.delSub').click(function() { var cookie = GM_getValue('sub'); cookie = cookie.split(","); cookie.splice($(this).attr('uid'), 1); cookie = cookie.join(); GM_setValue('sub',cookie); $(this).parent().parent().remove(); }); } function QuickPlus() { $('').insertAfter("#tekst3"); $( "a" ).each(function() { var x = $(this); var tmp = x.attr('href'); if (typeof tmp !== "undefined") { if( tmp.indexOf('plusminus.php?mode=point') > -1) { var data = new RegExp("&post=([0-9]+)&ss=([0-9]+)").exec(tmp); x.removeAttr('href'); x.css('cursor','pointer'); x.attr('class','addPlus'); $(this).attr('data',data[1]+','+data[2]); } } }); $( ".addPlus" ).click(function() { var pos = $(this).offset(); $("#plusForm").css('top',pos.top+17); $("#plusForm").css('left',pos.left-250); $("#plusForm #sendPlus").attr('data',$(this).attr('data')); $("#plusForm").show(); $("#plusForm #messagePlus").val(plusText); }); $( "#plusForm #sendPlus" ).click(function() { var data = $(this).attr('data'); data = data.split(','); var message = $("#plusForm #messagePlus").val(); $.ajax ({ url: "plusminus.php", type: "POST", data: { mode : 'give', type : 'plus', 'post' : data[0], reason : message, ss : data[1], submit : 'Wy%B6lij' } }) .done(function() { $('#plusForm #messagePlus').val(''); $("#plusForm").hide(); }); $("a[data='"+$(this).attr('data')+"'] img").hide(); $('
Autor postu otrzymał pochwałę.
').insertAfter($('a[data="'+$(this).attr('data')+'"]').parent().parent().next().next().next()); }); $( "#plusForm #closePlus" ).click(function() { $("#plusForm").hide(); }); } function ReplyChecker() { if( document.location.href.indexOf('&new=posts') > -1 ) { document.title = '[NEW] ' + document.title; if( newPostSound ) { var audioElement = document.createElement('audio'); audioElement.setAttribute('src', 'https://dwaddon.pl/notify.mp3'); audioElement.setAttribute('autoplay', 'autoplay'); $.get(); audioElement.addEventListener("load", function() { audioElement.play();}, true); } $(window).focus(function() { var tmp = document.title.replace('[NEW]',''); tmp = tmp.replace('[REF]',''); document.title = tmp; }); } var lastPost,interval; var user = new RegExp('Wyloguj \\[ (.+?) \\]').exec($('a.mainmenu').text()); user = user[1]; var topic = $('input[name="t"]').val(); function setLastPost(x) { lastPost = x; } function getLastPost() { return lastPost; } $.ajax ({ url: 'posting.php?mode=topicreview&t='+topic, type: "GET" }) .done(function( msg ) { var t = new RegExp('(.+?)').exec(msg); t = t[1]; setLastPost( t ); }); function stopInterval() { clearInterval(interval); } interval = window.setInterval(function() { $.ajax ({ url: 'posting.php?mode=topicreview&t='+topic, type: "GET" }) .done(function( msg ) { var tmp = new RegExp('(.+?)').exec(msg); tmp = tmp[1]; if( tmp != getLastPost() && ( tmp.indexOf(user) == -1 ) ) { stopInterval(); if( replyRefresh && $('#message').val().length === 0 ) { var wd = window || document; $.ajax ({ type: "GET", url: 'viewtopic.php?t=' + topic +'&view=newest', success: function(data, status, xhr) { var tmp = new RegExp(' -1 ) document.title = '[REF]' + document.title; else { document.title = '[NEW] ' + document.title; $("#postb").val('Pojawiły się nowe posty!'); $("#postb").css('color','red'); } } } }); }, 10000); } function CodeSelect() { $("img[src='img/code.png']").attr('class','codeSelect'); $(".codeSelect").css('cursor','pointer'); $(".codeSelect").attr('title','Zaznacz wszystko'); $(".codeSelect").click(function() { var tmp = $(this).parents('tr').next().find('.code'); tmp.attr('id','copyText'); var doc = document, text = doc.getElementById('copyText'), range, selection; if (doc.body.createTextRange) { range = document.body.createTextRange(); range.moveToElementText(text); range.select(); } else if (window.getSelection) { selection = window.getSelection(); range = document.createRange(); range.selectNodeContents(text); selection.removeAllRanges(); selection.addRange(range); } tmp.removeAttr('id'); }); } function DiamondsCheck() { var total = 0; var actual = $('a[href="diamenty.php"]:first').next().text().trim(); function setTotal(x) { total = x; } function getTotal() { return total; } $( "input.button" ).each(function() { var tmp = $(this).val(); if( (tmp.indexOf('Do zdobycia') > -1) || (tmp.indexOf('Awansuj') > -1) ) { var x = $(this).parent().parent().children().next().text().trim(); setTotal( getTotal() + parseInt( x ) ); } }); if( getTotal() > 0 ) { setTotal( getTotal() - parseInt(actual) ); $('
'+getTotal()+'
').insertAfter( $('img[src="img/ddoladuj.png"]').parent() ); } } function FirstPostCheck() { $( "a.topictitle" ).each(function() { var tmp = $(this).parent().parent().next().next().next().children(); var odp = tmp.text().trim(); odp = parseInt( odp ) + 1; if( odp > 16 ) { var posts = odp%16; if( posts === 0 ) posts = '16'; $(tmp).html( $(tmp).text() + "
(" + posts + ")" ); if( odp%16 === 0 ) $(this).css('color','lime'); } }); } function sortOnlineList() { var users = [ [],[],[],[],[],[],[],[],[] ]; var style = [ 'rgb(255, 204, 102)','rgb(20, 116, 38)','rgb(153, 153, 0)','rgb(169, 126, 152)','rgb(198, 186, 198)','rgb(187, 18, 18)','rgb(69, 167, 167)','rgb(142, 47, 182)','rgb(255, 179, 0)' ]; var tmp="",i,toSave=""; $( ".row1 .gensmall a" ).each(function() { switch ( $(this).css('color') ) { case style[0]: users[0].push({0:$(this).text(),1:$(this).attr('href')}); break; case style[1]: users[1].push({0:$(this).text(),1:$(this).attr('href')}); break; case style[2]: users[2].push({0:$(this).text(),1:$(this).attr('href')}); break; case style[3]: users[3].push({0:$(this).text(),1:$(this).attr('href')}); break; case style[4]: users[4].push({0:$(this).text(),1:$(this).attr('href')}); break; case style[5]: users[5].push({0:$(this).text(),1:$(this).attr('href')}); break; case style[6]: users[6].push({0:$(this).text(),1:$(this).attr('href')}); break; case style[7]: users[7].push({0:$(this).text(),1:$(this).attr('href')}); break; case style[8]: users[8].push({0:$(this).text(),1:$(this).attr('href')}); break; } }); for(var g=0;g<9;g++) { if( users[g].length > 0 ) for (i=0; i'+users[g][i][0]+', '; if( initShowStatus ) toSave+=users[g][i][0]+","; } } if( initShowStatus ) { toSave = toSave.substring(0,(toSave.length)-2); GM_setValue('online',toSave); } var txt = new RegExp("Na Forum jest.+?
Użytkownicy przeglądający to forum: ","g").exec( $('body').html() ); $('.row1[valign="top"] .gensmall').html(txt[0] + tmp.substring(0,(tmp.length-2))); } function addPostNo() { var i=1; $( 'img[width="12"][height="9"]' ).each(function() { $('#'+i+' | ').insertAfter(this); i++; }); } function checkPW() { var tmp = GM_getValue('PW'); if( tmp !== "" ) { tmp = new Date(tmp); tmp = ( new Date() - tmp ); if( tmp <= 50000 ) { var czas = 50000 - tmp; czas = String(czas); if( czas.length == 5 ) tmp = czas.substring(0,2); else if( czas.length == 4 ) tmp = czas.substring(0,1); var script = document.createElement('script'); script.type = 'text/javascript'; script.innerHTML = "var num = "+tmp+"; var timer; function countdown(){ if(num < 1){ if(timer) clearTimeout(timer); document.getElementById('postb').value = \"Wyślij\"; document.getElementById('postb').disabled = false; } else{ document.getElementById('postb').value = \"Odczekaj \" + num + \" sekund\"; document.getElementById('postb').disabled = true; num--; if(!timer) timer = setInterval(\"countdown()\",1000); } } countdown();"; document.getElementsByTagName('head')[0].appendChild(script); } } } function callUser() { $('@').insertBefore('span.name'); $('.callUser').click(function() { if( $('#message').val().length === 0) $('#message').val( $('#message').val() + '@' + $(this).parent().next().text() ); else $('#message').val( $('#message').val() + "\n\n" + '@' + $(this).parent().next().text() ); $("#message").trigger('focus'); }); } function markUsers() { $('span.name').each(function() { for(var i=0;i -1 ) { var tmp = markList[i].split(";"); $(this).find('a span').attr('original',$(this).find('a span').css('color')); $(this).find('a span').css('color',tmp[1]); $(this).find('a span').css('font-style','italic'); $(this).find('a span').attr('title',tmp[2]); } } }); } function hideMarked() { $('img[src="img/oznacza.gif"]').parent().parent().parent().hide(); } function showStatus() { var tmp = GM_getValue('online'); if( typeof tmp != "undefined" || tmp.lenght > 3 ) { tmp = tmp.split(","); $('span.name').each(function() { if( $.inArray($(this).text(), tmp) > -1 ) $("").insertAfter(this); else $("").insertAfter(this); }); } } function LinksChecker() { $('').insertBefore("img[src='img/code.png']"); $(".checkLinks").click(function() { var tmp = $(this).parents('tr').next().find('.code'); var links = tmp.html(); var hostingList = [ 'rapidu.net', 'www.rapidu.net', 'www.catshare.net', 'catshare.net', 'www.rapidgator.net', 'rapidgator.net', 'fileshark.pl', 'www.fileshark.pl', 'turbobit.net', 'www.turbobit.net', 'lunaticfiles.com', 'www.lunaticfiles.com', 'uploaded.net', 'www.uploaded.net', 'uploadable.ch', 'www.uploadable.ch' ]; links = links.split("
"); tmp.html(''); if( links.length > 0 ) { for(var i=0;i -1 ) { $.ajax ({ url: apiURL, type: "POST", async: false, data: { method: 'getLinkStatus', ver: version, data: links[i] } }) .done(function( msg ) { var api = jQuery.parseJSON(msg); if( api.success ) { if( api.isActive ) $(''+links[i]+'
').appendTo(tmp); else $(''+links[i]+'
').appendTo(tmp); } else if( api.isNewVersion ) newVersion(); else alert("Wystąpił błąd!\nDodatek: Sprawdzanie linków\nBłąd: "+api.error+"\nWersja API: "+api.apiVer+"\nZgłoś błąd do ThomassPWA"); }); } else $(''+links[i]+'
').appendTo(tmp); } } } $(this).remove(); }); } function sendToTb7() { $('').insertAfter("img[src='img/code.png']"); $('.sendLinks').click(function() { var tmp = $(this).parents('tr').next().find('.code'); var links = tmp.text(); tmp = ""; links = links.split("http"); console.log("Po split : " + links); for(var i=0; i\n\n\"Kliknij<\/a>\n\n \n\n\n\n\n\n\n
Nazwa:<\/b><\/td>\n<\/span><\/td>\n <\/tr>\n\n
Gatunek:<\/b><\/td>\n<\/span><\/td>\n <\/tr>\n\n
Ocena:<\/b><\/td>\n<\/span><\/td>\n <\/tr>\n\n
Opis:<\/b><\/td>\n<\/span><\/td>\n <\/tr>\n\n
Recenzja:<\/b><\/td>\n<\/a><\/span><\/td>\n <\/tr>\n\n
 <\/td><\/tr>\n\n<\/tbody><\/table>\n<\/td>\n<\/tr>"; var errorTable = "
\n\n\n \n\n\n\n"); var codeArea = $(code).find('td'); for(var i=0;i") ); } else if( api.isNewVersion ) newVersion(); else alert("Wystąpił błąd!\nDodatek: Odblokowanie linków\nBłąd: "+api.error+"\nWersja API: "+api.apiVer+"\nZgłoś błąd do ThomassPWA"); }); } $(this).remove(); }); } function hidePorn() { // Strona Główna if( www == '/forum/' ) { $('a[title="XXX"]').parent().parent().parent().remove(); $('a[title="VIP XXX"]').prev().remove(); $('a[title="VIP XXX"]').remove(); } // Wyniki wyszukiwania else if ( www.indexOf('search.php') > -1 ) { $('.forumlink[href="galerie/"]').parent().parent().parent().remove(); $('.forumlink[href="xxx/"]').parent().parent().parent().remove(); $('.forumlink[href="xxx-hd-720-1080/"]').parent().parent().parent().remove(); $('.forumlink[href="xxx-pelnometrazowe/"]').parent().parent().parent().remove(); $('.forumlink[href="hentai/"]').parent().parent().parent().remove(); } } function QuickReply() { var script = document.createElement('script'); script.type = 'text/javascript'; script.innerHTML = "function emoticon(text) {var txtarea = document.post.message;prevTop = document.post.message.scrollTop;text = ' ' + text + ' ';if (txtarea.createTextRange && txtarea.caretPos) { var caretPos = txtarea.caretPos; caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? caretPos.text + text + ' ' : caretPos.text + text; txtarea.focus();} else { var s1 = txtarea.value.substring(0,txtarea.selectionStart); var s2 = txtarea.value.substring(txtarea.selectionStart, txtarea.textLength); txtarea.value = s1 + text + s2; txtarea.focus();}document.post.message.scrollTop = prevTop; }\n"; script.innerHTML+= 'b_help = "Tekst pogrubiony: [b]tekst[/b] (alt+b)";i_help = "Tekst kursywą: [i]tekst[/i] (alt+i)";u_help = "Tekst podkreślony: [u]tekst[/u] (alt+u)";q_help = "Cytat: [quote]tekst[/quote] (alt+q)";c_help = "Pokaż kod: [code]kod[/code] (alt+c)";l_help = "Lista: [list]tekst[/list] (alt+l)";o_help = "Lista uporządkowana: [list=]tekst[/list] (alt+o)";p_help = "Wstaw obrazek: [img]http://adres_obrazka[/img] (alt+p)";w_help = "Wstaw adres: [url]http://adres[/url] or [url=http://adres]Tekst adresu[/url] (alt+w)";a_help = "Zamknij wszystkie otwarte tagi bbCode";s_help = "Kolor czcionki: [color=red]tekst[/color] Rada: możesz także podać color=#FF0000";f_help = "Rozmiar czcionki: [size=x-small]mały tekst[/size]";r_help = "";'+"\n"; script.innerHTML+= "function helpline(help) { prevTop = document.post.message.scrollTop; document.post.helpbox.value = eval(help + '_help'); document.post.message.scrollTop = prevTop; }\n" + "var clientPC = navigator.userAgent.toLowerCase(); var clientVer = parseInt(navigator.appVersion); var is_ie = ((clientPC.indexOf(\"msie\") != -1) && (clientPC.indexOf(\"opera\") == -1));var is_nav = ((clientPC.indexOf('mozilla')!=-1) && (clientPC.indexOf('spoofer')==-1) && (clientPC.indexOf('compatible') == -1) && (clientPC.indexOf('opera')==-1) && (clientPC.indexOf('webtv')==-1) && (clientPC.indexOf('hotjava')==-1));var is_moz = 0;var is_win = ((clientPC.indexOf(\"win\")!=-1) || (clientPC.indexOf(\"16bit\") != -1));var is_mac = (clientPC.indexOf(\"mac\")!=-1);"; script.innerHTML+= "bbcode = new Array(); bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]','[spoiler]','[/spoiler]'); imageTag = false;"; script.innerHTML+= "function bbfontstyle(bbopen, bbclose) { var txtarea = document.post.message; prevTop = document.post.message.scrollTop; if ((clientVer >= 4) && is_ie && is_win) { theSelection = document.selection.createRange().text; if (!theSelection) { txtarea.value += bbopen + bbclose; txtarea.focus(); document.post.message.scrollTop = prevTop; return; } document.selection.createRange().text = bbopen + theSelection + bbclose; txtarea.focus(); document.post.message.scrollTop = prevTop; return; } else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0)) { mozWrap(txtarea, bbopen, bbclose); document.post.message.scrollTop = prevTop; return; } else { txtarea.value += bbopen + bbclose; txtarea.focus(); } storeCaret(txtarea); document.post.message.scrollTop = prevTop;}"; script.innerHTML+= "function bbstyle(bbnumber) {var txtarea = document.post.message; prevTop = document.post.message.scrollTop; txtarea.focus(); donotinsert = false; theSelection = false; bblast = 0; if (bbnumber == -1) { while (bbcode[0]) { butnumber = arraypop(bbcode) - 1; txtarea.value += bbtags[butnumber + 1]; buttext = eval('document.post.addbbcode' + butnumber + '.value'); eval('document.post.addbbcode' + butnumber + '.value =\"' + buttext.substr(0,(buttext.length - 1)) + '\"'); } imageTag = false; txtarea.focus(); document.post.message.scrollTop = prevTop; return; } if ((clientVer >= 4) && is_ie && is_win) { theSelection = document.selection.createRange().text; if (theSelection) { document.selection.createRange().text = bbtags[bbnumber] + theSelection + bbtags[bbnumber+1]; txtarea.focus(); theSelection = ''; document.post.message.scrollTop = prevTop; return; } } else if (txtarea.selectionEnd && (txtarea.selectionEnd - txtarea.selectionStart > 0)) { mozWrap(txtarea, bbtags[bbnumber], bbtags[bbnumber+1]); document.post.message.scrollTop = prevTop; return; } for (i = 0; i < bbcode.length; i++) { if (bbcode[i] == bbnumber+1) { bblast = i; donotinsert = true; } } if (donotinsert) { while (bbcode[bblast]) { butnumber = arraypop(bbcode) - 1; txtarea.value += bbtags[butnumber + 1]; buttext = eval('document.post.addbbcode' + butnumber + '.value'); eval('document.post.addbbcode' + butnumber + '.value =\"' + buttext.substr(0,(buttext.length - 1)) + '\"'); imageTag = false; } txtarea.focus(); document.post.message.scrollTop = prevTop; return; } else { if (imageTag && (bbnumber != 14)) { txtarea.value += bbtags[15]; lastValue = arraypop(bbcode) - 1; document.post.addbbcode14.value = \"Img\"; imageTag = false; } txtarea.value += bbtags[bbnumber]; if ((bbnumber == 14) && (imageTag == false)) imageTag = 1; arraypush(bbcode,bbnumber+1); eval('document.post.addbbcode'+bbnumber+'.value += \"*\"'); txtarea.focus(); document.post.message.scrollTop = prevTop; return; } storeCaret(txtarea); document.post.message.scrollTop = prevTop;}"; script.innerHTML+= "function getarraysize(thearray) {for (i = 0; i < thearray.length; i++) { if ((thearray[i] == \"undefined\") || (thearray[i] == \"\") || (thearray[i] == null)) return i; }return thearray.length; }"; script.innerHTML+= "function arraypush(thearray,value) {thearray[ getarraysize(thearray) ] = value; }"; script.innerHTML+= "function arraypop(thearray) {thearraysize = getarraysize(thearray);retval = thearray[thearraysize - 1];delete thearray[thearraysize - 1];return retval;}"; script.innerHTML+= "function storeCaret(textEl) { if (textEl.createTextRange) textEl.caretPos = document.selection.createRange().duplicate(); }"; script.innerHTML+= "function mozWrap(txtarea, open, close){ prevTop = document.post.message.scrollTop; var selLength = txtarea.textLength; var selStart = txtarea.selectionStart; var selEnd = txtarea.selectionEnd; if (selEnd == 1 || selEnd == 2) selEnd = selLength; var s1 = (txtarea.value).substring(0,selStart); var s2 = (txtarea.value).substring(selStart, selEnd); var s3 = (txtarea.value).substring(selEnd, selLength); txtarea.value = s1 + open + s2 + close + s3; if(close=='[/b]'||close=='[/u]'||close=='[/i]'||close=='[/size]'||close=='[/color]') { txtarea.selectionStart = selStart; txtarea.selectionEnd = selEnd + open.length + close.length; txtarea.focus(); } document.post.message.scrollTop = prevTop; return;}"; document.getElementsByTagName('head')[0].appendChild(script); var form = "
Informacja<\/b><\/td>\n<\/span><\/td>\n <\/tr>\n\n
Powód:<\/b><\/td>\n<\/span><\/td>\n <\/tr>\n\n
Sprawdź<\/b><\/td>\n<\/a><\/span><\/td>\n <\/tr>\n\n
 <\/td><\/tr>\n\n<\/tbody><\/table>\n<\/td>\n<\/tr>"; $.ajax ({ url: apiURL, type: "POST", data: { method: 'getMovieData', ver: version, movie : name } }) .done(function( msg ) { var api = jQuery.parseJSON(msg); if( api.success ) { $(movieTable).insertAfter(ins); $('#movieImg').attr('href','https://images.weserv.nl/?url=' + api.img); $('#movieImg1').attr('src','https://images.weserv.nl/?url=' + api.img); $('#movieName').text( replaceInfo( api.title ) ); $('#movieDesc').text( replaceInfo( api.description ) ); $('#movieRate').text(api.rate + '/10 ('+ api.votes +' głosów)'); $('#movieGenre').text(api.genre); $('#movieUrl').attr('href',api.url); $('#movieTable').removeAttr('style'); } else if( api.isNewVersion ) { if( confirm("INFORMACJA - DW Addon+\nPojawiła się nowa wersja skryptu!\nAby móc korzystać normalnie zainstaluj nowszą wersję.\n\nCzy chcesz przejść do strony pobierania?") ) window.location.href="https://dwaddon.pl/pobierz"; } else { $(errorTable).insertAfter(ins); if( typeof api.url != "undefined" ) $('#movieUrl').attr('href',api.url); $('#movieTitle').text(api.title); $('#movieDes').text(api.error); $('#movieTable').removeAttr('style'); } }); } } function unmaskLinks() { $('img[src="img/odblokuj.gif"]').each(function() { $(this).parent().removeAttr('href'); $(this).parent().attr('class','unmask'); $(this).parent().attr('style','cursor:pointer;'); }); $('.unmask').click(function() { var code = $(this).parent().parent().parent().next(); if( code.html().indexOf('xup.pl') > -1 ) { var html = code.html(); $.ajax ({ url: apiURL, type: "POST", data: { method: 'getOriginalURL', ver: version, data : html } }) .done(function( msg ) { var api = jQuery.parseJSON(msg); if( api.success ) { $(code).html("
Szybka Odpowiedź<\/b><\/th><\/tr>
Treść wiadomości<\/b><\/span> <\/td> <\/tr>

Emotikony<\/b><\/td> <\/tr>
\"\"<\/a><\/td> \"Smile\"<\/a><\/td> \"Sad\"<\/a><\/td> \"Facepalm\"<\/a><\/td> <\/tr>
\"Cool\"<\/a><\/td> \"Laughing\"<\/a><\/td> \"Mad\"<\/a><\/td> \"Razz\"<\/a><\/td> <\/tr>
\"Embarassed\"<\/a><\/td> \"Crying<\/a><\/td> \"Evil<\/a><\/td> \"Twisted<\/a><\/td> <\/tr>
\"Rolling<\/a><\/td> \"Wink\"<\/a><\/td> \"Neutral\"<\/a><\/td> \"Mr.<\/a><\/td> <\/tr> <\/tbody><\/table> <\/td> <\/tr> <\/tbody><\/table> <\/td>
<\/span><\/td> <\/span><\/td> <\/span><\/td> <\/span><\/td> <\/span><\/td> <\/span><\/td> <\/span><\/td> <\/span><\/td> <\/span><\/td> <\/span><\/td> <\/tr><\/tbody><\/table><\/td> <\/tr>
Wybierz kolor:<\/td>
<\/div><\/td>
<\/div><\/td>
<\/div><\/td>
<\/div><\/td>
<\/div><\/td>
<\/div><\/td>
<\/div><\/td>
<\/div><\/td>
<\/div><\/td>
<\/div><\/td>
<\/div><\/td>
<\/div><\/td>
<\/div><\/td>
<\/div><\/td>
 Rozmiar:<\/td>
<\/span><\/td> <\/tr>