Last active
April 23, 2025 02:03
-
-
Save thepeopleseason/5aa4f2cbb5dfc8c5c3fb36bdaac33673 to your computer and use it in GitHub Desktop.
Autoselect Page/Card Size on https://imkyle4815.com/printTool
This file contains hidden or 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 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