Skip to content

Instantly share code, notes, and snippets.

@codsane
Last active March 5, 2020 22:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codsane/356f4a2a5ffc96be2028821e97627226 to your computer and use it in GitHub Desktop.
Save codsane/356f4a2a5ffc96be2028821e97627226 to your computer and use it in GitHub Desktop.
Small tweaks for the Packix dev dashboard
// ==UserScript==
// @name PackixTweaks
// @description Small tweaks for the Packix dev dashboard
// @author codsane
// @match *://developer.packix.com/#/*/refund-requests
// @icon https://www.google.com/s2/favicons?domain=repo.packix.com
// @grant none
// @require https://code.jquery.com/jquery-3.4.1.min.js
// @require https://gist.githubusercontent.com/codsane/66142ceb3f8b03546c2980be78551275/raw/9c97aa67ff9c5d56be34a55ad6c18a314e5eb548/waitForKeyElements.js
// ==/UserScript==
console.log('[PackixTweaks] Loaded');
// Move notification to the bottom right so it doesnt block the decide button/refund modal
function moveToast(e) {
e.toggleClass('toast-top-right toast-bottom-right');
e.attr('ng-reflect-ng-class', 'toast-bottom-right');
}
// waitForKeyElements - https://stackoverflow.com/a/12899331/12612256
waitForKeyElements("div#toast-container", moveToast);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment