Skip to content

Instantly share code, notes, and snippets.

View ParoTheParrot's full-sized avatar
🤠

Paro The Parrot ParoTheParrot

🤠
View GitHub Profile
@ParoTheParrot
ParoTheParrot / TWC_MessageFadeOut
Last active October 27, 2020 15:03
TWC_Message FadeOut #twc
config.options.txtFadeTimer = 5000; // 5 seconds
var displayMessageFADEOUT=displayMessage;
displayMessage=function(text,linkText)
{
displayMessageFADEOUT.apply(this, arguments);
ti=config.options.txtFadeTimer;
if(ti>0)setTimeout(clearMessage,ti);
}
@ParoTheParrot
ParoTheParrot / tw_StyleSheet_tabs
Last active October 27, 2020 15:18
StyweSheet #twc
.viewer .tabSelected,
.viewer .tabContents { background-color: [[ColorPalette::Background]]; } /* use inherit? returns "border-bottom" to tabSelected (actually it is __) for some reason */
.viewer .tabSelected:hover { color: inherit; } /* inconsistent: either switch pointer back to ~normal and make sure it doesn't do a thing or ... */
.tabset { padding-left: 0; }
.tab {
display: inline-block;
white-space: pre-wrap;
position: relative;
bottom: -1px;
@ParoTheParrot
ParoTheParrot / incidence.js
Last active August 10, 2023 07:25 — forked from kevinkub/incidence.js
COVID-19 Inzidenz-Widget für iOS innerhalb Deutschlands 🇩🇪 #corona #scriptabley
// Licence: Robert Koch-Institut (RKI), dl-de/by-2-0
const apiUrl = (location) => `https://services7.arcgis.com/mOBPykOjAyBO2ZKk/arcgis/rest/services/RKI_Landkreisdaten/FeatureServer/0/query?where=1%3D1&outFields=GEN,cases7_per_100k&geometry=${location.longitude.toFixed(3)}%2C${location.latitude.toFixed(3)}&geometryType=esriGeometryPoint&inSR=4326&spatialRel=esriSpatialRelWithin&returnGeometry=false&outSR=4326&f=json`
const apiUrlStates = 'https://services7.arcgis.com/mOBPykOjAyBO2ZKk/arcgis/rest/services/Coronaf%E4lle_in_den_Bundesl%E4ndern/FeatureServer/0/query?where=1%3D1&outFields=cases7_bl_per_100k&returnGeometry=false&outSR=4326&f=json'
const widget = await createWidget()
if (!config.runsInWidget) {
await widget.presentSmall()
}
Script.setWidget(widget)
Script.complete()
@ParoTheParrot
ParoTheParrot / dm-toilet-paper.js
Last active August 10, 2023 07:24 — forked from marco79cgn/dm-toilet-paper.js
Scriptable iOS widget that shows the amount of toilet paper which is available at your next dm drugstore #scriptable #archiv #corona
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: deep-blue; icon-glyph: magic;
let storeId = 2612
// HH Steinstraße
let country
let param = args.widgetParameter
if (param != null && param.length > 0) {
storeId = param
}
@ParoTheParrot
ParoTheParrot / syntax.php
Last active October 27, 2020 17:00
Countdown for Dokuwiki. With corrections! #dokuwiki ( (https://www.dokuwiki.org/plugin:countdown))
<?php
/**
* Plugin Countdown: Displays countdown from a specific date
* Syntax: <COUNTDOWN:date|description>
* date has to be formatted as GNU date (see strtotime)
* e.g. <COUNTDOWN:yyyy-mm-dd|description>
* <COUNTDOWN:mm/dd/yyy|description>
*
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Ekkart Kleinod <ekkart [at] ekkart.de> (V 2.x)
@ParoTheParrot
ParoTheParrot / CalenderReminder.js
Last active October 27, 2020 15:02
Calendar and reminder for scriptable #scriptable
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: red; icon-glyph: calendar-alt;
// NOTE: this currently only works in beta because it takes advantage of the widgetStack and URL scheme for on-tap.
// TEST MODE: run the first time with it true to get access to your calendars; you can also run the sample Scriptable overdue Reminders script to get access to your reminders
const TEST_MODE = false
// CALENDAR/REMINDERS SETUP: calendar and reminder names should match what's shown in the Calendar and Reminder apps
@ParoTheParrot
ParoTheParrot / dawn2dusk.js
Last active October 27, 2020 15:02 — forked from HendrikRunte/dawn2dusk.js
Scriptable.app widget displaying the exact time of today's sunrise and sunset. Which comes in handy in the wintertime … #scriptable
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
// icon-color: orange; icon-glyph: sun-2;
///////////////////////////////////////////////////////////////////////
// dawn2dusk.js
// Take it and have fun.
// Hendrik Runte, Oct 24, 2020.
///////////////////////////////////////////////////////////////////////
// Extending the JavaScritp Date object.
@ParoTheParrot
ParoTheParrot / dm-toilet-paper-wheat-flour.js
Last active August 10, 2023 07:24 — forked from marco79cgn/dm-toilet-paper-wheat-flour.js
Scriptable iOS widget that shows the amount of both toilet paper and wheat flour which is available at your next dm drugstore #scriptable #corona
// Wheat flour icon made by Freepik from www.flaticon.com and modified by achisto
// Toilet paper icon made by boettges
let country = 'de' // replace with 'at' for shops in Austria
let storeId = 251
let param = args.widgetParameter
if (param != null && param.length > 0) {
storeId = param
}
@ParoTheParrot
ParoTheParrot / gist:7b2902916aa4333ecdef0428800d97cd
Created July 14, 2021 14:47
Hide address-bar AND Tabs unless mouse over #firefox
/* Hide address-bar AND Tabs unless mouse over https://www.reddit.com/r/FirefoxCSS/comments/hyqj5y/hide_addressbar_and_tabs_unless_mouse_over/ */
#nav-bar {
/* customize this value. */
--navbar-margin: -32px;
margin-top: 0;
margin-bottom: var(--navbar-margin);
z-index: -100;
}
#navigator-toolbox:focus-within > #nav-bar,
@ParoTheParrot
ParoTheParrot / statusbar_color.css
Last active September 21, 2021 15:29
statusbar_color.css #firefox
/* Github: https://github.com/aris-t2/customcssforfx /statusbar_color.css **/
:root {
/* --statusbar_background_color: silver; */
--statusbar_font_color: navy;
}
:-moz-any(statuspanel,#statuspanel) {
-moz-appearance: none !important;
background: unset !important;
border: 0 !important;
}