Created
June 8, 2010 22:09
-
-
Save faraday/430720 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 77516.user.js 2010-06-09 01:01:57.190376632 +0300 | |
+++ 77516.mod.user.js 2010-06-09 01:01:39.960383299 +0300 | |
@@ -1,5 +1,5 @@ | |
// ==UserScript== | |
-// @name EppDev | |
+// @name EppDev (kynes mod > gundem tusu) | |
// @description Sabahlar olmasin! | |
// @namespace http://userscripts.org/users/ntpl | |
// @version 0.5.0.3 | |
@@ -74,7 +74,8 @@ | |
baslikSabitleme : 1, | |
kimdirNedirPopup : 1, | |
benPopup : 1, | |
- ucNoktayiGeriGetir : 1, | |
+ ucNoktayiGeriGetir : 1, | |
+ gundem: 1, | |
}; | |
var ayarKaydi = "EPP_Ayarlar"; | |
@@ -469,7 +470,8 @@ | |
"<input id='epp_sabitBaslikCB' type='checkbox'> Basliklari <b>sabitle</b> (Basliklari sayfayla beraber kayabilir yapar, uzun basliklarda kolaylik saglar) "+"<br/><br/>"+ | |
"<input id='epp_ucnoktaCB' type='checkbox'> <b>Uc nokta</b>li basliklar (Sol framedeki baslik listesini eski 'uc nokta' sistemine cevirir, nostalji yaratir) "+"<br/><br/>"+ | |
"<input id='epp_kimdirnedirPopupCB' type='checkbox'> <b>'Kimdir Nedir'</b> pop-up olsun (Entry altlarindaki 'kimdir nedir'leri eskisi gibi pop-up olarak gosterir, sac bas yoldurmaz) "+"<br/><br/>"+ | |
- "<input id='epp_benPopupCB' type='checkbox'> <b>'Ben'</b> pop-up olsun ('Ben' bilgilerinin pop-up olarak acilmasini saglar) "+"<b style='color:red'>Yeni!</b>"+"<br/><br/>"+ | |
+ "<input id='epp_benPopupCB' type='checkbox'> <b>'Ben'</b> pop-up olsun ('Ben' bilgilerinin pop-up olarak acilmasini saglar) "+"<b style='color:red'>Yeni!</b>"+"<br/><br/>"+ | |
+ "<input id='epp_gundemCB' type='checkbox'> Üst framede <b>'Gundem'</b> tuşu olsun (Gunun en populer basliklarini gosterir) "+"<b style='color:red'>Yeni!</b>"+"<br/><br/>"+ | |
"</fieldset><br/><br/>"+ | |
"<div style='text-align:center;'><button class='but' id='epp_ayarlariKapatBut'>çok iyi de oldu, çok güzel iyi oldu tamam mi</button></div>"+ | |
"</div>"+ | |
@@ -509,7 +511,8 @@ | |
var sabitBaslikCB = idGet("epp_sabitBaslikCB"); | |
var ucnoktaCB = idGet("epp_ucnoktaCB"); | |
var kimdirnedirPopupCB = idGet("epp_kimdirnedirPopupCB"); | |
- var benPopupCB = idGet("epp_benPopupCB"); | |
+ var benPopupCB = idGet("epp_benPopupCB"); | |
+ var gundemCB = idGet("epp_gundemCB"); | |
donuzEntryGizleCB.checked = Ayarlar.donuzGirdileriniGizle; | |
donuzBaslikGizleCB.checked = Ayarlar.donuzBasliklariniGizle; | |
@@ -522,7 +525,8 @@ | |
ucnoktaCB.checked = Ayarlar.ucNoktayiGeriGetir; | |
kimdirnedirPopupCB.checked = Ayarlar.kimdirNedirPopup; | |
benPopupCB.checked = Ayarlar.benPopup; | |
- resimGommeCB.checked = Ayarlar.resimGomme; | |
+ resimGommeCB.checked = Ayarlar.resimGomme; | |
+ gundemCB.checked = Ayarlar.gundem; | |
guncellemeBut.title = "Ustunde bekleyerek degil de tusa basarak kontrol edersek daha makbule gecer"; | |
@@ -693,6 +697,13 @@ | |
Ayarlar.benPopup = this.checked; | |
tumAyarlariKaydet(); | |
ayarMenusuDerki("'Ben' bilgileri <b>"+(this.checked?"pop-up olarak":"ana sayfada")+"</b> gosterilecek!", 4); | |
+ }, true); | |
+ | |
+ gundemCB.addEventListener("change", function(){ | |
+ tumAyarlariYukle(); | |
+ Ayarlar.gundem = this.checked; | |
+ tumAyarlariKaydet(); | |
+ ayarMenusuDerki("Gundem tusu <b>"+(this.checked?"gosterilecek":"gosterilmeyecek")+"</b> !", 4); | |
}, true); | |
//Panel tuslarini eksi tuslarina benzetelim, yabancilik olmasin | |
@@ -1442,9 +1453,46 @@ | |
}, | |
}); | |
} | |
- | |
+ | |
+ // bu reklam IFRAME'i ortaligi dagitiyor! | |
+ function menuReklamiKaldir(){ | |
+ var reklamDiv = document.getElementById("ifs"); | |
+ if(reklamDiv){ | |
+ reklamDiv.parentNode.removeChild(reklamDiv); | |
+ } | |
+ } | |
+ | |
+ function gundemTusuEkle() { | |
+ if (!Ayarlar.gundem) return; | |
+ | |
+ var tusTablosu = xpath("/html/body//table[1]//table[1]//tr[1]//td[1]").snapshotItem(0); | |
+ | |
+ var gundemTusu = document.createElement('td'); | |
+ var currentTime = new Date(); | |
+ | |
+ var month = currentTime.getMonth() + 1 | |
+ var day = currentTime.getDate() | |
+ var year = currentTime.getFullYear() | |
+ | |
+ gundemTusu.className="but"; | |
+ gundemTusu.setAttribute("onmouseover","ov(this)"); | |
+ gundemTusu.setAttribute("onmouseout","bn(this)"); | |
+ gundemTusu.setAttribute("onmousedown","md(this)"); | |
+ gundemTusu.setAttribute("onmouseup","bn(this)"); | |
+ gundemTusu.setAttribute("onclick","top.sozindex.location.href='index.asp?a=sr&kw=&au=&so=g&fd="+day+"&fm="+month+"&fy="+year+"'"); | |
+ gundemTusu.innerHTML = '<a title="gündem" target="sozindex" > gündem </a>'; | |
+ | |
+ tusTablosu.parentNode.insertBefore(gundemTusu,tusTablosu); | |
+ | |
+ } | |
+ | |
+ | |
this.basla = function() { | |
- EppAPI_log("UST FRAME BASLADI"); | |
+ EppAPI_log("UST FRAME BASLADI"); | |
+ | |
+ menuReklamiKaldir(); | |
+ gundemTusuEkle(); | |
+ | |
//Guncelleme kontrolu baslasin | |
guncellemeKontrolu(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment