donanimhaber

donanimhaber forumu için bir takım güzel işler yapar, bunun için para pul istemez.

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

You will need to install an extension such as Tampermonkey to install this script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==UserScript==
// @name       donanimhaber
// @namespace  https://greasyfork.org/scripts/13135-donanimhaber
// @version    0.4
// @description donanimhaber forumu için bir takım güzel işler yapar, bunun için para pul istemez.
// @match      http://*.donanimhaber.com/*
// @copyright  2015, Turkhero
// @require https://code.jquery.com/jquery-2.1.4.min.js
// @run-at document-start
// ==/UserScript==

cakma_cerez();
document.addEventListener ("DOMContentLoaded", DOM_ContentReady);
//window.addEventListener ("load", pageFullyLoaded);

function DOM_ContentReady () {
  $("tr[bgcolor='#FFFFFF']").remove();
  $("tr[class='r-ustkonu']").remove();
  $("tr[class='ustkonu']").remove();
  $(".konulisteTextReklam").remove();
  $("#Table7").remove();
  $("td[width='13%'").remove();
  $("td[width='10'").remove();
  $("img[src^='http://adserve.donanimhaber'").parent().remove();
  $("a[href='/m_94015223/tm.htm']").parent().parent().parent().parent().remove();
  $("img[src='http://icon.donanimhaber.com/avantajx_buton.png']").parent().remove();
  $("img[src='http://icon.donanimhaber.com/gfbuton.png']").parent().remove();
}

function pageFullyLoaded () {

}

function cakma_cerez(){
  // Pop-up banner iptal
  var zaman=new Date();
  var icerik=zaman.getHours() + '.' + zaman.getMinutes() + '.' + zaman.getDay();
  document.cookie = "PageBanner" + "=" + escape(icerik);
  var date = new Date();
  date.setDate(date.getDate()+1);
  document.cookie += ("; expires=" + date.toGMTString() + "; path=./");
  // Tüm sayfayı kaplayan banner iptal
  document.cookie = "PBanner" + "=1";
  document.cookie += ("; expires=" + date.toGMTString() + "; path=./");
}