Skip to content

Instantly share code, notes, and snippets.

💭
☕︎

Elad Karako eladkarako

💭
☕︎
Block or report user

Report or block eladkarako

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
@eladkarako
eladkarako / background.js
Created Jul 7, 2019
9inchurl.com extension parts [JavaScript][Web-Extension]
View background.js
//Add context menu to links
var title = "Simple URL Extender";
var id = chrome.contextMenus.create({"title": title, "contexts":["link"], "onclick": onExtendClick});
//callback for when user clicks "Simple URL Extender" in context menu
function onExtendClick(info, tab) {
chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
chrome.tabs.sendMessage(tabs[0].id, {getURL: true});
});
}
@eladkarako
eladkarako / collect different A objects (links) with the same HREF attribute.js
Created Jul 7, 2019
[JavaScript] collect different A objects (links) with the same HREF attribute.js
View collect different A objects (links) with the same HREF attribute.js
@eladkarako
eladkarako / dirty_functions_generation__aka_dead_code.js
Created Jul 7, 2019
[JavaScript] dirty_functions_generation__aka_dead_code.js
View dirty_functions_generation__aka_dead_code.js
var store = {}
, names = ["a1g3r_a", "a10ha", "ah0y", "am_wa1", "amd0ra", "amg01a", "amg3r", "amgu_1a", "amt_pat_0m", "arg3ma", "art_c13", "arula", "arw3m_a", "austra", "aw3", "az3rlam", "c0mfus_0m", "c0mt3wpt", "c0mta_m3r", "c0mtw3mt", "c0s", "c0wl_a", "c10th3s", "caw3r0m", "cawl0d_a", "ch_13", "ch_ma", "chad", "cr0a", "d0g", "d3spa_r", "d_sap0_mtw3mt", "dh31_a", "dj_l0ut_", "drug", "f0d", "f0pt_sw", "f0wam", "f1_3cht3mst3_m", "f1_d", "f1_l3r_a", "f1a0s", "f1ust", "f3csy", "f3cuad0r", "f3mvy", "f3r3a", "f3st0m_a", "f3th_a", "f3xc_t", "f10mg", "f10v3", "f13lam", "f13s0", "fr_ght", "fru_t", "furm_tur3", "fury", "g30rg_a", "g_lrar", "gal0m", "gr3ma", "gr3md", "gr3t_mgs", "gratud3", "gu3rms3y", "gu_1t", "gu_m3a-l_sau", "gu_m3a", "guad310up3", "guaw", "guya", "h0r", "h01a", "h3y", "h013", "h310", "hap_m3s", "hatr3d", "humg3r", "huw_ty", "j0l", "j0rdam", "j0y", "j3y", "jam", "k_lat_", "khstam", "kuwa_t", "kyzstam", "l0dy", "l0r3d0w", "l0tswa", "l01_a", "l1_s", "l3m", "l3rwuda", "l3w_1d3mt", "l31_z3", "l31arus",
@eladkarako
eladkarako / draw a DIV on the page according to the mouse movement - with "SAVING" of the last state (div size) on the next mousedown - complete web-page.html
Created Jun 21, 2019
draw a DIV on the page according to the mouse movement - with "SAVING" of the last state (div size) on the next mousedown - complete web-page.html
View draw a DIV on the page according to the mouse movement - with "SAVING" of the last state (div size) on the next mousedown - complete web-page.html
<!doctype html>
<html itemscope="" itemtype="http://schema.org/WebPage" dir="ltr" lang="en-US" language="English" charset="UTF-8" encoding="UTF-8">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<meta name="fragment" content="!"/>
<meta name="viewport" content="height=device-height,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no,width=device-width,minimal-ui"/>
<style type="text/css" media="all">
/*<![CDATA[*/
@charset "UTF-8";
@eladkarako
eladkarako / draw a DIV on the page according to the mouse movement - complete web-page.html
Created Jun 21, 2019
draw a DIV on the page according to the mouse movement - complete web-page.html
View draw a DIV on the page according to the mouse movement - complete web-page.html
<!doctype html>
<html itemscope="" itemtype="http://schema.org/WebPage" dir="ltr" lang="en-US" language="English" charset="UTF-8" encoding="UTF-8">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<meta name="fragment" content="!"/>
<meta name="viewport" content="height=device-height,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no,width=device-width,minimal-ui"/>
<style type="text/css" media="all">
/*<![CDATA[*/
@charset "UTF-8";
View multiline.js
function multiline(s){return s.toString().replace(/\r/g,"##R##").replace(/\n/g,"##N##").replace(/^.*\/\*\+(.*)\+\*\/.*$/, "$1").replace(/##R##/g,"\r").replace(/##N##/g,"\n");}
@eladkarako
eladkarako / easy_json_beautifier.js
Created Mar 21, 2019
[JavaScript] Easy JSON beautifier - with optionally using comma-first syntax. can handle any complexity of object/array combinations.
View easy_json_beautifier.js
JSON.stringify(YOUR_OBJECT, null, 2)
.replace(/,\n /gm, "\n ,").replace(/ *(,(\ +))/gm, "$2,") //comma-first.
;
@eladkarako
eladkarako / google.co.il_opensearch_modified_extended_example.xml
Last active Mar 20, 2019
google.co.il_opensearch_modified_extended_example.xml
View google.co.il_opensearch_modified_extended_example.xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░ - Serve this file as UTF-8. ░
░ - Serve this file as Windows-EOL (CR+LF). ░
░ - Serve this file use mimetype: ░
░ application/opensearchdescription+xml ░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ -->
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"
xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<!--
@eladkarako
eladkarako / Fixing Addon-Sign Problem With The Description - JWT iat (issued at time) is invalid. Make sure your system clock is synchronized with something like TLSdate.md
Created Mar 11, 2019
Fixing Addon-Sign Problem With The Description - JWT iat (issued at time) is invalid. Make sure your system clock is synchronized with something like TLSdate.
View Fixing Addon-Sign Problem With The Description - JWT iat (issued at time) is invalid. Make sure your system clock is synchronized with something like TLSdate.md

Windows users needs to sync the time.

Right click the clock on your start-menu toolbar, and select Adjust data/time,
Go to the last-tab - Internet Time, and click Change settings... button,
Check ON the little-checkbox and click the Update now button.


@eladkarako
eladkarako / upgrader.py
Created Mar 8, 2019
upgrader.py - upgrade all your pip packages one by one.
View upgrader.py
import pkg_resources
from subprocess import call
packages = [dist.project_name for dist in pkg_resources.working_set]
call("pip install --upgrade " + ' '.join(packages), shell=True)
You can’t perform that action at this time.