View epuap-stylish.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@-moz-document url-prefix("https://epuap.gov.pl/") { | |
a:focus { | |
outline: 4px dashed darkorange; | |
outline-offset: -4px; | |
} | |
#headerTop .menu-right ul li { | |
padding: 0; | |
} | |
#headerTop .menu-right ul li a { |
View tvn24mobile.user.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name TVN24 mobile fixes | |
// @namespace pl.enux | |
// @version 0.0.1 | |
// @description Try to take over the world! As usual :-] | |
// @author Eccenux | |
// @match https://tvn24.pl/* | |
// @grant GM_addStyle | |
// ==/UserScript== |
View leafleat-marker.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="pl"> | |
<head> | |
<title>Leaflet test</title> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<!-- CSS --> | |
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.4/dist/leaflet.css" | |
integrity="sha512-puBpdR0798OZvTTbP4A8Ix/l+A4dHDD0DGqYW6RQ+9jxkRFclaxxQb/SJAWZfWAkuyeQUytO7+7N4QKrDh+drA==" |
View index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<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; |
View ReArray.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Helper class for testing match of an array of strings. | |
* | |
* @param {Array} strings Array of strings to be prepared and used in search. | |
* @param {String} regExpFlags Flags passed to RegExp (g/i/m). | |
*/ | |
class ReArray { | |
constructor(strings, regExpFlags, exactMatch) { | |
this._reArray = []; |
View InsertDate.gs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The onOpen function runs automatically when the Google Docs document is | |
* opened. | |
* | |
* More on `onOpen` and other trigger functions: https://developers.google.com/apps-script/guides/triggers/ | |
* More on `SpreadsheetApp` class: https://developers.google.com/apps-script/reference/spreadsheet/spreadsheet-app | |
*/ | |
function onOpen() { | |
// Add a menu with some items, some separators, and a sub-menu. | |
SpreadsheetApp.getUi().createMenu('Utilities') |
View snippet.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- with and without JS visibility and display --> | |
<style type="text/css"> | |
.withJSvisible {visibility: hidden} | |
.withJSdisplay {display:none} | |
</style> | |
<script type="text/javascript"> | |
document.write(String.fromCharCode(60),'style type="text/css"',String.fromCharCode(62), | |
' .withJSvisible {visibility:visible !important} ', | |
' .withoutJSvisible {visibility:hidden !important} ', | |
View logPreservation.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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 |
View localStorageSize.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)); |
NewerOlder