Greasy Fork镜像 还支持 简体中文。

domain.com.au junk listing filter

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

  1. // ==UserScript==
  2. // @name domain.com.au junk listing filter
  3. // @namespace http://github.com/jamesinc/
  4. // @version 0.4
  5. // @description This extension filters 'application received' and 'deposit taken' style listings from summary view on the Domain website.
  6. // @author James Ducker
  7. // @match https://tampermonkey.net/index.php?version=3.11&ext=dhdg&updated=true
  8. // @grant none
  9. // @include http://www.domain.com.au/search/rent/*
  10. // @include https://www.domain.com.au/search/rent/*
  11. // ==/UserScript==
  12.  
  13. (function($){
  14. var isDickheadTitle = function ( title ) {
  15. var titles = [ "application received", "deposit taken", "leased", "application approved", "application recieved" ];
  16. for ( var i = 0; i < titles.length; i++ )
  17. if (title.toLowerCase().indexOf(titles[i]) !== -1 ) return true;
  18.  
  19. };
  20.  
  21. $(".description__title, .description__main, .pricepoint").each(function( ) {
  22. var el = $(this),
  23. parent;
  24. if ( isDickheadTitle(el.text()) ) {
  25. parent = el.parents("li.strap");
  26. parent.empty().css({
  27. "line-height": "50px",
  28. background: "#999",
  29. color: "white",
  30. "text-align": "center"
  31. });
  32. parent.text("Dick listing removed");
  33. }
  34. });
  35. }(jQuery));

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址