Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am ayalan on github.
* I am aya (https://keybase.io/aya) on keybase.
* I have a public key whose fingerprint is RETU RN T HIS. PGP. GET_ FING ERPR INT( );
}
To claim this, I am signing this object:
@ayalan
ayalan / SUUMO Zap
Created August 13, 2015 01:16
Clean up SUUMO pages by adding this as a bookmark.
javascript:$(function(){
$(".headercontainer, .mylist, .l-contactbox-action, .list-type-changer, #contact_form, #siryouForm, .footer, #info_area, #wrapper #contents .toiawaseTitle, #wrapper #contents .toiawaseTitle + .inline_list").fadeOut();
$(".l-contactbox").eq(1).fadeOut();
$("#js-imageGallery-main li").fadeIn();
$("#wrapper").remove();
$("#wrapper").css("width", "100%");
$("form").remove();
$("#js-imageGallery-main li img").each(function(){
$(this).insertBefore("#js-imageGallery").css({"display":"inline-block","width":"30%","margin":"1%"});
});
@ayalan
ayalan / Check Dimensions
Last active November 18, 2015 07:38
Automator Applescript to show an image's dimensions in dialog. Useful when Spotlight/Finder refuses to show a PNG's dimensions on a networked volume.
on run {input, parameters}
tell application "Finder"
set theItems to selection
set myList to {}
repeat with itemRef in theItems
set datei to itemRef as string
set the_path to (POSIX path of (container of file datei as string))
set the_name to (name of file datei as string)
set the_file to (the_path & "'" & the_name & "'") as string
set shellcommand to ("sips " & the_file & " --getProperty pixelHeight") as string
@ayalan
ayalan / Leo Zap
Last active February 22, 2016 07:39
Clean up Leo Palace listings by adding this as a bookmark.
function() {
jQuery("#global, #header, #breadcrumb, #inquiry-form .points, .conTest5, .recommends-historys, .notices, #footCont, .outlines ul, #footer, .vacancys p.more, h2.heading ul.print, .conTest5, .maps .button, #btnTop").fadeOut();
jQuery(".outlines ul").fadeOut();
jQuery(".outlines table, .outlines .clearFix").css("width", "100%");
jQuery("[class^='inquiries20']").fadeOut();
jQuery("body").css("background", "white");
jQuery("h2.heading").css("font-size", "2em");
jQuery("h2.heading").removeClass("heading");
jQuery("h2 .sprite").removeClass("sprite");
jQuery("form [class^='image20'] .photo, form [class^='image20'] .gaikan, form [class^='image20'] .madori").remove();
@ayalan
ayalan / multizap
Last active February 22, 2016 09:50
Detect LeoPalace or SUUMO and zap them accordingly. Join lines and add as bookmark.
jQuery(document).ready(function () {
if(window.location.href.indexOf("leopalace") > -1) {
alert("Detected Leopalace. ZAP!");
jQuery("#global, #header, #breadcrumb, #inquiry-form .points, .conTest5, .recommends-historys, .notices, #footCont, .outlines ul, #footer, .vacancys, h2.heading ul.print, .conTest5, .maps, #btnTop").fadeOut();
jQuery(".outlines ul").fadeOut();
jQuery(".outlines table, .outlines .clearFix").css("width", "100%");
jQuery("[class^='inquiries20']").fadeOut();
jQuery("body").css("background", "white");
jQuery("h2.heading").css("font-size", "2em");
jQuery("h2.heading").removeClass("heading");