domain.com.au junk listing filter

This extension filters 'application received' and 'deposit taken' style listings from summary view on the Domain website.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         domain.com.au junk listing filter
// @namespace    http://github.com/jamesinc/
// @version      0.4
// @description  This extension filters 'application received' and 'deposit taken' style listings from summary view on the Domain website.
// @author       James Ducker
// @match        https://tampermonkey.net/index.php?version=3.11&ext=dhdg&updated=true
// @grant        none
// @include      http://www.domain.com.au/search/rent/*
// @include      https://www.domain.com.au/search/rent/*
// ==/UserScript==

(function($){
var isDickheadTitle = function ( title ) {
	var titles = [ "application received", "deposit taken", "leased", "application approved", "application recieved" ];
	
	for ( var i = 0; i < titles.length; i++ )
		if (title.toLowerCase().indexOf(titles[i]) !== -1 ) return true;

};

$(".description__title, .description__main, .pricepoint").each(function( ) {
	var el = $(this),
	    parent;
	    
	if ( isDickheadTitle(el.text()) ) {
		parent = el.parents("li.strap");
		
		parent.empty().css({
			"line-height": "50px",
			background: "#999",
			color: "white",
			"text-align": "center"
		});
		
		parent.text("Dick listing removed");
	}
});
}(jQuery));