Skip to content

Instantly share code, notes, and snippets.

@splintor
splintor / poalim-hide-zeros.user.js
Last active March 27, 2024 09:04
Bank Hapoalim - Hide zero notifications
// ==UserScript==
// @name Poalim - Hide zero notifications
// @namespace http://tampermonkey.net/
// @version 2024-03-27
// @description Hide notifications red circle if it is 0
// @author Shmulik Flint
// @match https://login.bankhapoalim.co.il/ng-portals/rb/he/*
// @match https://www.bankhapoalim.co.il/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=co.il
// @downloadURL https://gist.github.com/splintor/ff2c36b0ecadfac01bf528ca21ea9694/raw
@splintor
splintor / AddMetasiteIdToWixSiteHeader.user.js
Last active November 8, 2022 16:28
Add metasiteId to Wix site header
// ==UserScript==
// @name Add metaSiteId to Wix sites header
// @namespace https://shmulikf.wixsite.com
// @version 0.1
// @description Make it easy to get the metasiteId of a Wix site
// @author Shmulik Flint
// @match https://*.wixsite.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=wixsite.com
// @downloadURL https://gist.githubusercontent.com/splintor/4c5191114b0a80d4309339635dd4b051/raw
// @updateURL https://gist.githubusercontent.com/splintor/4c5191114b0a80d4309339635dd4b051/raw
@splintor
splintor / WhatsAppRestoreSearchFocus.user.js
Last active July 5, 2022 14:10
WhatsApp - restore focus to search box
// ==UserScript==
// @name WhatsApp - restore focus to search box
// @namespace https://splintor.github.io/
// @version 0.2
// @description When user clears search box, focus moves to the first entry in the list. It's annoying!
// @author Shmulik Flint
// @match https://web.whatsapp.com/
// @icon https://www.google.com/s2/favicons?sz=64&domain=whatsapp.com
// @downloadURL https://gist.githubusercontent.com/splintor/c56f9ba873ce14d2efc1b6238993de8d/raw
// @updateURL https://gist.githubusercontent.com/splintor/c56f9ba873ce14d2efc1b6238993de8d/raw
@splintor
splintor / actionRecommendationsSchema.json
Last active July 26, 2022 07:01
APES - Action Recommendations Schema
{
"type": "object",
"additionalProperties": false,
"properties": {
"initiator": {
"type": "object",
"additionalProperties": false,
"required": [
"initiatorType",
"triggerSchemaParamMapping"
@splintor
splintor / AddCopyButtons.user.js
Last active June 23, 2022 06:38
Wix Dashboard - Add buttons to copy IDs
// ==UserScript==
// @name Wix Dashboard - Add buttons to copy IDs
// @namespace https://github.com/splintor/
// @version 0.3
// @description Make it easy to copy entities' UUID in Wix Dashboard
// @author You
// @match https://manage.wix.com/dashboard/*
// @match https://manage.editorx.com/dashboard/*
// @icon https://wix.com/favicon.ico
// @downloadURL https://gist.githubusercontent.com/splintor/6e6c459e0f5e0f621d0b32fa5807fbd8/raw
@splintor
splintor / AddFalconLink.user.js
Last active May 26, 2022 14:28
TeamCity - Add direct link to Falcon tab
@splintor
splintor / JIRA-Meetinator.user.js
Last active June 9, 2022 11:23
JIRA Meetinator
// ==UserScript==
// @name JIRA Meetinator
// @namespace http://shmulikf.wix.com/
// @version 1.0.6
// @description Improve team meeting experience in Jira: Enable randomly selecting a team member, set time limit for each team member, celebrate completion, show time statistics.
// @author Shmulik Flint
// @match https://jira.wixpress.com/secure/RapidBoard.jspa*
// @icon https://jira.wixpress.com/s/-8bjowq/813009/g345zt/_/images/fav-jsw.png
// @downloadURL https://gist.githubusercontent.com/splintor/f10c20926335324c6ff8e007439ed64c/raw
// @updateURL https://gist.githubusercontent.com/splintor/f10c20926335324c6ff8e007439ed64c/raw
@splintor
splintor / getFirebaseToken.spec.ts
Last active March 18, 2022 06:42
getFirebaseToken test on Firebase 8
import firebase from 'firebase/app';
import { getFirebaseToken } from './getFirebaseToken';
describe('getFirebaseToken', () => {
beforeAll(() => {
jest.spyOn(firebase, 'initializeApp').mockImplementation(jest.fn());
jest.spyOn(firebase, 'messaging').mockReturnValue({ getToken: jest.fn() });
})
it('should call firebase.initializeAp and firebase.messaging.getToken', async () => {
@splintor
splintor / getFirebaseToken.ts
Last active March 17, 2022 19:58
getToken function with Firebase 8
import firebase from 'firebase/app';
import 'firebase/messaging';
import { getConfig, getPublicKey, registerServiceWorker } from './firebase';
export async function getFirebaseToken() {
firebase.initializeApp(getConfig());
return firebase.messaging().getToken({
vapidKey: getPublicKey(),
serviceWorkerRegistration: await registerServiceWorker(),
});
@splintor
splintor / GitHubContinueInSSO.user.js
Last active May 8, 2022 08:38
GitHub - Continue in SSO
// ==UserScript==
// @name JIRA Meetinator
// @namespace http://shmulikf.wix.com/
// @version 0.15
// @description Improve team meeting experience in Jira: Enable randomly selecting a team member, set time limit for each team member, celebrate completion.
// @author Shmulik Flint
// @match https://jira.wixpress.com/secure/RapidBoard.jspa*
// @icon https://jira.wixpress.com/s/-8bjowq/813009/g345zt/_/images/fav-jsw.png
// @downloadURL https://gist.githubusercontent.com/splintor/f10c20926335324c6ff8e007439ed64c/raw/JIRA-Meetinator.user.js
// @updateURL https://gist.githubusercontent.com/splintor/f10c20926335324c6ff8e007439ed64c/raw/JIRA-Meetinator.user.js