NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name koyu fenerbahceli // @namespace fenerama // @description ek$i giydirici o.O - 29 agustos 2014 08:48 - https://twitter.com/fenerama // @version 2.02 // @author futurama // @include https://eksisozluk.com* // @include http://eksisozluk.com* // @downloadURL https://dl.dropboxusercontent.com/u/82207064/kfb_v2/koyu_fenerbahceli.user.js // @updateURL https://dl.dropboxusercontent.com/u/82207064/kfb_v2/koyu_fenerbahceli.meta.js // @grant none // @run-at document-end // ==/UserScript== //jquery.minicolors.js //require http://labs.abeautifulsite.net/jquery-minicolors/jquery.minicolors.js function init(i,t){var o=$('<div class="minicolors" />'),e=$.minicolors.defaults;i.data("minicolors-initialized")||(t=$.extend(!0,{},e,t),o.addClass("minicolors-theme-"+t.theme).toggleClass("minicolors-with-opacity",t.opacity),void 0!==t.position&&$.each(t.position.split(" "),function(){o.addClass("minicolors-position-"+this)}),i.addClass("minicolors-input").data("minicolors-initialized",!1).data("minicolors-settings",t).prop("size",7).wrap(o).after('<div class="minicolors-panel minicolors-slider-'+t.control+'"><div class="minicolors-slider"><div class="minicolors-picker"></div></div><div class="minicolors-opacity-slider"><div class="minicolors-picker"></div></div><div class="minicolors-grid"><div class="minicolors-grid-inner"></div><div class="minicolors-picker"><div></div></div></div></div>'),t.inline||(i.after('<span class="minicolors-swatch"><span class="minicolors-swatch-color"></span></span>'),i.next(".minicolors-swatch").on("click",function(t){t.preventDefault(),i.focus()})),i.parent().find(".minicolors-panel").on("selectstart",function(){return!1}).end(),t.inline&&i.parent().addClass("minicolors-inline"),updateFromInput(i,!1),i.data("minicolors-initialized",!0))} function destroy(i){var t=i.parent();i.removeData("minicolors-initialized").removeData("minicolors-settings").removeProp("size").removeClass("minicolors-input"),t.before(i).remove()} function show(i){var t=i.parent(),o=t.find(".minicolors-panel"),e=i.data("minicolors-settings");!i.data("minicolors-initialized")||i.prop("disabled")||t.hasClass("minicolors-inline")||t.hasClass("minicolors-focus")||(hide(),t.addClass("minicolors-focus"),o.stop(!0,!0).fadeIn(e.showSpeed,function(){e.show&&e.show.call(i.get(0))}))} function hide(){$(".minicolors-focus").each(function(){var i=$(this),t=i.find(".minicolors-input"),o=i.find(".minicolors-panel"),e=t.data("minicolors-settings");o.fadeOut(e.hideSpeed,function(){e.hide&&e.hide.call(t.get(0)),i.removeClass("minicolors-focus")})})} function move(i,t,o){var e,n,s,a,r=i.parents(".minicolors").find(".minicolors-input"),c=r.data("minicolors-settings"),h=i.find("[class$=-picker]"),l=i.offset().left,d=i.offset().top,p=Math.round(t.pageX-l),u=Math.round(t.pageY-d),g=o?c.animationSpeed:0;t.originalEvent.changedTouches&&(p=t.originalEvent.changedTouches[0].pageX-l,u=t.originalEvent.changedTouches[0].pageY-d),0>p&&(p=0),0>u&&(u=0),p>i.width()&&(p=i.width()),u>i.height()&&(u=i.height()),i.parent().is(".minicolors-slider-wheel")&&h.parent().is(".minicolors-grid")&&(e=75-p,n=75-u,s=Math.sqrt(e*e+n*n),a=Math.atan2(n,e),0>a&&(a+=2*Math.PI),s>75&&(s=75,p=75-75*Math.cos(a),u=75-75*Math.sin(a)),p=Math.round(p),u=Math.round(u)),i.is(".minicolors-grid")?h.stop(!0).animate({top:u+"px",left:p+"px"},g,c.animationEasing,function(){updateFromControl(r,i)}):h.stop(!0).animate({top:u+"px"},g,c.animationEasing,function(){updateFromControl(r,i)})} function updateFromControl(i,t){function o(i,t){var o,e;return i.length&&t?(o=i.offset().left,e=i.offset().top,{x:o-t.offset().left+i.outerWidth()/2,y:e-t.offset().top+i.outerHeight()/2}):null}var e,n,s,a,r,c,h,l=i.val(),d=i.attr("data-opacity"),p=i.parent(),u=i.data("minicolors-settings"),g=p.find(".minicolors-swatch"),m=p.find(".minicolors-grid"),f=p.find(".minicolors-slider"),b=p.find(".minicolors-opacity-slider"),v=m.find("[class$=-picker]"),x=f.find("[class$=-picker]"),$=b.find("[class$=-picker]"),k=o(v,m),y=o(x,f),C=o($,b);if(t.is(".minicolors-grid, .minicolors-slider")){switch(u.control){case"wheel":a=m.width()/2-k.x,r=m.height()/2-k.y,c=Math.sqrt(a*a+r*r),h=Math.atan2(r,a),0>h&&(h+=2*Math.PI),c>75&&(c=75,k.x=69-75*Math.cos(h),k.y=69-75*Math.sin(h)),n=keepWithin(c/.75,0,100),e=keepWithin(180*h/Math.PI,0,360),s=keepWithin(100-Math.floor(y.y*(100/f.height())),0,100),l=hsb2hex({h:e,s:n,b:s}),f.css("backgroundColor",hsb2hex({h:e,s:n,b:100}));break;case"saturation":e=keepWithin(parseInt(k.x*(360/m.width()),10),0,360),n=keepWithin(100-Math.floor(y.y*(100/f.height())),0,100),s=keepWithin(100-Math.floor(k.y*(100/m.height())),0,100),l=hsb2hex({h:e,s:n,b:s}),f.css("backgroundColor",hsb2hex({h:e,s:100,b:s})),p.find(".minicolors-grid-inner").css("opacity",n/100);break;case"brightness":e=keepWithin(parseInt(k.x*(360/m.width()),10),0,360),n=keepWithin(100-Math.floor(k.y*(100/m.height())),0,100),s=keepWithin(100-Math.floor(y.y*(100/f.height())),0,100),l=hsb2hex({h:e,s:n,b:s}),f.css("backgroundColor",hsb2hex({h:e,s:n,b:100})),p.find(".minicolors-grid-inner").css("opacity",1-s/100);break;default:e=keepWithin(360-parseInt(y.y*(360/f.height()),10),0,360),n=keepWithin(Math.floor(k.x*(100/m.width())),0,100),s=keepWithin(100-Math.floor(k.y*(100/m.height())),0,100),l=hsb2hex({h:e,s:n,b:s}),m.css("backgroundColor",hsb2hex({h:e,s:100,b:100}))}i.val(convertCase(l,u.letterCase))}t.is(".minicolors-opacity-slider")&&(d=u.opacity?parseFloat(1-C.y/b.height()).toFixed(2):1,u.opacity&&i.attr("data-opacity",d)),g.find("SPAN").css({backgroundColor:l,opacity:d}),doChange(i,l,d)} function updateFromInput(i,t){var o,e,n,s,a,r,c,h=i.parent(),l=i.data("minicolors-settings"),d=h.find(".minicolors-swatch"),p=h.find(".minicolors-grid"),u=h.find(".minicolors-slider"),g=h.find(".minicolors-opacity-slider"),m=p.find("[class$=-picker]"),f=u.find("[class$=-picker]"),b=g.find("[class$=-picker]");switch(o=convertCase(parseHex(i.val(),!0),l.letterCase),o||(o=convertCase(parseHex(l.defaultValue,!0),l.letterCase)),e=hex2hsb(o),t||i.val(o),l.opacity&&(n=""===i.attr("data-opacity")?1:keepWithin(parseFloat(i.attr("data-opacity")).toFixed(2),0,1),isNaN(n)&&(n=1),i.attr("data-opacity",n),d.find("SPAN").css("opacity",n),a=keepWithin(g.height()-g.height()*n,0,g.height()),b.css("top",a+"px")),d.find("SPAN").css("backgroundColor",o),l.control){case"wheel":r=keepWithin(Math.ceil(.75*e.s),0,p.height()/2),c=e.h*Math.PI/180,s=keepWithin(75-Math.cos(c)*r,0,p.width()),a=keepWithin(75-Math.sin(c)*r,0,p.height()),m.css({top:a+"px",left:s+"px"}),a=150-e.b/(100/p.height()),""===o&&(a=0),f.css("top",a+"px"),u.css("backgroundColor",hsb2hex({h:e.h,s:e.s,b:100}));break;case"saturation":s=keepWithin(5*e.h/12,0,150),a=keepWithin(p.height()-Math.ceil(e.b/(100/p.height())),0,p.height()),m.css({top:a+"px",left:s+"px"}),a=keepWithin(u.height()-e.s*(u.height()/100),0,u.height()),f.css("top",a+"px"),u.css("backgroundColor",hsb2hex({h:e.h,s:100,b:e.b})),h.find(".minicolors-grid-inner").css("opacity",e.s/100);break;case"brightness":s=keepWithin(5*e.h/12,0,150),a=keepWithin(p.height()-Math.ceil(e.s/(100/p.height())),0,p.height()),m.css({top:a+"px",left:s+"px"}),a=keepWithin(u.height()-e.b*(u.height()/100),0,u.height()),f.css("top",a+"px"),u.css("backgroundColor",hsb2hex({h:e.h,s:e.s,b:100})),h.find(".minicolors-grid-inner").css("opacity",1-e.b/100);break;default:s=keepWithin(Math.ceil(e.s/(100/p.width())),0,p.width()),a=keepWithin(p.height()-Math.ceil(e.b/(100/p.height())),0,p.height()),m.css({top:a+"px",left:s+"px"}),a=keepWithin(u.height()-e.h/(360/u.height()),0,u.height()),f.css("top",a+"px"),p.css("backgroundColor",hsb2hex({h:e.h,s:100,b:100}))}i.data("minicolors-initialized")&&doChange(i,o,n)} function doChange(i,t,o){var e=i.data("minicolors-settings"),n=i.data("minicolors-lastChange");n&&n.hex===t&&n.opacity===o||(i.data("minicolors-lastChange",{hex:t,opacity:o}),e.change&&(e.changeDelay?(clearTimeout(i.data("minicolors-changeTimeout")),i.data("minicolors-changeTimeout",setTimeout(function(){e.change.call(i.get(0),t,o)},e.changeDelay))):e.change.call(i.get(0),t,o)),i.trigger("change").trigger("input"))} function rgbObject(i){var t=parseHex($(i).val(),!0),o=hex2rgb(t),e=$(i).attr("data-opacity");return o?(void 0!==e&&$.extend(o,{a:parseFloat(e)}),o):null} function rgbString(i,t){var o=parseHex($(i).val(),!0),e=hex2rgb(o),n=$(i).attr("data-opacity");return e?(void 0===n&&(n=1),t?"rgba("+e.r+", "+e.g+", "+e.b+", "+parseFloat(n)+")":"rgb("+e.r+", "+e.g+", "+e.b+")"):null} function convertCase(i,t){return"uppercase"===t?i.toUpperCase():i.toLowerCase()} function parseHex(i,t){return i=i.replace(/[^A-F0-9]/gi,""),3!==i.length&&6!==i.length?"":(3===i.length&&t&&(i=i[0]+i[0]+i[1]+i[1]+i[2]+i[2]),"#"+i)} function keepWithin(i,t,o){return t>i&&(i=t),i>o&&(i=o),i} function hsb2rgb(i){var t={},o=Math.round(i.h),e=Math.round(255*i.s/100),n=Math.round(255*i.b/100);if(0===e)t.r=t.g=t.b=n;else{var s=n,a=(255-e)*n/255,r=(s-a)*(o%60)/60;360===o&&(o=0),60>o?(t.r=s,t.b=a,t.g=a+r):120>o?(t.g=s,t.b=a,t.r=s-r):180>o?(t.g=s,t.r=a,t.b=a+r):240>o?(t.b=s,t.r=a,t.g=s-r):300>o?(t.b=s,t.g=a,t.r=a+r):360>o?(t.r=s,t.g=a,t.b=s-r):(t.r=0,t.g=0,t.b=0)}return{r:Math.round(t.r),g:Math.round(t.g),b:Math.round(t.b)}} function rgb2hex(i){var t=[i.r.toString(16),i.g.toString(16),i.b.toString(16)];return $.each(t,function(i,o){1===o.length&&(t[i]="0"+o)}),"#"+t.join("")} function hsb2hex(i){return rgb2hex(hsb2rgb(i))} function hex2hsb(i){var t=rgb2hsb(hex2rgb(i));return 0===t.s&&(t.h=360),t} function rgb2hsb(i){var t={h:0,s:0,b:0},o=Math.min(i.r,i.g,i.b),e=Math.max(i.r,i.g,i.b),n=e-o;return t.b=e,t.s=0!==e?255*n/e:0,t.h=0!==t.s?i.r===e?(i.g-i.b)/n:i.g===e?2+(i.b-i.r)/n:4+(i.r-i.g)/n:-1,t.h*=60,t.h<0&&(t.h+=360),t.s*=100/255,t.b*=100/255,t} function hex2rgb(i){return i=parseInt(i.indexOf("#")>-1?i.substring(1):i,16),{r:i>>16,g:(65280&i)>>8,b:255&i}} $.minicolors={defaults:{animationSpeed:50,animationEasing:"swing",change:null,changeDelay:0,control:"hue",defaultValue:"",hide:null,hideSpeed:100,inline:!1,letterCase:"lowercase",opacity:!1,position:"bottom left",show:null,showSpeed:100,theme:"default"}},$.extend($.fn,{minicolors:function(i,t){switch(i){case"destroy":return $(this).each(function(){destroy($(this))}),$(this);case"hide":return hide(),$(this);case"opacity":return void 0===t?$(this).attr("data-opacity"):($(this).each(function(){updateFromInput($(this).attr("data-opacity",t))}),$(this));case"rgbObject":return rgbObject($(this),"rgbaObject"===i);case"rgbString":case"rgbaString":return rgbString($(this),"rgbaString"===i);case"settings":return void 0===t?$(this).data("minicolors-settings"):($(this).each(function(){var i=$(this).data("minicolors-settings")||{};destroy($(this)),$(this).minicolors($.extend(!0,i,t))}),$(this));case"show":return show($(this).eq(0)),$(this);case"value":return void 0===t?$(this).val():($(this).each(function(){updateFromInput($(this).val(t))}),$(this));default:return"create"!==i&&(t=i),$(this).each(function(){init($(this),t)}),$(this)}}}),$(document).on("mousedown.minicolors touchstart.minicolors",function(i){$(i.target).parents().add(i.target).hasClass("minicolors")||hide()}).on("mousedown.minicolors touchstart.minicolors",".minicolors-grid, .minicolors-slider, .minicolors-opacity-slider",function(i){var t=$(this);i.preventDefault(),$(document).data("minicolors-target",t),move(t,i,!0)}).on("mousemove.minicolors touchmove.minicolors",function(i){var t=$(document).data("minicolors-target");t&&move(t,i)}).on("mouseup.minicolors touchend.minicolors",function(){$(this).removeData("minicolors-target")}).on("mousedown.minicolors touchstart.minicolors",".minicolors-swatch",function(i){var t=$(this).parent().find(".minicolors-input");i.preventDefault(),show(t)}).on("focus.minicolors",".minicolors-input",function(){var i=$(this);i.data("minicolors-initialized")&&show(i)}).on("blur.minicolors",".minicolors-input",function(){var i=$(this),t=i.data("minicolors-settings");i.data("minicolors-initialized")&&(i.val(parseHex(i.val(),!0)),""===i.val()&&i.val(parseHex(t.defaultValue,!0)),i.val(convertCase(i.val(),t.letterCase)))}).on("keydown.minicolors",".minicolors-input",function(i){var t=$(this);if(t.data("minicolors-initialized"))switch(i.keyCode){case 9:hide();break;case 13:case 27:hide(),t.blur()}}).on("keyup.minicolors",".minicolors-input",function(){var i=$(this);i.data("minicolors-initialized")&&updateFromInput(i,!0)}).on("paste.minicolors",".minicolors-input",function(){var i=$(this);i.data("minicolors-initialized")&&setTimeout(function(){updateFromInput(i,!0)},1)}); ; var title=$("#topic>h1#title>a>span").text(); var ayarlar,renk0,renk1,renk2,renk3,renk4,renk5,renk6,renk7,renk8,renk9,renk10,renk11,renk12,renk13,renk14,mycss,bugun_json,logo_var,mesaj_var,mesaj_yok,olay_var,olay_yok,font_select,font_boyutu,font_w,gradient_modu,bugun_modu,alaka_modu,duman_modu,kanal_modu,yolla_text,kenar_text,durma_text,header_resmi,fon_resmi,fon_modu,fon_opacity,entry_box_resmi,msg_box_resmi,yt_user,herzamanki_modu,sf_baslik,sf_yenile; var index_section,s_container,main,content_body,site_footer,youtube1,boyut_h,bugunedair_mh,baslikh2_fs,baslikh2_lh,youtube2h,youtube2w,ayar_top; var ekran_yuksekligi=screen.height;var ekran_genisligi=screen.width;var container_genisligi=$(window).width()+17+"px"; switch(true) { case (ekran_genisligi>="1920"):var p_genis=parseInt($(window).width())-700;index_section="300px";main="305px";s_container="300px";content_body=p_genis+"px";site_footer="20%";youtube1="560";break; case (ekran_genisligi>="1600" && ekran_genisligi<"1920"):var p_genis=parseInt($(window).width())-640;index_section="260px";main="260px";s_container="300px";content_body=p_genis+"px";site_footer="20%";youtube1="560";break; case (ekran_genisligi>"1366" && ekran_genisligi<="1600"):var p_genis=parseInt($(window).width())-600;index_section="250px";main="250px";s_container="250px";content_body=p_genis+"px";site_footer="23%";youtube1="560";break; case (ekran_genisligi>="1360" && ekran_genisligi<="1366"):var p_genis=parseInt($(window).width())-555;index_section="235px";main="235px";s_container="245px";content_body=p_genis+"px";site_footer="25%";youtube1="560";break; case (ekran_genisligi=="1280"):var p_genis=parseInt($(window).width())-550;index_section="220px";main="220px";s_container="250px";content_body=p_genis+"px";site_footer="28%";youtube1="560";break; case (ekran_genisligi<"1280"):var p_genis=parseInt($(window).width())-500;index_section="210px";main="210px";s_container="220px";content_body=p_genis+"px";site_footer="30%";youtube1="480";break; } $(window).resize(function() { switch(true) { case (ekran_genisligi>="1920"):$("#content-body").css({"width":$(window).width()-700+"px"});break; case (ekran_genisligi>="1600" && ekran_genisligi<"1920"):$("#content-body").css({"width":$(window).width()-640+"px"});break; case (ekran_genisligi>"1366" && ekran_genisligi<="1600"):$("#content-body").css({"width":$(window).width()-600+"px"});break; case (ekran_genisligi>="1360" && ekran_genisligi<="1366"):$("#content-body").css({"width":$(window).width()-555+"px"});break; case (ekran_genisligi=="1280"):$("#content-body").css({"width":$(window).width()-550+"px"});break; case (ekran_genisligi<"1280"):$("#content-body").css({"width":$(window).width()-500+"px"});break; } $("#container").css({"width":$(window).width()+"px"}); }); if(ekran_yuksekligi>="900") {boyut_h="1";bugunedair_mh="120px";baslikh2_fs="12px";baslikh2_lh="22px";youtube2h="135px";youtube2w="240px";ayar_top="10%";}else {boyut_h="0";bugunedair_mh="95px";baslikh2_fs="10px";baslikh2_lh="12px";youtube2h="100px";youtube2w="180px";ayar_top="1%";} //// if(localStorage.getItem('ayarlar') === null){fabrika();} else{ayarlar=JSON.parse(localStorage.getItem('ayarlar'));renk0=ayarlar['renk0'];renk1=ayarlar['renk1'];renk2=ayarlar['renk2'];renk3=ayarlar['renk3'];renk4=ayarlar['renk4'];renk5=ayarlar['renk5'];renk6=ayarlar['renk6'];renk7=ayarlar['renk7'];renk8=ayarlar['renk8'];renk9=ayarlar['renk9'];renk10=ayarlar['renk10'];renk11=ayarlar['renk11'];renk12=ayarlar['renk12'];renk13=ayarlar['renk13'];renk14=ayarlar['renk14'];mycss=ayarlar['mycss'];bugun_json=ayarlar['bugun_json'];mesaj_var=ayarlar['mesaj_var'];mesaj_yok=ayarlar['mesaj_yok'];olay_var=ayarlar['olay_var'];olay_yok=ayarlar['olay_yok'];logo_var=ayarlar['logo_var'];font_w=ayarlar['font_w'];font_select=ayarlar['font_select'];font_boyutu=ayarlar['font_boyutu'];yolla_text=ayarlar['yolla_text'];kenar_text=ayarlar['kenar_text'];durma_text=ayarlar['durma_text'];gradient_modu=ayarlar['gradient_modu'];bugun_modu=ayarlar['bugun_modu'];alaka_modu=ayarlar['alaka_modu'];duman_modu=ayarlar['duman_modu'];kanal_modu=ayarlar['kanal_modu'];sf_baslik=ayarlar['sf_baslik'];sf_yenile=ayarlar['sf_yenile'];header_resmi=ayarlar['header_resmi'];fon_resmi=ayarlar['fon_resmi'];fon_modu=ayarlar['fon_modu'];fon_opacity=ayarlar['fon_opacity'];entry_box_resmi=ayarlar['entry_box_resmi'];msg_box_resmi=ayarlar['msg_box_resmi'];yt_user=ayarlar['yt_user'];herzamanki_modu=ayarlar['herzamanki_modu'];} var renk3hover=renk(renk3,34,1); var renk1alt=renk(renk1,-51,0); var renk3alt=renk(renk3,-51,0); var renk0ust=renk(renk0,34,1);var renk0alt=renk(renk0,-34,0); var renk7ust=renk(renk7,17,1);var renk7alt=renk(renk7,-17,0); var renk11ust=renk(renk11,17,1);var renk11alt=renk(renk11,-17,0); var h1boyutu=font_boyutu.split("px")[0];h1boyutu=parseInt(h1boyutu)+6+"px"; var h2boyutu=font_boyutu.split("px")[0];h2boyutu=parseInt(h2boyutu)+4+"px"; var h3boyutu=font_boyutu.split("px")[0];h3boyutu=parseInt(h3boyutu)+2+"px"; var h4boyutu=font_boyutu.split("px")[0];h4boyutu=parseInt(h4boyutu)+1+"px"; var line_height=parseInt(font_boyutu)+8+"px"; /////tema ayarları $("ul#main-index-nav").append("<li><a id=temaayarlari>ayar verme aparatı</a></li>"); $("#options-dropdown").appendTo("ul#main-index-nav"); $("#temaayarlari").click(function(){if($(this).hasClass("acik")==false){$(this).addClass("acik"); $("body").append("<div id=tema_ayarlar></div>"); $("#tema_ayarlar").append('<ul class="secmece"><li><input type="radio" checked name="secmece" id="secme1"><label for="secme1">boya işleri</label><div id="secme-content1" class="secme-content"></div></li><li><input type="radio" name="secmece" id="secme2"><label for="secme2">yazı işleri</label><div id="secme-content2" class="secme-content"></div></li><li><input type="radio" name="secmece" id="secme3"><label for="secme3">şekil şemal</label><div id="secme-content3" class="secme-content"></div></li><li><input type="radio" name="secmece" id="secme4"><label for="secme4">alışveriş</label><div id="secme-content4" class="secme-content"></div></li><li id=kapakapa><input type="radio" name="secmece" id="secme5"><label class="kapakapa" for="secme5">X</label><div id="secme-content5" class="secme-content"></div></li></ul>'); $("#secme-content1").append("<div class=t_a_sl>fon rengi:</div><input type=text class=renkler id=renk0 value="+renk0+"><div class='t_a_sg renk0'>AaSsGgIiWwQq</div>"); $("#secme-content1").append("<div class=t_a_sl>fon rengine az gradient at usta:</div><input type=checkbox id=gradient_modu value="+gradient_modu+"><hr>"); $("#secme-content1").append("<div class=t_a_sl>sol frame başlık rengi:</div><input type=text class=renkler id=renk1 value="+renk1+"><div class='t_a_sg renk1'>AaSsGgIiWwQq</div>"); $("#secme-content1").append("<div class=t_a_sl>sol frame başlık üstüne gelince görünen renk:</div><input type=text class=renkler id=renk2 value="+renk2+"><div class='t_a_sg renk2'>AaSsGgIiWwQq</div>"); $("#secme-content1").append("<div class=t_a_sl>konu başlıklarının rengi:</div><input type=text class=renkler id=renk3 value="+renk3+"><div class='t_a_sg renk3'>AaSsGgIiWwQq</div>"); $("#secme-content1").append("<div class=t_a_sl>entry yazı rengi:</div><input type=text id=renk5 class=renkler value="+renk5+"><div class='t_a_sg renk5'>AaSsGgIiWwQq</div>"); $("#secme-content1").append("<div class=t_a_sl>entry link rengi:</div><input type=text id=renk4 class=renkler value="+renk4+"><div class='t_a_sg renk4'>AaSsGgIiWwQq</div>"); $("#secme-content1").append("<div class=t_a_sl>entry link üstüne gelince görünen renk:</div><input type=text id=renk8 class=renkler value="+renk8+"><div class='t_a_sg renk8'>AaSsGgIiWwQq</div>"); $("#secme-content1").append("<div class=t_a_sl>entry oylama butonlarının rengi:</div><input type=text class=renkler id=renk9 value="+renk9+"><div class='t_a_sg renk9'>AaSsGgIiWwQq</div>"); $("#secme-content1").append("<div class=t_a_sl>entry oylama butonlarının üstüne gelince görünen renk:</div><input type=text class=renkler id=renk10 value="+renk10+"><div class='t_a_sg renk10'>AaSsGgIiWwQq</div>"); $("#secme-content1").append("<div class=t_a_sl>seçici(sayfa seçici vs.) rengi:</div><input type=text class=renkler id=renk11 value="+renk11+"><div class='t_a_sg renk11'>AaSsGgIiWwQq</div>"); $("#secme-content1").append("<div class=t_a_sl>seçici yazı rengi:</div><input type=text class=renkler id=renk12 value="+renk12+"><div class='t_a_sg renk12'>AaSsGgIiWwQq</div>"); $("#secme-content1").append("<div class=t_a_sl>seçicilerin üstüne gelince görünen renk:</div><input type=text class=renkler id=renk7 value="+renk7+"><div class='t_a_sg renk7'>AaSsGgIiWwQq</div>"); $("#secme-content1").append("<div class=t_a_sl>yardımcı menülerin rengi:</div><input type=text class=renkler id=renk6 value="+renk6+"><div class='t_a_sg renk6'>AaSsGgIiWwQq</div>"); $("#secme-content1").append("<div class=t_a_sl>entry ve mesaj kutularının fon rengi:</div><input type=text class=renkler id=renk14 value="+renk14+"><div class='t_a_sg renk14'>AaSsGgIiWwQq</div>"); $("#secme-content1").append("<div class=t_a_sl>entry ve mesaj kutularının yazı rengi:</div><input type=text class=renkler id=renk13 value="+renk13+"><div class='t_a_sg renk13'>AaSsGgIiWwQq</div><hr>"); $("#secme-content1").append("<div class=uyari>rengi şeffaf yapmak istiyorsanız ilgili kutuyu boş bırakın.</div>"); $("[id^='renk']").each(function(){if($(this).val()=="transparent"){$(this).val("");}}); // $("#secme-content2").append("<div class=t_a_sl>yazı tipi:</div><select id=font_select><option value=verdana>verdana</option><option value=tahoma>tahoma</option><option value=arial>arial</option><option value='lucida sans unicode'>lucida sans unicode</option><option value='trebuchet ms'>trebuchet</option><option value='comic sans ms'>comic sans</option><option value='segoe ui'>segoe ui</option>"+font_select+"</select><div class='t_a_sg font_select'>AaSsGgIiWwQq</div>"); $("#secme-content2").append("<div class=t_a_sl>yazı boyutu:</div><select id=font_boyutu><option value=9px>9px</option><option value=10px>10px</option><option value=11px>11px</option><option value=12px>12px</option><option value=13px>13px</option><option value=14px>14px</option><option value=15px>15px</option><option value=16px>16px</option>"+font_boyutu+"</select><div class='t_a_sg font_boyutu'>AaSsGgIiWwQq</div>"); $("#secme-content2").append("<div class=t_a_sl>yazı kalınlığı:</div><select id=font_w><option value=normal>normal</option><option value=bold>kalın</option>"+font_w+"</select><div class='t_a_sg font_w'>AaSsGgIiWwQq</div><hr>"); $("#secme-content2").append("<div class=t_a_sl>\"yolla\" yazmasın, bu yazsın:</div><input type=text id=yolla_text value="+yolla_text+">"); $("#secme-content2").append("<div class=t_a_sl>\"kenarda dursun\" yazmasın, bu yazsın:</div><input type=text id=kenar_text value="+kenar_text+">"); $("#secme-content2").append("<div class=t_a_sl>\"durmasın\" yazmasın, bu yazsın:</div><input type=text id=durma_text value="+durma_text+"><hr>"); $("#secme-content2").append("<div class=t_a_sl>bu başlıklara entry girildiğini fark edeyim:</div><input type=text id=sf_baslik value="+sf_baslik+"><div class='t_a_sg'><button id=haniben class=more-data>hani ben?</button></div><hr>"); $("#secme-content2").append("<div class=t_a_sl>sol frame otomatik yenilensin:</div><input type=text id=sf_yenile value="+sf_yenile+"><div class='t_a_sg'>saniye</div><hr>"); //$("#secme-content2").append("<div class=t_a_sl>her zamanki gibi ama pek değil:</div><input type=checkbox id=herzamanki_modu value="+herzamanki_modu+"><hr>"); // $("#secme-content3").append("<div class=t_a_sl>en tepede\(top-bar\) bu görsel olsun:</div><input type=text id=header_resmi value="+header_resmi+"><hr>"); $("#secme-content3").append("<div class=t_a_sl>girdiğim başlığa göre fon görseli değişsin:</div><input type=checkbox id=fon_modu value="+fon_modu+">"); $("#secme-content3").append("<div class=t_a_sl>fon görselim bu olsun:</div><input type=text id=fon_resmi value="+fon_resmi+">"); $("#secme-content3").append("<div class=t_a_sl>fon görselinin görünürlüğünü ayarlayayım:</div><input type=text id=fon_opacity value="+fon_opacity+"><div class='t_a_sg'>0 ve 1 arası</div><hr>"); $("#secme-content3").append("<div class=t_a_sl>entry yazım alanında bu görsel olsun:</div><input type=text id=entry_box_resmi value="+entry_box_resmi+"><hr>"); $("#secme-content3").append("<div class=t_a_sl>mesaj yazım alanında bu görsel olsun:</div><input type=text id=msg_box_resmi value="+msg_box_resmi+"><hr>"); $("#secme-content3").append("<div class=t_a_sl>mesaj var görseli:</div><input type=text id=mesaj_var value="+mesaj_var+">"); $("#secme-content3").append("<div class=t_a_sl>mesaj yok görseli:</div><input type=text id=mesaj_yok value="+mesaj_yok+">"); $("#secme-content3").append("<div class=t_a_sl>olay var görseli:</div><input type=text id=olay_var value="+olay_var+">"); $("#secme-content3").append("<div class=t_a_sl>olay yok görseli:</div><input type=text id=olay_yok value="+olay_yok+"><hr>"); $("#secme-content3").append("<div class=t_a_sl>ek$i sözlük logosu:</div><input type=text id=logo_var value="+logo_var+"><hr>"); $("#secme-content3").append("<div class=t_a_sl>bugune dair olsun:</div><input type=checkbox id=bugun_modu value="+bugun_modu+">"); $("#secme-content3").append("<div class=t_a_sl>çok alakalı olsun:</div><input type=checkbox id=alaka_modu value="+alaka_modu+">"); $("#secme-content3").append("<div class=t_a_sl>dumanı üstünde olsun:</div><input type=checkbox id=duman_modu value="+duman_modu+">"); $("#secme-content3").append("<div class=t_a_sl>youtube user:</div><input type=text id=yt_user value="+yt_user+">"); $("#secme-content3").append("<div class=t_a_sl>başlığın kanalları görünsün:</div><input type=checkbox id=kanal_modu value="+kanal_modu+"><hr>"); $("#secme-content3").append("<div class=t_a_sl>bugune dair json besleme kaynağı:</div><input type=text id=bugun_json value="+bugun_json+"><hr>"); $("#secme-content3").append("<div class=uyari>görsel kullanmak istemiyorsanız ilgili kutuyu boş bırakın.</div>"); // $("#secme-content4").append("<div class=t_a_sl>versiyon:"+GM_info.script.version+"</div><hr>"); $("#secme-content4").append("<div id=tema_butonlar><button id=export class=more-data>ver bana ayarlarımı!</button><button id=import class=more-data>al bunu al al!</button><button id=tema_kaydet class=more-data>aklında tut</button><button id=tema_kaydetme class=more-data>vazcay</button><input id=fayl type=file></input></div>"); $("#secme-content4").append("<div class=t_a_sl>css ekleyeyim:</div><input type=text id=mycss value="+mycss+"><hr>"); // $('[id^="secme"]:not(#secme-content4)').append("<div id=tema_butonlar><button id=tema_fabrika class=more-data>futurama standartları</button><button id=tema_kaydet class=more-data>aklında tut</button><button id=tema_kaydetme class=more-data>vazcay</button></div>"); $('head').append('<style>#kapakapa{float:right;font-weight:bold;}#kapakapa label.kapakapa{background-color:#f00;}.secmece{top:'+ayar_top+';width:800px;font-size:12px;margin:0 auto;float:none;list-style:none;position:fixed;left:0px;right:0px;z-index:30000;}.secmece li{float:left;}.secmece label{display:block;padding:3px 10px;margin-right:2px;color:#ccc;font-size:12px;background:#666;cursor:pointer;position:relative;top:5px;}.secmece label:hover {top: 0;padding-bottom: 6px;}[id^=secme]:checked + label {background:#999;color:#000;top: 0;padding-bottom: 6px;}[id^=secme]:checked ~ [id^=secme-content] {display: block;}.secme-content{z-index: 2;display: none;text-align: left;width: 100%;height:560px;background:#000;border:1px solid #999;padding:5px;position:absolute;top:25px;left:0px;}.secmece input[type=radio]{position:absolute;top:-9999px;left:-9999px;}</style>'); $('head').append('<style>.t_a_sl{width:400px;margin-right:5px;margin-bottom:1px;color:#aaa;display:inline-block;text-align:right;}.t_a_sg{margin-left:5px;margin-bottom:5px;display:inline-block;vertical-align:middle;}#tema_ayarlar input{display: inline-block;width:215px;max-width:100%;float:none;margin-top:1px;vertical-align:middle;}#tema_ayarlar input[type=checkbox]{width:auto;}#tema_ayarlar select{width:215px;margin-top:4px;margin-bottom:8px;} #tema_ayarlar hr{display:block;height:1px;border:0;border-top:1px solid #444;margin:2px 0px;padding:0px;}.uyari{text-align:center;color:#f54;}</style>'); $('head').append('<style>#tema_butonlar{position:absolute;bottom:10px;left:0px;width:100%;}#tema_fabrika,#tema_kaydet,#tema_kaydetme,#export,#import{width:auto;text-align:center;position:absolute;bottom:0px;}#tema_fabrika,#export{left:10px;right:auto;}#tema_kaydet{right:10px;}#import{left:168px;right:auto;}#tema_kaydetme{right:110px;}#fayl{display:none !important;}#haniben{position:relative;top:6px;}</style>'); $("#header_resmi").val(header_resmi); $("#sf_baslik").val(sf_baslik); $("#sf_yenile").val(sf_yenile); $("#fon_resmi").val(fon_resmi); $("#mesaj_var").val(mesaj_var); $("#mesaj_yok").val(mesaj_yok); $("#olay_var").val(olay_var); $("#olay_yok").val(olay_yok); $("#logo_var").val(logo_var); $("#bugun_json").val(bugun_json); $("#mycss").val(mycss); $("#fon_opacity").val(fon_opacity); $("#entry_box_resmi").val(entry_box_resmi); $("#msg_box_resmi").val(msg_box_resmi); $("#yt_user").val(yt_user); $("#font_select").val(font_select); $("#font_boyutu").val(font_boyutu); $("#font_w").val(font_w); $("#yolla_text").val(yolla_text); $("#kenar_text").val(kenar_text); $("#durma_text").val(durma_text); if(bugun_modu=="1"){$("#bugun_modu").prop("checked",true);}else{$("#bugun_modu").prop("checked",false);} if(alaka_modu=="1"){$("#alaka_modu").prop("checked",true);}else{$("#alaka_modu").prop("checked",false);} if(duman_modu=="1"){$("#duman_modu").prop("checked",true);}else{$("#duman_modu").prop("checked",false);} if(kanal_modu=="1"){$("#kanal_modu").prop("checked",true);}else{$("#kanal_modu").prop("checked",false);} if(gradient_modu=="1"){$("#gradient_modu").prop("checked",true);}else{$("#gradient_modu").prop("checked",false);} if(fon_modu=="1"){$("#fon_modu").prop("checked",true);}else{$("#fon_modu").prop("checked",false);} if(herzamanki_modu=="1"){$("#herzamanki_modu").prop("checked",true);}else{$("#herzamanki_modu").prop("checked",false);} if($("#fon_modu").is(":checked")==true){$('head').append('<style>#fon_resmi{visibility:hidden;}</style>');}else{$('head').append('<style>#fon_resmi{visibility:visible;}</style>');} if($("#duman_modu").is(":checked")==false){$('head').append('<style>#yt_user{visibility:hidden;}</style>');}else{$('head').append('<style>#yt_user{visibility:visible;}</style>');} $(".t_a_sg.renk0").css({"color":renk0}); $(".t_a_sg.renk1").css({"color":renk1}); $(".t_a_sg.renk2").css({"color":renk2}); $(".t_a_sg.renk3").css({"color":renk3}); $(".t_a_sg.renk4").css({"color":renk4}); $(".t_a_sg.renk5").css({"color":renk5}); $(".t_a_sg.renk6").css({"color":renk6}); $(".t_a_sg.renk7").css({"color":renk7}); $(".t_a_sg.renk8").css({"color":renk8}); $(".t_a_sg.renk9").css({"color":renk9}); $(".t_a_sg.renk10").css({"color":renk10}); $(".t_a_sg.renk11").css({"color":renk11}); $(".t_a_sg.renk12").css({"color":renk12}); $(".t_a_sg.renk13").css({"color":renk13}); $(".t_a_sg.renk14").css({"color":renk14}); $(".t_a_sg.font_select").css({"font-family":$("#font_select").val()}); $(".t_a_sg.font_boyutu").css({"font-size":$("#font_boyutu").val()}); $(".t_a_sg.font_w").css({"font-weight":$("#font_w").val()}); $('head').append('<style>.minicolors{position:relative;}.minicolors-swatch{position:absolute;vertical-align:middle;background:url(http://i.imgur.com/NpbkBBg.png) -80px 0;border:1px solid #ccc;cursor:text;padding:0;margin:0;display:inline-block}.minicolors-swatch-color{position:absolute;top:0;left:0;right:0;bottom:0}.minicolors input[type=hidden]+.minicolors-swatch{width:28px;position:static;cursor:pointer}.minicolors-panel{position:absolute;width:173px;height:152px;background:#fff;border:1px solid #CCC;box-shadow:0 0 20px rgba(0,0,0,.2);z-index:99999;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;display:none}.minicolors-panel.minicolors-visible{display:block}.minicolors-position-top .minicolors-panel{top:-154px}.minicolors-position-right .minicolors-panel{right:0}.minicolors-position-bottom .minicolors-panel{top:auto}.minicolors-position-left .minicolors-panel{left:0}.minicolors-with-opacity .minicolors-panel{width:194px}.minicolors .minicolors-grid{position:absolute;top:1px;left:1px;width:150px;height:150px;background:url(http://i.imgur.com/NpbkBBg.png) -120px 0;cursor:crosshair}.minicolors .minicolors-grid-inner{position:absolute;top:0;left:0;width:150px;height:150px;background:0 0}.minicolors-slider-saturation .minicolors-grid{background-position:-420px 0}.minicolors-slider-saturation .minicolors-grid-inner{background:url(jquery.minicolors.png) -270px 0}.minicolors-slider-brightness .minicolors-grid{background-position:-570px 0}.minicolors-slider-brightness .minicolors-grid-inner{background:#000}.minicolors-slider-wheel .minicolors-grid{background-position:-720px 0}.minicolors-opacity-slider,.minicolors-slider{position:absolute;top:1px;left:152px;width:20px;height:150px;background:#fff url(http://i.imgur.com/NpbkBBg.png);cursor:row-resize}.minicolors-slider-saturation .minicolors-slider{background-position:-60px 0}.minicolors-slider-brightness .minicolors-slider,.minicolors-slider-wheel .minicolors-slider{background-position:-20px 0}.minicolors-opacity-slider{left:173px;background-position:-40px 0;display:none}.minicolors-with-opacity .minicolors-opacity-slider{display:block}.minicolors-grid .minicolors-picker{position:absolute;top:70px;left:70px;width:12px;height:12px;border:1px solid #000;border-radius:10px;margin-top:-6px;margin-left:-6px;background:0 0}.minicolors-grid .minicolors-picker>div{position:absolute;top:0;left:0;width:8px;height:8px;border-radius:8px;border:2px solid #fff;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}.minicolors-picker{position:absolute;top:0;left:0;width:18px;height:2px;background:#fff;border:1px solid #000;margin-top:-2px;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}.minicolors-inline{display:inline-block}.minicolors-inline .minicolors-input{display:none!important}.minicolors-inline .minicolors-panel{position:relative;top:auto;left:auto;box-shadow:none;z-index:auto;display:inline-block}.minicolors-theme-default .minicolors-swatch{top:5px;left:5px;width:18px;height:18px}.minicolors-theme-default.minicolors-position-right .minicolors-swatch{left:auto;right:5px}.minicolors-theme-default.minicolors{width:auto;display:inline-block}.minicolors-theme-default .minicolors-input{width:auto;display:inline-block;padding-left:26px}.minicolors-theme-default.minicolors-position-right .minicolors-input{padding-right:26px;padding-left:inherit}.minicolors-theme-bootstrap .minicolors-swatch{top:3px;left:3px;width:28px;height:28px;border-radius:3px}.minicolors-theme-bootstrap .minicolors-swatch-color{border-radius:inherit}.minicolors-theme-bootstrap.minicolors-position-right .minicolors-swatch{left:auto;right:3px}.minicolors-theme-bootstrap .minicolors-input{padding-left:44px}.minicolors-theme-bootstrap.minicolors-position-right .minicolors-input{padding-right:44px;padding-left:12px}.minicolors-theme-bootstrap .minicolors-input.input-lg+.minicolors-swatch{top:4px;left:4px;width:37px;height:37px;border-radius:5px}.minicolors-theme-bootstrap .minicolors-input.input-sm+.minicolors-swatch{width:24px;height:24px}</style>'); $(".renkler").minicolors(); } }); function fabrika(){ renk0="#000000"; renk1="#878787"; renk2="#007dfa"; renk3="#7ccc0c"; renk4="#ffef08"; renk5="#aaaaaa"; renk6="#666666"; renk7="#28a3eb"; renk8="#aaaaaa"; renk9="#007dfa"; renk10="#7ccc0c"; renk11="#cccccc"; renk12="#000000"; renk13="#ffffff"; renk14=""; gradient_modu="0"; bugun_modu="1"; alaka_modu="1"; duman_modu="1"; kanal_modu="1"; fon_resmi="http://i.imgur.com/xcLQVNd.jpg"; entry_box_resmi="http://i.imgur.com/Py7VRgM.png"; msg_box_resmi="http://i.imgur.com/53rMUHZ.png"; header_resmi="http://i.imgur.com/YafTYnz.jpg"; mesaj_var="http://i.imgur.com/l3Kl5HC.gif"; mesaj_yok="http://i.imgur.com/QJpDBCr.png"; olay_var="http://i.imgur.com/Gtf5c2B.png"; olay_yok="http://i.imgur.com/0DyUYiQ.png"; logo_var="http://www.ekstat.com/img/logov2.png"; bugun_json="https://dl.dropboxusercontent.com/u/82207064/kfb_v2/bugun.json"; mycss=""; sf_baslik="fenerbahçe"; sf_yenile="0"; fon_modu="0"; fon_opacity="0.15"; yt_user="Ps387G-6kkfi4gPGjhLnkw"; font_select="verdana"; font_boyutu="12px"; if(sessionStorage.getItem("font_boy")===null){sessionStorage.setItem("font_boy",font_boyutu);}else{sessionStorage.setItem("font_boy",sessionStorage.getItem("font_boy"));} font_w="normal"; yolla_text="şuuuuuut"; kenar_text="ve taç"; durma_text="aut"; herzamanki_modu="0"; } function alayar(){ $("[id^='renk']").each(function(){if($(this).val()==""){$(this).val("transparent");}}); renk0=$("#renk0").val(); renk1=$("#renk1").val(); renk2=$("#renk2").val(); renk3=$("#renk3").val(); renk4=$("#renk4").val(); renk5=$("#renk5").val(); renk6=$("#renk6").val(); renk7=$("#renk7").val(); renk8=$("#renk8").val(); renk9=$("#renk9").val(); renk10=$("#renk10").val(); renk11=$("#renk11").val(); renk12=$("#renk12").val(); renk13=$("#renk13").val(); renk14=$("#renk14").val(); header_resmi=$("#header_resmi").val(); mesaj_var=$("#mesaj_var").val(); mesaj_yok=$("#mesaj_yok").val(); olay_var=$("#olay_var").val(); olay_yok=$("#olay_yok").val(); logo_var=$("#logo_var").val(); bugun_json=$("#bugun_json").val(); mycss=$("#mycss").val(); sf_baslik=$("#sf_baslik").val(); sf_yenile=$("#sf_yenile").val(); fon_resmi=$("#fon_resmi").val(); fon_opacity=$("#fon_opacity").val(); entry_box_resmi=$("#entry_box_resmi").val(); msg_box_resmi=$("#msg_box_resmi").val(); yt_user=$("#yt_user").val(); font_select=$("#font_select").val(); font_boyutu=$("#font_boyutu").val();sessionStorage.setItem("font_boy",font_boyutu); font_w=$("#font_w").val(); yolla_text=$("#yolla_text").val(); kenar_text=$("#kenar_text").val(); durma_text=$("#durma_text").val(); gradient_modu=($("#gradient_modu").is(":checked")==true)?1:0; fon_modu=($("#fon_modu").is(":checked")==true)?1:0; bugun_modu=($("#bugun_modu").is(":checked")==true)?1:0; alaka_modu=($("#alaka_modu").is(":checked")==true)?1:0; duman_modu=($("#duman_modu").is(":checked")==true)?1:0; kanal_modu=($("#kanal_modu").is(":checked")==true)?1:0; herzamanki_modu=($("#herzamanki_modu").is(":checked")==true)?1:0; set_ayarlar(); } function set_ayarlar(){ ayarlar={"renk0":renk0,"renk1":renk1,"renk2":renk2,"renk3":renk3,"renk4":renk4,"renk5":renk5,"renk6":renk6,"renk7":renk7,"renk8":renk8,"renk9":renk9,"renk10":renk10,"renk11":renk11,"renk12":renk12,"renk13":renk13,"renk14":renk14,"logo_var":logo_var,"mycss":mycss,"bugun_json":bugun_json,"mesaj_var":mesaj_var,"mesaj_yok":mesaj_yok,"olay_var":olay_var,"olay_yok":olay_yok,"font_w":font_w,"font_select":font_select,"font_boyutu":font_boyutu,"yolla_text":yolla_text,"kenar_text":kenar_text,"durma_text":durma_text,"gradient_modu":gradient_modu,"bugun_modu":bugun_modu,"alaka_modu":alaka_modu,"duman_modu":duman_modu,"kanal_modu":kanal_modu,"header_resmi":header_resmi,"sf_baslik":sf_baslik,"sf_yenile":sf_yenile,"fon_resmi":fon_resmi,"fon_modu":fon_modu,"fon_opacity":fon_opacity,"entry_box_resmi":entry_box_resmi,"msg_box_resmi":msg_box_resmi,"yt_user":yt_user,"herzamanki_modu":herzamanki_modu}; localStorage.setItem("ayarlar", JSON.stringify(ayarlar)); } $(document).on("click", "#tema_fabrika", function(e) {fabrika();set_ayarlar();$("#tema_ayarlar").remove();location.reload();}); $(document).on("click", "#tema_kaydet", function(e) {alayar();location.reload();}); $(document).on("click", "#tema_kaydetme,#kapakapa", function(e) {$("#tema_ayarlar").remove();$("a#temaayarlari").removeClass("acik");}); $(document).on("click", "#haniben", function(e) { var ben=$("#kullanici_menu ul >li a[href^='/biri/']").attr("title"); var say=0; var splits = $("#sf_baslik").val().trim().split(";"); for(var i =0;i<splits.length;i++){if(ben==splits[i].trim()){say=1;}} if(say=="0" && ben!=undefined){$("#sf_baslik").val($("#sf_baslik").val()+";"+ben);} }); $(document).on("change", "#tema_ayarlar input", function(e) { //$("#tema_ayarlar select").hide(); //$('.secme-content,[id^="tema"],#tema_ayarlar hr,.t_a_sl,[id^="secme"]:checked + label,.secmece label,#tema_ayarlar input').not(this).css({"box-shadow":"0px 0px 0px transparent","background-image":"none","background-color":"transparent","color":"transparent","border-color":"transparent"}); $(".t_a_sg.renk0").css({"color":$("#renk0").val()}); //$("body").css({"background-color":$("#renk0").val()}); $(".t_a_sg.renk1").css({"color":$("#renk1").val()}); //$(".topic-list.partial > li > a").css({"color":$("#renk1").val()}); $(".t_a_sg.renk2").css({"color":$("#renk2").val()}); $(".t_a_sg.renk3").css({"color":$("#renk3").val()}); //$("h1,h2,h3,h4,h5,h6").css({"color":$("#renk3").val()}); $(".t_a_sg.renk4").css({"color":$("#renk4").val()}); $(".t_a_sg.renk5").css({"color":$("#renk5").val()}); $(".t_a_sg.renk6").css({"color":$("#renk6").val()}); $(".t_a_sg.renk7").css({"color":$("#renk7").val()}); $(".t_a_sg.renk8").css({"color":$("#renk8").val()}); $(".t_a_sg.renk9").css({"color":$("#renk9").val()}); $(".t_a_sg.renk10").css({"color":$("#renk10").val()}); $(".t_a_sg.renk11").css({"color":$("#renk11").val()}); $(".t_a_sg.renk12").css({"color":$("#renk12").val()}); $(".t_a_sg.renk13").css({"color":$("#renk13").val()}); $(".t_a_sg.renk14").css({"color":$("#renk14").val()}); $(".arkaplan").css({"opacity":$("#fon_opacity").val()}); }); /* $(document).on("mouseup", ".minicolors-picker>div", function(e) { $("#tema_ayarlar").remove();$("a#temaayarlari").removeClass("acik"); $('#temaayarlari').trigger('click'); }); */ $(document).on("change", "#fon_modu,#duman_modu", function(e) { if($("#fon_modu").is(":checked")==true){$('head').append('<style>#fon_resmi{visibility:hidden;}</style>');}else{$('head').append('<style>#fon_resmi{visibility:visible;}</style>');} if($("#duman_modu").is(":checked")==false){$('head').append('<style>#yt_user{visibility:hidden;}</style>');}else{$('head').append('<style>#yt_user{visibility:visible;}</style>');} }); $(document).on("change", "#font_select,#font_boyutu,#font_w", function(e) { $(".t_a_sg.font_select,.t_a_sg.font_boyutu,.t_a_sg.font_w").css({"font-family":$("#font_select").val(),"font-size":$("#font_boyutu").val(),"font-weight":$("#font_w").val()}); }); $(document).on("keyup", "#font_select,#font_boyutu,#font_w", function(e) { $(".t_a_sg.font_select,.t_a_sg.font_boyutu,.t_a_sg.font_w").css({"font-family":$("#font_select").val(),"font-size":$("#font_boyutu").val(),"font-weight":$("#font_w").val()}); }); ////// $(document).on("click", "#export", function(e) { alayar(); //alert(JSON.stringify(ayarlar)); var a = document.createElement('a'); a.href = 'data:attachment/json,' + encodeURIComponent(JSON.stringify(ayarlar)).replace(/'/g,"%27").replace(/"/g,"%22"); a.target = '_blank'; a.download = 'koyufenerbahceli.json'; document.body.appendChild(a); a.click(); }); $(document).on("change",'#fayl',function(e) {var files=e.target.files;for(var i=0,f;f=files[i];i++) {var reader=new FileReader();reader.onload=(function(theFile){return function(e) {localStorage.setItem("ayarlar", decodeURIComponent(e.target.result.replace(/\+/g," ")));location.reload();};})(f);reader.readAsText(f);}}); $(document).on("click","#import", function(e) {$('#fayl').trigger('click');}); ////// //her zamanki kontrol // if(herzamanki_modu=="1"){ //var renk0="#ccc";var renk1="#000080";var renk2="#000080";var renk3="#0000b0";var renk4="#000080";var renk5="#000";var renk6="#444";var renk7="#aaa";var renk8="#000";var renk9="#000";var renk10="#000";var renk11="#ddd";var renk12="#000";var renk13="#fff";var renk14="#ccc";var gradient_modu="0";var bugun_modu="1";var alaka_modu="1";var duman_modu="1";var kanal_modu="1";var fon_resmi="";var header_resmi="";var entry_box_resmi="";var msg_box_resmi="";var fon_modu="0";var fon_opacity="0.1";var yt_user="Ps387G-6kkfi4gPGjhLnkw"; //var renk3hover=renk(renk3,34,1);var renk3alt=renk(renk3,-51,0);var renk7ust=renk(renk7,17,1);var renk7alt=renk(renk7,-17,0); // $('head').append('<style>#kullanici_menu ul > li > a{color:#888 !important;}#kullanici_menu ul > li > a:hover{color:#000 !important;}#yenimesajgonder button.primary, #message-thread button.primary{top:-30px !important;}.arrow-down{border-top: 9px solid #34AE00 !important;}.arrow-up{border-down: 9px solid #f30 !important;}header{background-color:'+renk0+' !important;}#topic-share-menu > .share-dialog,#in-topic-search-options{background-image:none !important;}.share-dialog, #in-topic-search-options, #entry-list footer .favorite-list-popup, .other.dropdown .dropdown-menu,#topic-channel-info #topic-channels li.channel > a{border-color:#888 !important;}#topic > .editform > .vertical > .edittools{top:12px !important;}.topic-list li:hover,#topic-channel-info #topic-channels li.channel > a{background-color: #c0c0c0 !important;}textarea#editbox,textarea#editbox:focus,textarea.edittextbox,textarea.edittextbox:focus{opacity:1 !important;background-color:#fff !important; color:#000 !important;font:9pt Verdana, sans-serif !important;width:100% !important;padding:0 !important;margin:0 !important;border:0 !important;}.editform > .vertical > h3 > a{top:10px !important;color:#000 !important;}</style>'); // $('head').append('<style>button{background-color: #eee !important;background-image: -moz-linear-gradient(top, #f8f8f8, #dedede) !important;background-image: -ms-linear-gradient(top, #f8f8f8, #dedede) !important;background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f8f8f8), to(#dedede)) !important;background-image: -webkit-linear-gradient(top, #f8f8f8, #dedede) !important;background-image: -o-linear-gradient(top, #f8f8f8, #dedede) !important;background-image: linear-gradient(top, #f8f8f8, #dedede) !important;background-repeat: repeat-x !important;border: 1px solid #c5c5c5 !important;background-color: #ebebeb !important;color: #000 !important;}</style>'); // } ///// $("body").append("<div class=arkaplan></div>"); if(fon_modu=="1"){ var rastgele=1+Math.floor(Math.random()*5); if(rastgele=="1"){title_=title;}if(rastgele=="2"){title_=title+" hd wallpaper";}if(rastgele=="3"){title_=title+" tumblr";}if(rastgele=="4"){title_=title+" deviantart";}if(rastgele=="5"){title_=title+" flickr";} $.getJSON('https://ajax.googleapis.com/ajax/services/search/images?v=1.0&q='+title_+'&imgsz=huge&rsz=4&callback=?', function(data) { var ttl_=data["responseData"]["results"][0]["url"]; $('head').append('<style>.arkaplan{background-image:url('+ttl_+');opacity:'+fon_opacity+';background-position:50% 0%;background-attachment:fixed;background-repeat:no-repeat;background-color:'+renk0+';position:fixed;z-index:-1;top:0;bottom:0;left:0;right:0;width:100%;height:100%;max-width:100%;max-height:100%;background-size:cover !important;}</style>'); }); } else{ $('head').append('<style>.arkaplan{background-image:url('+fon_resmi+');opacity:'+fon_opacity+';background-position:50% 0%;background-attachment:fixed;background-repeat:no-repeat;background-color:'+renk0+';position:fixed;z-index:-1;top:0;bottom:0;left:0;right:0;width:100%;height:100%;max-width:100%;max-height:100%;background-size:cover !important;}</style>'); if(fon_resmi=="http://i.imgur.com/xcLQVNd.jpg"){$(".arkaplan").css({"opacity":fon_opacity*7});}//çınar ağacı resmi için mecburen } // $("[id^='medyanet'],#ad-sitewide-container,.ad-medyanet,.ad-adsense,#aside>iframe,.showall.more-data:first,#videos,.twitter-info-card,#return-to-innocence").remove();$("html").removeClass("supersitewide sitewide");//.ad-theme-visual-home,.ad-theme-visual-inner,.ads if(gradient_modu=="0"){$('head').append('<style>body{background-color:'+renk0+';}</style>');}else{$('head').append('<style>body{background-image:-moz-linear-gradient(top,'+renk0ust+','+renk0alt+');background-image:-ms-linear-gradient(top, '+renk0ust+', '+renk0alt+');background-image:-webkit-gradient(linear, 0 0, 0 100%, from('+renk0ust+'), to('+renk0alt+'));background-image:-webkit-linear-gradient(top, '+renk0ust+', '+renk0alt+');background-image:-o-linear-gradient(top, '+renk0ust+', '+renk0alt+');background-image:linear-gradient(top, '+renk0ust+', '+renk0alt+');background-color:'+renk0+';}</style>');} $('head').append('<style>html.no-touch > body{padding-top:0px;position:absolute;top:65px;overflow-y:auto;overflow-x:hidden;bottom:0px;}body{color:'+renk5+';font-family:'+font_select+';font-size:'+font_boyutu+';line-height:'+line_height+';font-weight:'+font_w+';vertical-align:middle;background-position:50% 0%;background-attachment:fixed;background-repeat:no-repeat;}</style>'); $('head').append('<style>html,html>body>header #top-bar,#topic-channels>ul>li.channel>a.index-link{width:auto;}#index-section{width:'+index_section+';}html.no-touch #index-section{top:65px;}#container{width:'+container_genisligi+';max-width:'+ekran_genisligi+'px;}#main{margin-left:'+main+';}#content-body{width:'+content_body+';}#partial-index{background-color:transparent;line-height:'+line_height+';}nav#partial-index{margin-bottom:0px;}</style>'); $('head').append('<style>h1,h2,h3,h4,h5,h6{color:'+renk3+';font-family:'+font_select+';font-weight:'+font_w+';}h1#title>a{color:'+renk3+';font-size:'+h1boyutu+';font-weight:'+font_w+';/*font-family:Verdana,Arial,Helvetica,sans-serif;*/}h1#title>a:hover{color:'+renk3hover+';}#partial-index>h2{margin-top:10px;padding-left:8px;font-size:'+h2boyutu+';}#partial-index>p,#partial-index>h3,#partial-index>ul.index-list{padding-left:8px;}html.no-touch a,.tabs > li.active > a{color:'+renk4+';text-decoration:none;}html.no-touch a:hover,.creation-time:hover{color:'+renk8+';text-decoration:none;}.topic-list.partial>li>a{padding:0px 20px 0px 8px;color:'+renk1+';}ul.index-list a,#top-navigation > ul > li > a{color:'+renk1+';}ul.index-list a:hover,#top-navigation > ul > li > a:hover{color:'+renk2+';}.topic-list.partial>li>a small{color:'+renk1+';top:1px;}#top-navigation > ul > li{margin-right:12px;}#partial-index>.topic-list>li>a>.detail{color:'+renk3alt+';text-decoration:none;}</style>'); //opacity:1 color:#000 border:none background-color:transparent $('head').append('<style>html{overflow-y:auto;}#aramesaj button:hover,form#message-thread-list-form button:hover,.edittools button:hover,.actions>button:hover,.more-data:hover,.last:hover,.next:hover,.prev:hover,.pager>select:hover,.editform>.vertical>h3>a:hover,#entry-list footer div.feedback>a.favorite-count:hover,#in-topic-search-options button:hover,#yutub :hover,#yutub2 :hover,#yesterdays-best-entry-info .more-data:hover,#yesterdays-best-entry-info .more-data.next:hover{opacity:1;}</style>'); $('head').append('<style>.pager>a.prev,.pager>a.last,.pager>a.next,.pager>a.prev:hover,.pager>a.last:hover,.pager>a.next:hover,.pager>select:hover,#yesterdays-best-entry-info>a,#yesterdays-best-entry-info>a:hover,#yesterdays-best-entry-info>a small,#yesterdays-best-entry-info>a small:hover{color:'+renk12+';}.pager>a,.topic-list li,#site-footer,#message-thread .edittools,#threads li + li,#message-send-form .edittools{border:none;}</style>'); $('head').append('<style>/*.ui-autocomplete li a.ui-state-focus,*/.ui-autocomplete li a.ui-state-focus{background-color:'+renk6+';}.ui-autocomplete>li>a:hover,.ui-autocomplete:hover,html.no-touch a.more-data:hover,html.no-touch .dropdown .dropdown-menu li:hover,#top-bar,#sub-navigation,body > header,html.no-touch #in-topic-search-options > li:hover,#message-thread .incoming, #message-thread .outgoing,#content-body ul.tabs {background-color:transparent;}</style>'); $('head').append('<style>#entry-list,#entry-list>li:not(:first-child){margin-top:5px;}#entry-list footer div.feedback > a, #entry-list footer div.options > a, #entry-list footer div.other > a, #entry-list footer .rate-options a{color:'+renk9+';}#entry-list footer .share-link:after,#entry-list footer div.other > a:after{border-top-color:'+renk9+';color:'+renk9+';}</style>'); $('head').append('<style>#entry-list footer div.feedback > a:hover, #entry-list footer div.options > a:hover, #entry-list footer div.other > a:hover, #entry-list footer .rate-options a:hover,#entry-list footer .favorite-list-popup ul li a,#topic-share-menu>.share-dialog a,#in-topic-search-options a,.feedback .share-dialog a,.other.dropdown .dropdown-menu li > a{color:'+renk10+';}#entry-list footer .share-link:hover:after,.dropdown .dropdown-toggle:hover:after,#entry-list footer div.other > a:hover:after{border-top-color:'+renk10+';color:'+renk10+';}</style>'); $('head').append('<style>#entry-list footer div.feedback>a.favorite-count{color:'+renk3+';font-weight:bold;}#entry-list .hidden, #entry-list .deleted{background-color:rgba(0,0,0, 0.3);padding:0;border-radius:3px;-webkit-border-radius: 3px;-moz-border-radius: 3px;}#entry-list>li:before{border:0px;content:"";}</style>'); $('head').append('<style>#entry-list li article footer .info{width:100%;position:relative;/*z-index:0;*/}#entry-list li article footer .feedback ul.rate-options{text-align:right;width:100%;margin-left:-140px;bottom:0px;position:absolute;z-index:1;}#entry-list li article footer .feedback{text-align:right;width:100%;margin-left:-150px;bottom:0px;position:absolute;z-index:2;}#entry-list footer .vote-response-area{color:'+renk6+';}span.vote-response-area{margin:-37px 0px 0px -260px;text-align:right;width:100%;position:absolute;z-index:3;}.favicon-favorite11-grey{background-position:0px -62px;}.favicon-favorite11 {background-position:0px -123px;}</style>'); $('head').append('<style>#entry-list footer div.feedback > a, #entry-list footer div.options > a, #entry-list footer div.other > a, #entry-list footer .rate-options a{font-size:0.9em;}#entry-list .share-dialog{right:0px;left:auto;}#entry-list>li>article>footer{margin-top:-8px;}</style>'); $('head').append('<style>#entry-list>li>article>footer>.info>.options,#entry-list>li>article>footer>.feedback{visibility:hidden;}#entry-list{list-style:decimal outside none;}</style>'); $('head').append('<style>.pager,time,#entry-list footer .entry-date,#site-footer ul li + li:before,#threads li article.unread h2 small,a#topic-channel-suggestion-menu-toggle{color:'+renk6+';}.sub-title-menu #topic-share-menu > .toggles:after, .sub-title-menu #topic-research-menu .toggles:after, .sub-title-menu #in-topic-search-menu > .toggles:after{border-top-color:'+renk6+';}form#search-form.inline{position:absolute;left:'+main+';margin-left:60px;}</style>'); $('head').append('<style>.pager select{background-color:'+renk11+';border-color:'+renk11alt+';color:'+renk12+';opacity:0.7;}#partial-index>.pager{text-align: center;}.more-data{margin-bottom:2px;margin-top:-4px;}</style>'); $('head').append('<style>.showall.more-data,.more-data,.last,.next,.prev,#in-topic-search-options button,.channel-button,#yesterdays-best-entry-info .more-data,#yesterdays-best-entry-info .more-data.next,#yenimesajgonder button.primary,#message-thread button.primary,#aramesaj button,form#message-thread-list-form button,#notlar_ form#user-note-form button.primary{opacity:0.7;background-image:-moz-linear-gradient(top,'+renk11ust+','+renk11alt+');background-image:-ms-linear-gradient(top, '+renk11ust+', '+renk11alt+');background-image:-webkit-gradient(linear, 0 0, 0 100%, from('+renk11ust+'), to('+renk11alt+'));background-image:-webkit-linear-gradient(top, '+renk11ust+', '+renk11alt+');background-image:-o-linear-gradient(top, '+renk11ust+', '+renk11alt+');background-image:linear-gradient(top, '+renk11ust+', '+renk11alt+');background-color:'+renk11+';color:'+renk12+';border-radius:3px;-webkit-border-radius: 3px;-moz-border-radius: 3px;box-shadow:0px 1px 2px rgba(0, 0, 0, 0.1);-webkit-box-shadow:0px 1px 2px rgba(0, 0, 0, 0.1);-moz-box-shadow:0px 1px 2px rgba(0, 0, 0, 0.1);background-repeat:repeat-x;border:1px solid transparent;width:auto;height:25px;padding:2px 10px;cursor:pointer;font-family:Verdana,sans-serif;}</style>'); $('head').append('<style>#yesterdays-best-entry-info .more-data,#yesterdays-best-entry-info .more-data.next{width:49%;}.sub-title-menu>#topic-share-menu>a,.sub-title-menu #topic-share-menu > .toggles:after,.sub-title-menu>#in-topic-search-menu>a,a#move-topic-link,a#track-topic-link{text-decoration:none;border-top-color:'+renk6+';color:'+renk6+';}</style>'); $('head').append('<style>.sub-title-menu>#topic-share-menu>a:hover,.sub-title-menu #topic-share-menu > .toggles:hover:after,.sub-title-menu>#in-topic-search-menu>a:hover,a#move-topic-link:hover,a#track-topic-link:hover{text-decoration:none;border-top-color:'+renk5+';color:'+renk5+';}</style>'); $('head').append('<style>html.no-touch #sub-navigation > ul > li > a,a#quick-index-continue-link,#partial-index a.index-link{color:'+renk1+';}html.no-touch #sub-navigation > ul > li > a:hover,a#quick-index-continue-link:hover,#partial-index a.index-link:hover{color:'+renk2+';}.dropdown .dropdown-menu,.modal,.ui-autocomplete,.ui-menu-item,#topic-channel-info #topic-channel-suggestion-menu,#top-bar > #advanced-search-form {background-color:'+renk0+';border-color:'+renk6+';}.share-dialog,#in-topic-search-options,#entry-list footer .favorite-list-popup,.other.dropdown .dropdown-menu{background-color:'+renk0+';border-color:'+renk6+';}.open a:hover{color:#888;}fieldset legend{color:'+renk6+';border-bottom-color:#333;}</style>'); $('head').append('<style>#top-bar > #advanced-search-form{left:'+main+';}#topic-share-menu>.share-dialog{margin-top:2px;/*background-image:url(http://i.imgur.com/XlbSQtO.png);background-position:center center;*/}#s_container>h2>a:hover{color:'+renk3hover+';}#topic-share-menu>.share-dialog a:hover,#in-topic-search-options a:hover,.muted,.feedback .share-dialog a:hover,#entry-list footer .favorite-list-popup ul li a:hover,.other.dropdown .dropdown-menu li > a:hover{color:#fff;}</style>'); //$('head').append('<style>#in-topic-search-options{background-image:url(http://i.imgur.com/AG8hiRW.png);background-position:top right;background-repeat:no-repeat;}</style>'); $('head').append('<style>#entry-list footer .favorite-list-popup{right:0px;}.showall.more-data{width:155px;line-height:12px;margin:0 auto;height:20px;}.showall.more-data:hover{border-color:'+renk11alt+';color:'+renk12+';opacity:1;}</style>'); $('head').append('<style>#video{margin:0 auto;width:50%;}#topic>.editform>.vertical>h3{color:transparent;}#content-body>form>fieldset.vertical label.checkbox{position:relative;margin:4px 0px 0px 12px;}#content-body>form>fieldset.vertical button{margin-left:-3px;}</style>'); $('head').append('<style>.tabs > li{border:1px solid #333;}#message-thread .incoming,#message-thread .outgoing{border-color:#999;}#sub-navigation,#logo{margin-left:6px;}#sub-navigation #main-index-nav {margin-right:20px;}</style>'); $('head').append('<style>#threads li article p,#threads li article.unread p {color:'+renk5+';}.tabs > li.active,#content-body ul.tabs{border-color:#333;}</style>'); $('head').append('<style>html.no-touch #channel-follow-list li,html.no-touch #threads li article{border:1px solid transparent;}#content-body .topic-list li a{border:1px solid transparent;padding-left:8px;}html.no-touch #threads li article:hover,html.no-touch #channel-follow-list li:hover,#content-body .topic-list li a:hover{border:1px solid '+renk5+';background-color:transparent;border-radius:4px;}#channel-follow-list li .channel-button.primary{border-color:#d31;}</style>'); $('head').append('<style>html.no-touch #threads li article{border-bottom:1px solid #222;}.tabs > li:hover,.tabs > li.active:hover{border:1px solid '+renk5+';background-color:transparent;}</style>'); $('head').append('<style>#message-send-form{width:100%;margin:0 auto;z-index:21000;}textarea.edittextbox{background-color:'+renk0+';}.edittextbox.with-helpers {border-bottom:1px solid #999;}</style>'); $('head').append('<style>input[type="text"], input[type="email"], input[type="search"], input[type="url"], input[type="datetime"], input[type="date"], input[type="time"], input[type="password"], select, textarea {border: 1px solid #ccc;}input[type="text"]:focus, input[type="email"]:focus, input[type="search"]:focus, input[type="url"]:focus, input[type="datetime"]:focus, input[type="date"]:focus, input[type="time"]:focus, input[type="password"]:focus, textarea:focus, button:focus, input[type="submit"]:focus, input[type="button"]:focus{border-color:rgba(100,100,100, 0.7);box-shadow:0px 1px 3px rgba(0,0,0, 0.1) inset,0px 0px 8px rgba(100,100,100, 0.6);}</style>'); $('head').append('<style>#kullanici_menu,#s_container,#aside,#aside>div,#aside>section{position:fixed;width:'+s_container+';right:20px;margin-right:0;text-align:center;min-width:220px;}.kulup{white-space:normal;}</style>'); $('head').append('<style>#kullanici_menu{top:65px;}#kullanici_menu>ul{margin:0 auto;height:80px;}#kullanici_menu ul>li{width:50px;display:inline-block;}#kullanici_menu ul>li>a{text-align:center;font-weight:bold;color:#333;padding:0;}#kullanici_menu ul>li>a:hover{color:'+renk1+';text-decoration:none;}</style>'); $('head').append('<style>#kullanici_menu>ul li.messages .new-update,#kullanici_menu>ul li.tracked .new-update,li.messages,li.tracked{height: 100%;background-repeat: no-repeat;padding-top:80px;background-position: center;-webkit-border-radius: 0px;-moz-border-radius: 0px;border-radius: 0px;-webkit-box-shadow: inset 0 0px 0px rgba(0, 0, 0, 0.1), 0 0 0px transparent;-moz-box-shadow: inset 0 0px 0px rgba(0, 0, 0, 0.1), 0 0 0px transparent;box-shadow: inset 0 0px 0px rgba(0, 0, 0, 0.1), 0 0 0px transparent;}</style>'); if(sessionStorage.getItem("bugunedair-arrow")===null || sessionStorage.getItem("bugunedair-arrow")==="up"){var bugunedair_arrow="sarimsak-arrow-up";}else{var bugunedair_arrow="sarimsak-arrow-down";} $("#top-navigation").append("<div id=sarimsak></div>");$("#sarimsak").append("<div id=s_container><div id=kullanici_menu><ul></ul></div><h2><a>bugüne dair</a><span class="+bugunedair_arrow+"></h2><div id=bugunedair></div><div id=yutub></div><div id=yutub2></div><div id=a_side></div></div>"); $("#aside").appendTo("#a_side"); $("#top-navigation ul li a[href^='/biri/']").parent().appendTo("#kullanici_menu ul"); $("#top-navigation ul li.messages").appendTo("#kullanici_menu ul"); $("#top-navigation ul li.tracked").appendTo("#kullanici_menu ul"); if(bugunedair_arrow=="sarimsak-arrow-up"){$("#bugunedair").show();}else{$("#bugunedair").hide();} $('head').append('<style>#s_container{right:20px;top:175px;z-index:10001;}#bugunedair{height:auto;min-height:'+bugunedair_mh+';color:'+renk1+';overflow:hidden;}#bugunedair a.b{color:'+renk1+';}#bugunedair a.b:hover{color:'+renk2+';}</style>'); $('head').append('<style>#aside{float:right;}#topic-channel-info{float:none;width:auto;}#topic-channel-info #topic-channel-suggestion-menu{overflow-y:auto;top:36px;margin:0 auto;width:auto;padding:0;height:300%;right:0px;}#topic-channel-info #topic-channel-suggestion-menu h2,#topic-channel-info #topic-channel-suggestion-menu h2 a{margin-bottom:0;font-size:'+baslikh2_fs+';}</style>'); $('head').append('<style>#yutub :not(h2),#yutub2 :not(h2){opacity:0.4;}#s_container>h2,#s_container>h2>a,#yutub>h2,#yutub2>h2,h2#kanallar{margin-top:2px;margin-bottom:2px;color:'+renk3+';font-size:'+baslikh2_fs+';line-height:'+baslikh2_lh+';font-weight:bold;}.dogum,.vefat,.kulup{line-height:'+line_height+';}</style>'); $('head').append('<style>.editform{position:relative;}#options-dropdown ul.dropdown-menu.toggles-menu.open{z-index:20000;}</style>'); $('head').append('<style>#topic>.editform>.vertical>.edittools{border:none;position:absolute;top:26px;right:4px;}#content-body>form.editform>fieldset.vertical>div.edittools{border:none;position:absolute;top:-2px;right:4px;}#content-body>form.editform>fieldset.vertical>div.edittools>button{margin-left:4px;}#aside iframe#twitter-widget-0{position:fixed;bottom:0;right:0;}h2#twitter{display:none;}</style>'); $('head').append('<style>textarea#editbox{color:'+renk13+';opacity:0.4;font: 14px sans-serif,Arial;width:100%;height:250px;margin:10px 0px 3px 0px;background-image: url('+entry_box_resmi+');background-position:center left;background-attachment: scroll;background-repeat:repeat-x;border:solid 2px #999;border-radius: 6px;-moz-border-radius: 6px;-webkit-border-radius: 6px ;background-color:'+renk14+';}</style>'); $('head').append('<style>textarea#editbox:focus{color:'+renk13+';opacity:1;outline:none;border:solid 2px #bbb;box-shadow:0px 0px 4px 0px #888;-webkit-box-shadow:0px 0px 4px 0px #888;-moz-box-shadow:0px 0px 4px 0px #888;background-attachment: scroll;background-repeat:repeat-x;background-image: url('+entry_box_resmi+');}</style>'); $('head').append('<style>textarea.edittextbox{height:250px;margin-top:-5px;color:'+renk13+';background-color:'+renk14+';background-position:right top;background-repeat:no-repeat;opacity:0.4;background-image: url('+msg_box_resmi+');border:2px solid #999;margin-bottom:5px;}</style>'); $('head').append('<style>textarea.edittextbox:focus{color:'+renk13+';background-position:right top;background-repeat:no-repeat;opacity:1;background-image: url('+msg_box_resmi+');}</style>'); $('head').append('<style>.edittools button,.actions>button,#channel-follow-list li .channel-button.primary:hover{opacity:0.7;border-radius:3px;-webkit-border-radius: 3px;-moz-border-radius: 3px;box-shadow:0px 1px 2px rgba(0, 0, 0, 0.1);-webkit-box-shadow:0px 1px 2px rgba(0, 0, 0, 0.1);-moz-box-shadow:0px 1px 2px rgba(0, 0, 0, 0.1);background-image:-moz-linear-gradient(top,#ddd,#bbb);background-image:-ms-linear-gradient(top, #ddd, #bbb);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#ddd), to(#bbb));background-image:-webkit-linear-gradient(top, #ddd, #bbb);background-image:-o-linear-gradient(top, #ddd, #bbb);background-image:linear-gradient(top, #ddd, #bbb);background-repeat:repeat-x;border:1px solid transparent;background-color:#ccc;color:#000;cursor:pointer;width:auto;}</style>'); $('head').append('<style>form.editform>fieldset.vertical>div.actions>button.primary:hover,.channel-button:hover,#tema_kaydet:hover,#notlar_ form#user-note-form button.primary:hover,#yenimesajgonder button.primary:hover,#message-thread button.primary:hover{opacity:1;background-image:-moz-linear-gradient(top,#bd6,#9b4);background-image:-ms-linear-gradient(top, #bd6, #9b4);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#bd6), to(#9b4));background-image:-webkit-linear-gradient(top, #bd6, #9b4);background-image:-o-linear-gradient(top, #bd6, #9b4);background-image:linear-gradient(top, #bd6, #9b4);background-color:#ac5;}#save-draft-button:hover,#tema_fabrika:hover{background-image:-moz-linear-gradient(top,#fe6,#dc4);background-image:-ms-linear-gradient(top, #fe6, #dc4);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#fe6), to(#dc4));background-image:-webkit-linear-gradient(top, #fe6, #dc4);background-image:-o-linear-gradient(top, #fe6, #dc4);background-image:linear-gradient(top, #fe6, #dc4);background-color:#dd5;}#channel-follow-list li .channel-button.primary,#delete-draft-button:hover,#tema_kaydetme:hover{background-image:-moz-linear-gradient(top,#f42,#d20);background-image:-ms-linear-gradient(top, #f42, #d20);background-image:-webkit-gradient(linear, 0 0, 0 100%, from(#f42), to(#d20));background-image:-webkit-linear-gradient(top, #f42, #d20);background-image:-o-linear-gradient(top, #f42, #d20);background-image:linear-gradient(top, #f42, #d20);background-color:#d31;}.last:hover,.next:hover,.prev:hover,.pager>select:hover{background-image:-moz-linear-gradient(top,'+renk7ust+','+renk7alt+');background-image:-ms-linear-gradient(top, '+renk7ust+', '+renk7alt+');background-image:-webkit-gradient(linear, 0 0, 0 100%, from('+renk7ust+'), to('+renk7alt+'));background-image:-webkit-linear-gradient(top, '+renk7ust+', '+renk7alt+');background-image:-o-linear-gradient(top, '+renk7ust+', '+renk7alt+');background-image:linear-gradient(top, '+renk7ust+', '+renk7alt+');background-color:'+renk7+';border-color:'+renk7+';}</style>'); $('head').append('<style>.editform>.vertical>h3>a{opacity:0.7;position:absolute;z-index:1;top:22px;left:4px;color:'+renk5+';}</style>'); $('head').append('<style>fieldset.vertical>div{margin:0;margin-top:-3px;}fieldset.vertical>div.actions{margin-top:0px;margin-left:5px;position:absolute;width:auto;}#preview-area{position:relative;top:40px;left:-40px;margin-bottom:100px;}</style>'); $('head').append('<style>fieldset.vertical>div>label.checkbox{position:relative;margin-top:4px;z-index:1;}</style>'); $('head').append('<style>#content{margin-left:45px;}#content-body>#topic>.editform{margin-left:-45px;}</style>'); $('head').append('<style>#site-footer{margin-right:'+site_footer+';}#site-footer a{color:#333;}#site-footer a:hover{color:#773;}#site-footer ul{text-align:center;}</style>'); $('head').append('<style>.aside-link{display:none;}#message-search-form > input[type="search"] {width:70%;}form#message-search-form{margin-bottom:1px;}input[type="file"]:focus,input[type="checkbox"]:focus,select:focus {outline:none;}</style>'); $('head').append('<style>#topic-channel-info #topic-channels li.channel > a {background-color:'+renk1+';border-color:'+renk1+';color:#000;}</style>'); $('head').append('<style>a#feed-refresh-link.more-data{box-shadow:none;opacity:1;background-color:transparent;background-image:none;color:transparent;position:relative;top:-27px;margin-bottom:-23px;font-size:20px;width:100%;text-align:left;}.rotator{margin-left:-12px;color:'+renk3+';}a#feed-refresh-link.more-data>small{position:relative;font-size:'+font_boyutu+';top:-1px;margin-left:0px;color:'+renk6+';}</style>'); $('head').append('<style>form#message-send-form.vertical.modal{width:500px;height:400px;}form#message-send-form.vertical.modal textarea{height:217px;}form#message-send-form.vertical.modal a.modal-close{color:'+renk3+';}form#message-send-form.vertical.modal .edittools{position:relative;right:1px;top:-1px;z-index:1;}form#message-send-form.vertical.modal .actions{position:relative;left:1px;top:-35px;width:170px;z-index:2;}form#message-send-form.vertical.modal #latest-entry-date-info{display:inline-block;}</style>'); $('head').append('<style>.editform > .vertical > h3 > a{font-size:'+h4boyutu+';top:29px;}#notlar_{position:relative;top:0px;left:0%;width:100%;height:160px;}textarea#user-note {position:absolute;height:80px;background-color:transparent;border-color:'+renk6+';color:'+renk5+';}#notlar_ form#user-note-form button{position:relative;left:0px;top:75px;}h2#notlar{margin-bottom:-5px;}</style>'); $('head').append('<style>h1#user-profile-title{margin-bottom:20px;}#profile-cards > li > h3, #profile-cards > li h4{border-bottom-color:'+renk6+';}#profile-cards h3 a{color:'+renk3+';}a#buddy-link,a#blocked-link,a#btnmsg{color:'+renk6+';}a#buddy-link:hover,a#blocked-link:hover,a#btnmsg:hover{color:'+renk5+';}</style>'); $('head').append('<style>#user-notifications{position:fixed;left:0;right:0;margin:0 auto;top:70px;width:200px;z-index:40001;}#user-notifications ul li,.confirmbox.activepopup{background-color:'+renk0+';color:'+renk5+';border-color:'+renk6+';}#user-notifications ul li a{color:'+renk3+';}.dropdown .dropdown-menu li.separated{border-top:1px solid transparent;}#user-entry-stats{margin-bottom:20px;color:'+renk6+';}#quote-entry:before, #quote-entry:after,#user-entry-stats li:after,#profile-cards > li > ul li:before,ul#profile-cards li h3 small,#profile-cards > li > ul li span{color:'+renk6+';}#quote-entry:before{top:20px;}#quote-entry:after{bottom:-20px;}#main #content #content-body>form{margin-bottom:50px;}html.no-touch #partial-index::-webkit-scrollbar-thumb{background-color:'+renk1alt+';}#profile-cards>li>ul>li>a{color:'+renk1+';}#profile-cards>li>ul>li>a:hover{color:'+renk2+';}#user-badges a{background-color:'+renk3+';border-color:'+renk3+';color:'+renk0+';}#user-badges li.muted{color:'+renk5+';}</style>'); $("#profile-cards").after("<div id=notlar_></div>"); $("h2#notlar,form#user-note-form").appendTo("#notlar_"); if(boyut_h=="0"){$('head').append('<style>#topic-channel-info #topic-channels li.channel > a{font-size:10px;font-weight:normal;padding:0 2px;}</style>');} if(window.location.pathname.substring(0, 6)=="/mesaj"){ $("#content-body>ul.tabs").before("<div id=aramesaj></div>"); $("#content-body>ul.tabs").next().after("<div id=yenimesajgonder></div>"); $("h2#ara,form#message-search-form").appendTo("#aramesaj"); $("h2#yeni-mesaj,form#message-send-form").appendTo("#yenimesajgonder"); $('head').append('<style>#aramesaj{position:relative;}#aramesaj h2#ara{position:absolute;top:-1px;right:200px;}#aramesaj form#message-search-form{position:absolute;top:4px;right:-15px;}#yenimesajgonder .edittools,#message-thread .edittools{position:relative;top:-280px;right:1px;z-index:1;}#yenimesajgonder input#To.nickpicker{position:relative;z-index:2;}#yenimesajgonder button.primary,#message-thread button.primary{position:relative;top:-35px;}</style>'); } $("#topic label.checkbox").appendTo("fieldset.vertical>div.actions"); $(".showall.more-data").text("tümünü göster"); if(ekran_genisligi>=1360){$(".editform>.vertical>h3>a").prepend("\"").append("\" hakkında bilgi verin:");}else{var fntb=parseInt(font_boyutu)-2+"px";$('head').append('<style>.editform>.vertical>h3>a{font-size:'+fntb+';}.edittools button{margin-left:2px;}</style>');} $("form.editform>fieldset.vertical>div.actions>button.primary").text(yolla_text);$("#save-draft-button").text(kenar_text);$("#delete-draft-button").text(durma_text); $("ul#quick-index-nav").append("<li><a href=https://eksisozluk.com/istatistik>istatistikler</a></li>"); $("#entry-list>li").mouseover(function(){$(".feedback,.options",this).css({"visibility":"visible"});}).mouseout(function(){$(".feedback,.options",this).css({"visibility":"hidden"});}); //gömmeye başla $('head').append('<style>.arrow-down,.arrow-up{border-left:9px solid transparent;border-right:9px solid transparent;margin:5px 0px 0px -19px;width:0px;height:0px;position:absolute;opacity:0.7;overflow:hidden;cursor:pointer;}.arrow-down{border-top:9px solid #bd0;}.arrow-up{border-bottom:9px solid #f60;}.arrow-down:hover,.arrow-up:hover{opacity:1;}</style>'); $('head').append('<style>.content img{max-width:100%;}.gomulu{margin-right:20px;}.bkz-ana{margin:2px;padding:5px;border:solid 2px #999;border-radius: 4px;-moz-border-radius: 4px;-webkit-border-radius: 4px;}.bkz-ana h1#title>a{font-size:'+h2boyutu+';}.bkz-ana .showall,.bkz-ana .editform,.bkz-ana .sub-title-menu{display:none;}.bkz-ana #entry-list{list-style:decimal inside none;}</style>'); //araştır $("#in-topic-search-menu").after("<ul id=i_ara><li><a>araştır</a><ul class=sub-i_ara><li><a href='https://www.google.com/search?q="+title+"' title='google' target='_blank' class=ikoncanlar><img src=http://www.google.com/s2/favicons?domain=http://www.google.com/ alt=Favicon></a></li><li><a href='http://www.yandex.com.tr/yandsearch?lr=11511&text="+title+"' title='yandex' target='_blank' class=ikoncanlar><img src=http://www.google.com/s2/favicons?domain=http://www.yandex.com/ alt=Favicon></a></li><li><a href='http://www.bing.com/search?q="+title+"' title='bing' target='_blank' class=ikoncanlar><img src=http://www.google.com/s2/favicons?domain=http://www.bing.com/ alt=Favicon></a></li><li><a href='https://twitter.com/search?src=typd&q="+title+"' title='twitter' target='_blank' class=ikoncanlar><img src=http://www.google.com/s2/favicons?domain=http://www.twitter.com/ alt=Favicon></a></li><li><a href='http://tr.wikipedia.org/w/index.php?title=Özel%3AAra&profile=default&search="+title+"&fulltext=Search' title='wikipedia' target='_blank' class=ikoncanlar><img src=http://www.google.com/s2/favicons?domain=http://tr.wikipedia.org/ alt=Favicon></a></li><li><a href='http://www.tdk.gov.tr/index.php?option=com_gts&kelime="+title+"' title='türk dil kurumu' target='_blank' class=ikoncanlar><img src=http://www.emu.edu.tr/mbalcilar/eets/Ana_Sayfa_files/tdklogo.gif alt=Favicon></a></li><li><a href='https://www.google.com/search?q="+title+"&source=lnms&tbm=isch' title='google görseller' target='_blank' class=ikoncanlar><img src=http://www.smartis.com.tr/blog/wp-content/yuklenen/2014/06/google-logo.jpg alt=Favicon></a></li><li><a href='http://yandex.com.tr/gorsel/search?text="+title+"' title='yandex görseller' target='_blank' class=ikoncanlar><img src=http://www.google.com/s2/favicons?domain=http://www.yandex.com.tr/gorsel alt=Favicon></a></li><li><a href='http://www.bing.com/images/search?q="+title+"' title='bing görseller' target='_blank' class=ikoncanlar><img src=http://www.google.com/s2/favicons?domain=http://www.bing.com/images alt=Favicon></a></li><li><a href='https://www.youtube.com/results?search_query="+title+"' title='youtube' target='_blank' class=ikoncanlar><img src=http://www.google.com/s2/favicons?domain=http://www.youtube.com/ alt=Favicon></a></li><li><a href='http://us.imdb.com/find?q="+title+"' title='imdb' target='_blank' class=ikoncanlar><img src=http://www.google.com/s2/favicons?domain=http://www.imdb.com/ alt=Favicon></a></li><li><a href='http://kickass.to/usearch/"+title+"' title='kickass' target='_blank' class=ikoncanlar><img src=http://www.google.com/s2/favicons?domain=http://www.kickass.to/ alt=Favicon></a></li></ul></li></ul>"); $('head').append('<style>ul#i_ara li a:hover{color:'+renk5+';}.sub-title-menu>a.url{display:none;}ul#i_ara li:hover ul.sub-i_ara {display:block;}ul#i_ara,ul#i_ara ul.sub-i_ara{z-index:20000;padding:0;margin:0;display:inline-block;background-color:'+renk0+';font-size:0.9em;margin-right:10px;}ul#i_ara{background-color:transparent;}ul#i_ara ul.sub-i_ara{border:1px solid '+renk6+';border-radius:3px;-webkit-border-radius: 3px;-moz-border-radius: 3px;}ul#i_ara li, ul#i_ara ul.sub-i_ara li {list-style-type: none;display: inline-block;}ul#i_ara li a, ul#i_ara li ul.sub-i_ara li a {text-decoration: none;color:'+renk6+';display:inline-block;}ul#i_ara li {position: relative;}ul#i_ara li ul.sub-i_ara li a {padding:5px;}ul#i_ara li ul.sub-i_ara {display:none;position: absolute;top:17px;padding:5px;left: -17px;width: 168px;}.ikoncanlar img{width:16px;height:16px;}</style>'); $("#i_ara li a").click(function(){$("ul.sub-i_ara").css({"display":"block"});});// e.preventDefault(); $(document).click(function(e){if ($(e.target).closest('#i_ara').length>0 || $(e.target).closest('#i_ara li a').length>0) return; $("ul.sub-i_ara").css({"display":"none"}); }); //entry $("a[href^='/entry/']").filter(function(){return $(this).text().match(/^#/i);}).each(function() { var entry_href=$(this).attr("href");var entry_title=$(this).text();var entry_id=entry_title.replace("\#",""); $(this).before('<a class=gomulu href="'+entry_href+'">'+entry_title+'</a>').replaceWith("<span class='arrow-down arrow"+entry_id+"'></span>"); $(".arrow"+entry_id+"").click(function(){ if($(this).hasClass("arrow-down")==true){//kaynak hedef $(this).removeClass("arrow-down").addClass("arrow-up").after("<div class='bkz-ana bkz-embed"+entry_id+"'></div>");$(".bkz-embed"+entry_id+"").load(""+entry_href+" #topic", function() { });}else{ $(this).removeClass("arrow-up").addClass("arrow-down");$(".bkz-embed"+entry_id+"").remove();} }); }); //tweet $(".content a[href*='twitter.com/']").each(function() { var tweet_url = this.href;var tweet_title = $(this).text();var tweet_id = tweet_url.split("/")[5]; $(this).before('<a class=gomulu target="_blank" href="'+tweet_url+'">'+tweet_title+'</a>').replaceWith("<span class='arrow-down arrow"+tweet_id+"'></span>"); $(".arrow"+tweet_id+"").click(function(){ if($(this).hasClass("arrow-down")==true){ $(this).removeClass("arrow-down").addClass("arrow-up").after("<div class='twt-embed"+tweet_id+"'></div>");$.getJSON("https://api.twitter.com/1/statuses/oembed.json?id="+tweet_id+"&callback=?",function(ajaxresult){$(".twt-embed"+tweet_id+"").html(ajaxresult.html);});}else{ $(this).removeClass("arrow-up").addClass("arrow-down");$(".twt-embed"+tweet_id+"").remove();} }); }); // //youtube $("a[href*='youtube.com/watch?v='],a[href*='youtu.be/']").each(function() { var yt_url = this.href;var yt_title = $(this).text();var yt_id = yt_url.split(/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/)[1]; $(this).before('<a class=gomulu target="_blank" href="' + yt_url + '">' + yt_title + '</a>').replaceWith("<span class='arrow-down arrow"+yt_id+"'></span>"); $(".arrow"+yt_id+"").click(function(){ if($(this).hasClass("arrow-down")==true){ $(this).removeClass("arrow-down").addClass("arrow-up").after("<div class='ytb-embed"+yt_id+"'></div>");$(".ytb-embed"+yt_id+"").html("<br><iframe width="+youtube1+" height=315 src=https://www.youtube.com/embed/"+yt_id+"?controls=2 frameborder=0 allowfullscreen></iframe>");}else{ $(this).removeClass("arrow-up").addClass("arrow-down");$(".ytb-embed"+yt_id+"").remove();} }); }); // //resim $("#topic>ol#entry-list>li a.url").each(function(){ var entry_link=$(this).attr("href"); var uzanti = ['jpg','gif','png','jpeg']; var link_uzanti = entry_link.substr(entry_link.lastIndexOf('.') + 1); if ($.inArray(link_uzanti, uzanti) != -1){var img_title = $(this).html();var img_id=1+Math.floor(Math.random()*10000000);$(this).before('<a class=gomulu target="_blank" href="' + entry_link + ' ">' + img_title + '</a>').replaceWith("<span class='arrow-down arrow"+img_id+"'></span>");} $(".arrow"+img_id+"").click(function(){ if($(this).hasClass("arrow-down")==true){ $(this).removeClass("arrow-down").addClass("arrow-up").after("<div class='rsm-embed"+img_id+"'></div>");$(".rsm-embed"+img_id+"").html("<br><img src="+entry_link+"></img>");}else{ $(this).removeClass("arrow-up").addClass("arrow-down");$(".rsm-embed"+img_id+"").remove();} }); }); // //spoiler $("#topic>ol#entry-list>li a.b[href*='spoiler']").each(function(){ if ($(this).next().text().indexOf('spoiler') != 0){$(this).after("<span class='arrow-spo arrow-down'></span>");} }); $("#topic>ol#entry-list>li").each(function(){ $(".arrow-spo:even").each(function(){ var $set = $(); var nxt = this.nextSibling; while(nxt) { if(!$(nxt).is(".arrow-spo:odd")) { $set.push(nxt); nxt = nxt.nextSibling; } else break; } $set.wrapAll('<div class="spoiler-icerigi spoyler" />'); }); $(".arrow-spo:odd",this).hide(); }); $(".arrow-spo").click(function() { $(this).parent().find(".spoyler").toggleClass("sakla , spoiler-icerigi"); $(this).toggleClass("arrow-up , arrow-down"); }); $('head').append('<style>.arrow-spo{margin-left:20px;}.sakla{display:inline;}.spoiler-icerigi{display:none;}</style>'); //gömmeyi bitir //yazı boyutu if(sessionStorage.getItem("font_boy")===null){var font_val=$("body").css("font-size");}else{var font_val=sessionStorage.getItem("font_boy");$("body,.topic-list.partial>li>a").css({"font-size":font_val,"line-height":parseInt(font_val)+8+"px"});$("#font_val").text(font_val);} $('head').append('<style>ul#main-index-nav li #slide{background-color:transparent;cursor:pointer;position:relative;vertical-align: middle;margin-right:3px;}ul#main-index-nav li #slide_,ul#main-index-nav li #slider,ul#main-index-nav li #font_val{position: relative;top: 0px;left: 0px;display: inline-block;color:'+renk1+';}#font_val{margin-right:10px;}input[type=range],input[type=range]::-moz-range-track{background-color:'+renk5+';height: 2px;}input[type=range]::-webkit-slider-thumb,input[type=range]::-moz-range-thumb{background-color:transparent;box-shadow:inset 0 0 10px '+renk0+';border: 1px solid '+renk1+';}</style>'); $("ul#main-index-nav").prepend("<li><div id='slider'>yazı boyutu: <input id='slide' type='range' min='9' max='16' step='1' value='"+parseInt(font_val)+"'/><div id='font_val'>"+font_val+"</div></div></li>"); $("#slide").change(function(){sessionStorage.setItem("font_boy",$(this).val()+"px");$("body,.topic-list.partial>li>a").css({"font-size":$(this).val()+"px","line-height":parseInt($(this).val())+8+"px"});$("#font_val").text($(this).val()+"px");}); // $("header").mouseover( function() { if($("#kullanici_menu").is(":hover")==false){show_top();} }).mouseout( function() { if($("#search-textbox").is(":focus")==false){if($("form#advanced-search-form").hasClass("open")==false){hide_top();}} }); $("#search-textbox").blur( function() { hide_top(); }); $(document).ready( function() { hide_top(); sol_frame(); sag_frame(); bugunedair(0); if(sf_yenile!=""){if(sf_yenile!=0){if(sf_yenile<10&&sf_yenile!=0){sf_yenile=10;}setInterval(function(){$("#feed-refresh-link").trigger("click");}, sf_yenile*1000);}} }); $(document).on("click", "#s_container>h2>a", function(e) {$(".kulup,.dogum,.vefat").remove();bugunedair(1);}); $(document).ajaxComplete( function() { sol_frame(); sag_frame(); }); function sag_frame(){ //mesaj if($(".messages a").hasClass("new-update")==true){ $('head').append('<style>#kullanici_menu > ul li.messages .new-update{background-color:transparent;padding-top:0;}#kullanici_menu>ul>li.messages>a.new-update{color:'+renk4+';background-color:transparent}#kullanici_menu>ul>li.messages>a.new-update:hover{color:'+renk5+';}</style>'); $(".messages").css({"background-image":"url("+mesaj_var+")"});} else{$(".messages").css({"background-color":"transparent","background-image":"url("+mesaj_yok+")"});} //olay if($(".tracked a").hasClass("new-update")==true){ $('head').append('<style>#kullanici_menu > ul li.tracked .new-update{background-color:transparent;padding-top:0;}#kullanici_menu>ul>li.tracked>a.new-update{color:'+renk4+';background-color:transparent}#kullanici_menu>ul>li.tracked>a.new-update:hover{color:'+renk5+';}</style>'); $(".tracked").css({"background-image":"url("+olay_var+")"});} else{$(".tracked").css({"background-color":"transparent","background-image":"url("+olay_yok+")"});} } function sol_frame(){ $("#partial-index>ul>li>a,#partial-index>ol>li>a").each(function () { if($("span",this).hasClass("caption")==false){var baslik=$(this).html();if(baslik.indexOf("<small>")>0){baslik=baslik.split(" <small>")[0];}else{baslik=$(this).text().substring(0,baslik.length-1);}} else{var baslik=$("span",this).text();} var splits = sf_baslik.trim().split(";"); for(var i =0;i<splits.length;i++) { if(baslik==splits[i].trim()){$(this).css("color",renk2);$("small",this).css("color",renk2).addClass("sf_baslik");} } if($(this).hasClass("sponsored")==true){$(this).remove();} }); $(".topic-list.partial>li").mouseover(function() { if($("small",this).hasClass("sf_baslik")==false) {$("a,small",this).css({"background-color":"transparent","color":renk2});} else{$("a,small",this).css({"background-color":"transparent","color":renk1});} }).mouseout(function() { if($("small",this).hasClass("sf_baslik")==false) {$("a",this).css({"background-color":"transparent","color":renk1});$("small",this).css({"background-color":"transparent","color":renk1});} else{$("a,small",this).css({"background-color":"transparent","color":renk2});} }); $("h2:not(h2#kanallar)").css({"color":renk3}); if($("#feed-info").attr("data-deltacount")==0){$('.rotator').css({"color":"transparent"});} } function hide_top(){ if(header_resmi!=""){ $("#sub-navigation,#logo,form#search-form,#options-dropdown,#top-navigation a#top-login-link,#top-navigation a[href^='/kayit']").hide(); $("html>body>header #top-bar").css({"width":"auto","background-image":"url("+header_resmi+")","background-repeat":"no-repeat","background-position":"bottom left"}); } } function show_top(){ if(header_resmi!=""){ $("#sub-navigation,#logo,form#search-form,#options-dropdown,#top-navigation a#top-login-link,#top-navigation a[href^='/kayit']").show(); $("html>body>header #top-bar").css("background-image","none"); } } $("#top-navigation #top-login-link,#top-navigation a[href^='/kayit']").hover(function(){show_top();}); function bugun(bgn,vv){ var d = new Date();var month = d.getMonth()+1;var day = d.getDate();//var output = (day<10 ? '0' : '') + day + '.' + (month<10 ? '0' : '') + month + '.' + d.getFullYear(); var gun=(day<10 ? '0' : '') + day + (month<10 ? '0' : '') + month; if(sessionStorage.getItem('bugun') === null || vv!=0) { var bugun = (function () {var bugun = null;$.ajax({'url':bugun_json,'async':false,'global': false,'dataType': "json",'success':function(data){bugun=data;}});return bugun;})(); sessionStorage.setItem("bugun", JSON.stringify(bugun)); } var bugun=JSON.parse(sessionStorage.getItem('bugun')); return bugun["bugunjson"][bgn][gun]; } function bugunedair(vv){ var func_kulup=bugun(0,vv); if(typeof(func_kulup) != "undefined" && func_kulup !== null) { var say=func_kulup.split("&").length-1;var klps=func_kulup.split("&"); for(var i=0;i<say+1;i++){$("#bugunedair").append("<div class=kulup><a class=b data-href=\""+klps[i]+"\">"+klps[i]+"</a><br></div>");} } var func_dogum=bugun(1,vv); if(typeof(func_dogum) != "undefined" && func_dogum !== null) { if(func_dogum.split("&").length-1==0){var dgm=func_dogum.split("'");$("#bugunedair").append("<div class=dogum><a class=b data-href=\""+dgm[0]+"\">"+dgm[0]+"</a>'"+dgm[1]+" doğum günü</div>");} else{var dgm=func_dogum.split("'");var dgms=dgm[0].split("&");$("#bugunedair").append("<div class=dogum><a class=b data-href=\""+dgms[0]+"\">"+dgms[0]+"</a> ve <a class=b data-href=\""+dgms[1]+"\">"+dgms[1]+"</a>'"+dgm[1]+" doğum günü</div>");} } var func_vefat=bugun(2,vv); if(typeof(func_vefat) != "undefined" && func_vefat !== null) { if(func_vefat.split("&").length-1==0){var vft=func_vefat.split("'");$("#bugunedair").append("<div class=vefat><a class=b data-href=\""+vft[0]+"\">"+vft[0]+"</a>'"+vft[1]+" ölüm yıldönümü</div>");} else{var vft=func_vefat.split("'");var vfts=vft[0].split("&");$("#bugunedair").append("<div class=vefat><a class=b data-href=\""+vfts[0]+"\">"+vfts[0]+"</a> ve <a class=b data-href=\""+vfts[1]+"\">"+vfts[1]+"</a>'"+vft[1]+" ölüm yıldönümü</div>");} } $(".vefat>a.b,.dogum>a.b,.kulup>a.b").click(function() { $("#search-textbox").val($(this).attr("data-href"));$("#search-form.inline>input.primary").click(); }); } if(window.location.pathname.substring(0, 6)!="/mesaj"){ if(window.location.pathname.substring(0, 5)!="/biri"){ if(window.location.pathname.substring(0, 5)!="/olay"){ if(window.location.pathname.substring(0, 9)!="/kanallar"){ if(window.location.pathname.substring(0, 9)!="/sub-etha"){ if(alaka_modu=="1"){ $.getJSON('https://gdata.youtube.com/feeds/api/videos?q='+title+'&alt=json-in-script&max-results=10&format=5&callback=?', function(data) { var id=data["feed"]["entry"][0]["link"][0]["href"].split('watch?v=')[1].split('&')[0]; if(sessionStorage.getItem("yutub-arrow")===null || sessionStorage.getItem("yutub-arrow")==="up"){var yutub_arrow="sarimsak-arrow-up";}else{var yutub_arrow="sarimsak-arrow-down";} $("#yutub").append("<h2>çok alakalı<span class="+yutub_arrow+"></span></h2><div id=yutub_><iframe width="+youtube2w+" height="+youtube2h+" src=https://www.youtube.com/embed/"+id+"?controls=1 frameborder=0 allowfullscreen></iframe></div>"); if(yutub_arrow=="sarimsak-arrow-up"){$("#yutub_").show();}else{$("#yutub_").hide();} }); } if(duman_modu=="1"){ $.getJSON('https://gdata.youtube.com/feeds/api/users/'+yt_user+'/uploads?alt=json-in-script&callback=?', function(data) {//console.log(data["feed"]["entry"][0]["link"][0]); var id=data["feed"]["entry"][0]["link"][0]["href"].split('watch?v=')[1].split('&')[0]; if(sessionStorage.getItem("yutub2-arrow")===null || sessionStorage.getItem("yutub2-arrow")==="up"){var yutub2_arrow="sarimsak-arrow-up";}else{var yutub2_arrow="sarimsak-arrow-down";} $("#yutub2").append("<h2>dumanı üstünde<span class="+yutub2_arrow+"></span></h2><div id=yutub2_><iframe width="+youtube2w+" height="+youtube2h+" src=https://www.youtube.com/embed/"+id+"?controls=1 frameborder=0 allowfullscreen></iframe></div>"); if(yutub2_arrow=="sarimsak-arrow-up"){$("#yutub2_").show();}else{$("#yutub2_").hide();} }); } } } } } } $('head').append('<style>#yutub_,#yutub2_{background:#000;width:'+youtube2w+';height:'+youtube2h+';opacity:1 !important;margin: 0 auto;}.sarimsak-arrow-down,.sarimsak-arrow-up{border-left:6px solid transparent;border-right:6px solid transparent;width:0px;height:0px;position:absolute;opacity:0.4 !important;overflow:hidden;cursor:pointer;}.sarimsak-arrow-down{border-top:6px solid '+renk3+';}.sarimsak-arrow-up{border-bottom:6px solid #f60;}.sarimsak-arrow-down:hover,.sarimsak-arrow-up:hover{opacity:1 !important;}</style>'); if(boyut_h=="1"){$('head').append('<style>.sarimsak-arrow-down,.sarimsak-arrow-up{margin:10px 0px 0px 5px;}</style>');}else{$('head').append('<style>.sarimsak-arrow-down,.sarimsak-arrow-up{margin:4px 0px 0px 5px;}</style>');} if(sessionStorage.getItem("kanallar-arrow")===null || sessionStorage.getItem("kanallar-arrow")==="up"){$("h2#kanallar").append("<span class=sarimsak-arrow-up>");$("#topic-channels>ul").show();}else{$("h2#kanallar").append("<span class=sarimsak-arrow-down>");$("#topic-channels>ul").hide();} $(document).on("click","#s_container>h2>span",function(e){$("#bugunedair").slideToggle(250);$(this).toggleClass("sarimsak-arrow-up , sarimsak-arrow-down");if($(this).hasClass("sarimsak-arrow-up")==true){sessionStorage.setItem("bugunedair-arrow", "up");}else{sessionStorage.setItem("bugunedair-arrow", "down");}return false;}); $(document).on("click","#yutub>h2>span",function(e){$("#yutub_").slideToggle(250);$(this).toggleClass("sarimsak-arrow-up , sarimsak-arrow-down");if($(this).hasClass("sarimsak-arrow-up")==true){sessionStorage.setItem("yutub-arrow", "up");}else{sessionStorage.setItem("yutub-arrow", "down");}return false;}); $(document).on("click","#yutub2>h2>span",function(e){$("#yutub2_").slideToggle(250);$(this).toggleClass("sarimsak-arrow-up , sarimsak-arrow-down");if($(this).hasClass("sarimsak-arrow-up")==true){sessionStorage.setItem("yutub2-arrow", "up");}else{sessionStorage.setItem("yutub2-arrow", "down");}return false;}); $(document).on("click","h2#kanallar>span",function(e){$("#topic-channels>ul").slideToggle(250);$(this).toggleClass("sarimsak-arrow-up , sarimsak-arrow-down");if($(this).hasClass("sarimsak-arrow-up")==true){sessionStorage.setItem("kanallar-arrow", "up");}else{sessionStorage.setItem("kanallar-arrow", "down");}return false;}); if(window.location.pathname.substring(0, 6)=="/mesaj" || window.location.pathname.substring(0, 5)=="/biri" || window.location.pathname.substring(0, 5)=="/olay" || window.location.pathname.substring(0, 9)=="/kanallar" || window.location.pathname.substring(0, 9)=="/sub-etha" || bugun_modu=="0"){$("#bugunedair,#s_container>h2>a,#s_container>h2>span").hide();} if(kanal_modu=="0"){$("#topic-channel-info").hide();} // function h2d(h) {return parseInt(h,16);} function d2h(d) {return d.toString(16);} function renk(hex,deger,mod) {hex=hex.substring(1,7); if(hex.length!="6"){hex=hex.substring(0,1)+hex.substring(0,1)+hex.substring(1,2)+hex.substring(1,2)+hex.substring(2,3)+hex.substring(2,3);} if(mod=="1"){ var dec1ekle=parseInt(h2d(hex.substring(0,2)))+parseInt(deger);if(dec1ekle>255){dec1ekle=255;} var dec2ekle=parseInt(h2d(hex.substring(2,4)))+parseInt(deger);if(dec2ekle>255){dec2ekle=255;} var dec3ekle=parseInt(h2d(hex.substring(4,6)))+parseInt(deger);if(dec3ekle>255){dec3ekle=255;} var toplam_ekle=d2h(dec1ekle)+d2h(dec2ekle)+d2h(dec3ekle);return "#"+toplam_ekle;} else { var dec1cikar=parseInt(h2d(hex.substring(0,2)))+parseInt(deger);if(dec1cikar<=0){dec1cikar="00";} var dec2cikar=parseInt(h2d(hex.substring(2,4)))+parseInt(deger);if(dec2cikar<=0){dec2cikar="00";} var dec3cikar=parseInt(h2d(hex.substring(4,6)))+parseInt(deger);if(dec3cikar<=0){dec3cikar="00";} var toplam_cikar=d2h(dec1cikar)+d2h(dec2cikar)+d2h(dec3cikar);return "#"+toplam_cikar;} } $("#logo a").css({"background-image":"url("+logo_var+")"}); $("head").append("<style>"+mycss+"</style>");