Last active
August 29, 2015 14:24
-
-
Save DioVayne/d32857424e7b54aae1c5 to your computer and use it in GitHub Desktop.
MarktplaatsCleaner.user.js
This file contains hidden or 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
// ==UserScript== | |
// @name Marktplaats Cleaner | |
// @namespace http://diovayne.nl/ | |
// @version 0.2 | |
// @description Remove commercial adverts on marktplaats | |
// @author Dio Vayne | |
// @match http://www.marktplaats.nl/* | |
// @grant none | |
// ==/UserScript== | |
$('.location-name:contains("Bezorgt in"), .seller-link, .mp-listing-attributes:contains("Nieuw")').parents('article').addClass('dioHidden').hide(); | |
$('.bottom-listing, #bottom-listings-divider, #banner-top, .horizontalRichSnippet').addClass('dioHidden').hide(); | |
$('#header-column-left').append('<li><a class="dioShow">show shit</a></li><li><a class="dioHide">hide shit</a></li>'); | |
$('.dioShow').click(function(){ | |
$('.dioHidden').show(); | |
}); | |
$('.dioHide').click(function(){ | |
$('.dioHidden').hide(); | |
}); | |
$('body').prepend('<div id="bigImg" style="position:fixed;left:0;top:0;max-width:100%;z-index:99999;display:none"></div>'); | |
$('.listing-image > img').bind('contextmenu',function(){ | |
var vT = $(this); | |
var vImg = vT.attr('src'); | |
var vBigImg = vImg.replace('$_82.JPG','$_85.JPG'); | |
$('#bigImg').find('img').remove(); | |
$('#bigImg').prepend('<img src="'+vBigImg+'" />').fadeIn(function(){ | |
$(this).bind('click mouseleave',function(){ | |
$(this).find('img').remove(); | |
}) | |
});; | |
return false; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment