Skip to content

Instantly share code, notes, and snippets.

Oria oriadam

  • Israel
Block or report user

Report or block oriadam

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@oriadam
oriadam / onandnow.jquery.js
Created Oct 20, 2019
add jQuery functionality `onAndNow` to add event listener and execute it once.
View onandnow.jquery.js
// call the handler now and on events
jQuery.fn.extend({
onAndNow: function(events, func) {
// TODO: Support the data object
return this.each(func).on(events, func);
}
});
View Facebook-Limiter.user.js
// ==UserScript==
// @name The Facebook Limiter
// @namespace http://tampermonkey.net/
// @version 4
// @description Helps in your goals to limit the use of youtube/facebook to 1 hour. Edited by Oria.
// @author theKidOfArcrania
// @include http*://www.facebook.com*
// ==/UserScript==
/* jshint -W097 */
'use strict';
@oriadam
oriadam / tremp.user.js
Last active Aug 26, 2019
tremp tel hai user script
View tremp.user.js
// ==UserScript==
// @name לוח טרמפים בלי חפשנים
// @namespace https://www.facebook.com
// @version 0.3
// @author You
// @match https://www.facebook.com/groups/198031415602/*
// @grant unsafeWindow
// ==/UserScript==
unsafeWindow.setInterval(function() {
@oriadam
oriadam / colorValues.js
Last active Oct 3, 2019
javascript convert any color to array of rgba values
View colorValues.js
// return array of [r,g,b,a] from any valid color. if failed returns undefined
function colorValues(color)
{
if (!color)
return;
if (color.toLowerCase() === 'transparent')
return [0, 0, 0, 0];
if (color[0] === '#')
{
if (color.length < 7)
View closest-test-for-jsperf.html
<!DOCTYPE html>
<html>
<head>
<style>
name {
display: inline-block;
width: 200px;
}
You can’t perform that action at this time.