Skip to content

Instantly share code, notes, and snippets.

Nux Eccenux

Block or report user

Report or block Eccenux

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
View tvn24mobile.user.js
// ==UserScript==
// @name TVN24 mobile fixes
// @namespace pl.enux
// @version 0.0.1
// @description Try to take over the world! As usual :-]
// @author Eccenux
// @match*
// @grant GM_addStyle
// ==/UserScript==
Eccenux / leafleat-marker.html
Created Oct 3, 2018
Leaflet embeded map with marker
View leafleat-marker.html
<!DOCTYPE html>
<html lang="pl">
<title>Leaflet test</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- CSS -->
<link rel="stylesheet" href=""
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<meta name="description"
content="execCommand and undo testing">
<style id="jsbin-css">
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
.editarea {
border: 1px solid black;
background: white;
Eccenux / ViewFilter.js
Created Jun 20, 2017
Adds a simple filter input for any views (widgets).
View ViewFilter.js
* Adds a simple filter input for any views (widgets).
* @author Maciej "Nux" Jaros
* Basic usage example:
* <pre>
// define view filter (do this at any time)
var listFilter = new ViewFilter("#filter-controls-container", "#list-container li");
// on load create controls and pre-parse items
Eccenux /
Created Nov 21, 2016
InsertDate Spreadsheet extenstion
* The onOpen function runs automatically when the Google Docs document is
* opened.
* More on `onOpen` and other trigger functions:
* More on `SpreadsheetApp` class:
function onOpen() {
// Add a menu with some items, some separators, and a sub-menu.
Eccenux / snippet.html
Created Oct 19, 2016
With/without JS styling
View snippet.html
<!-- with and without JS visibility and display -->
<style type="text/css">
.withJSvisible {visibility: hidden}
.withJSdisplay {display:none}
<script type="text/javascript">
document.write(String.fromCharCode(60),'style type="text/css"',String.fromCharCode(62),
' .withJSvisible {visibility:visible !important} ',
' .withoutJSvisible {visibility:hidden !important} ',
Eccenux / logPreservation.js
Last active Oct 11, 2016
Utility for console logs preservation.
View logPreservation.js
* Utility for console logs preservation.
* @example Enable logs preservation for next page load:
* logPreservation.enable();
* @example Dump, but keep log entries for another dump:
* logPreservation.dump(true);
* @author Maciej Nux Jaros
Eccenux / localStorageSize.js
Created Apr 1, 2016
localStorage size check (obviously it only works for current domain)
View localStorageSize.js
var keys = Object.keys(localStorage);
var total = 0;
for (var i in keys) {
var key = keys[i];
var size = localStorage[key].length;
console.log(key, ' size ', getReadableFileSizeString(size));
total += size;
console.log('\n-------\ntotal size ', getReadableFileSizeString(total));
Eccenux / DataCache.js
Created Apr 1, 2016
Class providing caching for data objects (e.g. translations).
View DataCache.js
* Class providing caching for data objects.
* It's assumed that the data comes from some remote service (otherwise there is no point in caching).
* @param {String} dataKey Globally(!) unique key to store data.
* @param {Storage} storageService Storage service that should have two functions:
* storageService.set(key, value) -- set data
* storageService.get(key) -- get data
* Will attempt fallback to `$.jStorage` if not secified.
You can’t perform that action at this time.