Skip to content

Instantly share code, notes, and snippets.

@thepeopleseason
Last active April 23, 2025 02:03
Show Gist options
  • Save thepeopleseason/5aa4f2cbb5dfc8c5c3fb36bdaac33673 to your computer and use it in GitHub Desktop.
Save thepeopleseason/5aa4f2cbb5dfc8c5c3fb36bdaac33673 to your computer and use it in GitHub Desktop.
Autoselect Page/Card Size on https://imkyle4815.com/printTool
// ==UserScript==
// @name Autoselect Page/Card Size
// @namespace http://tampermonkey.net/
// @version 2025-04-07
// @description Autoselect page and card size on the print tool
// @author James Hsiao
// @match https://imkyle4815.com/printTool
// @icon https://www.google.com/s2/favicons?sz=64&domain=imkyle4815.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
console.log('Autoselect Page/Card size');
window.addEventListener('load', function() {// ==UserScript==
// @name Autoselect Page/Card Size
// @namespace http://tampermonkey.net/
// @version 2025-04-07
// @description Autoselect page and card size on the print tool
// @author James Hsiao
// @match https://imkyle4815.com/printTool
// @icon https://www.google.com/s2/favicons?sz=64&domain=imkyle4815.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
console.log('Autoselect Page/Card size');
window.addEventListener('load', function() {
document.getElementById('cardWidth-input').value="1488";
document.getElementById('cardHeight-input').value="2079"; // Layout 63x88mm cards
document.getElementsByTagName('select')[0].value="8.5,11"; // Letter Paper
document.getElementsByTagName('select')[1].value="2.48031,3.46457"; // Poker Sized cards
});
})();
document.getElementsByTagName('select')[0].value="8.5,11";
document.getElementsByTagName('select')[1].value="2.48031,3.46457";
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment