Skip to content

Instantly share code, notes, and snippets.

@fractile81
fractile81 / toowide.js
Last active August 29, 2015 14:17
Select any visible elements wider than the body, or those that lie outside the right-side of the viewport. Requires jQuery, and meant for use in a browser console.
(function($){var w=$(window).width();$('body').find('*:visible').each(function(){var x=$(this).width();if(x>w||$(this).offset().left+x>w){console.log(this);}});})(jQuery);
@SeanJA
SeanJA / 1.json
Created June 18, 2012 04:17
a simple json file migration for the drupal 7 (maybe 6?) migrate module
{
"title": "this is a title",
"content": "this is a body",
"date": "2009-01-01",
"url":"http://oldsite.com/123/test",
"image": "test.jpg",
"id": 1
}