Skip to content

Instantly share code, notes, and snippets.

View neilio's full-sized avatar

Neil Lee neilio

  • Toronto, Canada
View GitHub Profile
@neilio
neilio / kagi-google.css
Last active April 13, 2024 00:36
Kagi Google Style
.theme_moon_dark :root {
--m_sri_gap_color: #202124 !important;
}
.theme_moon_dark {
--background-color: #202124 !important;
}
.theme_moon_dark body {
background-color: #202124 !important;
@neilio
neilio / switch-apps.applescript
Created May 4, 2022 13:30
Set up laptop for work
#!/usr/bin/osascript
# Required parameters:
# @raycast.schemaVersion 1
# @raycast.title Switch to FreshBooks
# @raycast.mode silent
# Optional parameters:
# @raycast.icon 🤖
@neilio
neilio / gist:c6825f1a120e54586a8d73cf9b5b2a36
Last active December 6, 2020 17:24
Multi configuration
{
"tabs": [
{
"title": "Gmail",
"url": "https://mail.google.com/",
"customJS": [
"file:///Users/neilio/Dropbox/Documents/Software/Multi/gapps.js"
]
},
{
@neilio
neilio / import-chrome.js
Last active April 28, 2020 19:26
Import Chrome search keywords
(async function importSEs() {
/* Auxiliary function to open a file selection dialog */
function selectFileToRead() {
return new Promise((resolve) => {
const input = document.createElement('input');
input.setAttribute('type', 'file');
input.addEventListener('change', (e) => {
resolve(e.target.files[0]);
}, false);
input.click();
@neilio
neilio / chrome-export.js
Last active April 28, 2020 19:26
Export Chrome search keywords
(function exportSEs() {
/* Auxiliary function to download a file with the exported data */
function downloadData(filename, data) {
const file = new File([data], { type: 'text/json' });
const elem = document.createElement('a');
elem.href = URL.createObjectURL(file);
elem.download = filename;
elem.click();
}
@neilio
neilio / dasFauxGermanhausen
Last active June 3, 2018 15:03
Fast-and-dirty bookmarklet that turns all of a webpage's text into fake german to test for layout breakage.
javascript:(function()%7Bvar%20prefixes=%5B'','glocken','das','borfa','maushe','uber'%5D,suffixes=%5B'','hausen','%20die%20vander','gleuten','noshan','flagellan','mek','dak','en%20das','ga'%5D,xPathResult=document.evaluate('.//text()%5Bnormalize-space(.)!=%5C'%5C'%5D',document.body,null,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null),i,textNode,cnt,out,j,pfx,sfx;for(i=0,l=xPathResult.snapshotLength;i%3Cl;i++)%7BtextNode=xPathResult.snapshotItem(i);if(textNode.parentNode.nodeName.toLowerCase()=='script'%7C%7CtextNode.tagName=='style')continue;cnt=textNode.data.split(/%5Cs/g);out=%5B%5D;for(j=0;j%3Ccnt.length;j++)%7Bif(cnt%5Bj%5D.replace(/%5B%5Cs%5D/g,'')=='')continue;pfx=(!Math.floor(Math.random()*10))?'':prefixes%5BMath.floor(Math.random()*prefixes.length)%5D;sfx=(!Math.floor(Math.random()*10))?'':suffixes%5BMath.floor(Math.random()*suffixes.length)%5D;out.push(pfx+cnt%5Bj%5D+sfx);%7DtextNode.data='%20'+out.join('%20')+'%20';%7D%7D)();

Keybase proof

I hereby claim:

  • I am neilio on github.
  • I am nblee (https://keybase.io/nblee) on keybase.
  • I have a public key whose fingerprint is 7410 64C9 2039 2053 2BFC 7C30 391C 7AD6 75CF 6B9C

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am neilio on github.
  • I am neillee (https://keybase.io/neillee) on keybase.
  • I have a public key ASB1ONqPzj_idaKSpHtrcQ1Elm9IEd7BulCppi0K979n_Qo

To claim this, I am signing this object:

@neilio
neilio / facebook-messenger.css
Created September 13, 2015 00:25
CSS for Facebook Messenger Fluid app
._4sp8 { min-width: 200px !important; }
._30yy._4kzv { display: none !important; }
.uiPopover._6a._6b {
display: block !important;
}
._4kzu { display: block !important; }
.da-slider{
width: 100%;
height: 450px;
position: relative;
margin: 0 auto;
overflow: hidden;
background: transparent url(../img/slider-ny.jpg) repeat 0% 0%;
border-bottom: 5px solid #f6f6f6 !important;
-webkit-box-shadow: inset 0px 0px 5px rgba(0,0,0,.25);
-moz-box-shadow: inset 0px 0px 5px rgba(0,0,0,.25);