Skip to content

Instantly share code, notes, and snippets.

@RonnyO
RonnyO / 0_reuse_code.js
Created March 28, 2017 20:46
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@RonnyO
RonnyO / jquery.qDefer.min.js
Created April 15, 2012 11:24
Simply mimic the 'defer' attribute for inline scripts across all browsers (jQuery helper)
// http://bit.ly/qDefer
$(function(){$('script[type="text/javascript/defer"]').each(function(){$(this).clone().attr('type','').insertAfter(this)})});
@RonnyO
RonnyO / wa.me.bookmarklet.js
Last active September 10, 2022 07:52
Message any number on WhatsApp - Bookmarklet
javascript:void%20function(){let%20a=prompt(%22Type%20a%20phone%20number%22,%22+972%22);a=a.replace(/^0/,%22+972%22).replace(`${%22+972%22}0`,%22+972%22).replace(/-/g,%22%22),window.open(%22https://wa.me/%22+a,%22_blank%22)}();