Skip to content

Instantly share code, notes, and snippets.

@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
@splintor
splintor / config.json
Last active November 12, 2021 13:50
Config for PING-2161
{
"channelDefinitions":[
{
"channel":"EMAIL",
"shoutoutApi":{
},
"disabled":false
},
{
"channel":"MOBILE",
@splintor
splintor / github_desktop_make_branch_selection_wider.js
Last active August 25, 2021 10:32
Make GitHub Desktop branch selection wider
[
'#desktop-app-toolbar .toolbar-dropdown.branch-button',
'.branches-container',
'.branches-container .branches-list',
].forEach(s => Array.from(document.styleSheets[0].cssRules)
.find(r => r.selectorText === s)
.style.width = '600px')
// ==UserScript==
// @name Planet of Apes - Add vertical name
// @namespace http://tampermonkey.net/
// @version 0.1
// @author Shmulik Flint
// @match https://manage.wix.com/dashboard/*/preinstall-automations
// @icon https://www.google.com/s2/favicons?domain=wix.com
// @downloadURL https://gist.github.com/splintor/1ba478e534060b77ca5b3c8c9acb7bec/raw
// @updateURL https://gist.github.com/splintor/1ba478e534060b77ca5b3c8c9acb7bec/raw
// ==/UserScript==
@splintor
splintor / auto-close-zoom-window.user.js
Last active March 11, 2021 15:18
Zoom - auto-close browser window
// ==UserScript==
// @name Zoom - auto-close browser window
// @version 0.2
// @description Auto-close Zoom browser window after 15 seconds
// @author Shmulik Flint
// @match https://wix.zoom.us/*
// @match https://zoom.us/postattendee*
// @downloadURL https://gist.github.com/splintor/fc4e357f7c7b0dc2701dd12101fd1a42/raw
// @updateURL https://gist.github.com/splintor/fc4e357f7c7b0dc2701dd12101fd1a42/raw
// @icon https://wix.zoom.us/zoom.ico
@splintor
splintor / teamcity-auto-login.user.js
Last active January 11, 2021 16:15
TeamCity auto-login
// ==UserScript==
// @name TeamCity Auto-login
// @version 0.1
// @description Click the "Login via oAuth" button when TeamCity is not connected
// @author Shmulik Flint
// @match http://*tc.dev.wixpress.com/login.html
// @downloadURL https://gist.github.com/splintor/6a2b8b4bc81210fc33483a423fc90bbf/raw
// @updateURL https://gist.github.com/splintor/6a2b8b4bc81210fc33483a423fc90bbf/raw
// @icon http://tc.dev.wixpress.com/favicon.ico
// ==/UserScript==
@splintor
splintor / JIRAHighlightCurrentUser.user.js
Last active January 3, 2021 13:02
JIRA - Highlight tickets assigned to current user
// ==UserScript==
// @name JIRA - Highlight tickets assigned to current user
// @namespace https://github.com/splintor/
// @version 0.2
// @description Make tickets assigned to current user more prominent
// @author You
// @match https://jira.wixpress.com/*
// @icon https://jira.wixpress.com/s/axu8xe/803004/0ce41cd00ea738d648224bf4342ed953/_/images/fav-jsw.png
// @downloadURL https://gist.github.com/splintor/a8b875e3778744c6b679b2f7db289588/raw
// @updateURL https://gist.github.com/splintor/a8b875e3778744c6b679b2f7db289588/raw