Skip to content

Instantly share code, notes, and snippets.

@Eccenux
Eccenux / !a token.js
Last active August 9, 2024 09:33
Proxmox multitags
// First copy and setup this token
// Use any api call to fgind the correct value (also GET calls)
// (CSRFPreventionToken header)
reqToken = '6a...'
// then paste `ProxTagger.js`
@Eccenux
Eccenux / ReArray.js
Last active September 5, 2021 16:16
ViewFilter: Adds a simple filter input for any views (widgets/components).
/**
* 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 = [];
@Eccenux
Eccenux / InsertDate.gs
Created November 21, 2016 11:20
InsertDate Spreadsheet extenstion
/**
* 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')
@Eccenux
Eccenux / epuap-stylish.css
Last active June 13, 2020 12:00
bazowa dostępność epuap dla ON
@-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 {
@Eccenux
Eccenux / tvn24mobile.user.js
Created February 12, 2020 00:14
TVN24 user script
// ==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==
@Eccenux
Eccenux / iitc-plugin-keyhunt.user.js
Last active August 2, 2019 10:30
This is a uniques plugin fork which assists you in hunting keys from certain area. Effectively allows to tick a portal for which you have a key. Switch to "keyhunt" highlighter (included in this plugin) to show in red which keys you are still missing (in orange will be portals for which you haven't entered data yet). Use 'sync' plugin to share d…
// ==UserScript==
// @id iitc-plugin-keyhunt-keys@3ch01c
// @name IITC plugin: keyhunt-keys
// @category Misc
// @version 0.0.3.20160405.143600
// @namespace https://github.com/3ch01c/ingress-intel-total-conversion
// @description This is a plugin which assists you in hunting keys from certain area. Effectively allows to tick a portal for which you have a key. Switch to "keyhunt" highlighter (included in this plugin) to show in red which keys you are still missing (the portal for which you haven't entered data yet will be orange, other will be green). Use 'sync' plugin to share data between multiple browsers or desktop/mobile. Use keyhunt plugin with 'portals-list' plugin to quickly tick many portals on a list.
// @include https://www.ingress.com/intel*
// @include http://www.ingress.com/intel*
// @match https://www.ingress.com/intel*
@Eccenux
Eccenux / leafleat-marker.html
Created October 3, 2018 14:30
Leaflet embeded map with marker
<!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=="
<!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">
<!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;
@Eccenux
Eccenux / snippet.html
Created October 19, 2016 20:41
With/without JS styling
<!-- 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} ',