Last active
March 5, 2020 22:28
-
-
Save codsane/356f4a2a5ffc96be2028821e97627226 to your computer and use it in GitHub Desktop.
Small tweaks for the Packix dev dashboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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