I wanted to share a small script I use to streamline the process of copying multiple gift card codes. Since I store all my gift card codes in an Excel file, switching between the Makerworld website and the spreadsheet can be tricky. There’s no built-in indication of which codes have already been copied, making it easy to lose track.
With this script enabled, clicking the “Copy Code” button highlights the corresponding gift card tile in light green, visually marking it as copied. This makes it much easier to keep track of which codes have already been transferred:
Note: The highlight is temporary and will reset when you refresh the page or navigate away. The script should support multiple languages on the site, though it has only been tested in English.
Installation
This script runs via the Tampermonkey browser extension, which is available for all major browsers.
You can install it directly from Greasy Fork:
Makerworld Copy Code Highlighter
Alternatively, you can manually insert the following source code into a new Tampermonkey script:
(function() {
'use strict';
document.addEventListener('click', function (event) {
if (event.target.classList.contains('mw-css-q2z5h0')) {
var nextElement = event.target.nextElementSibling;
if (nextElement && nextElement.classList.contains('MuiBox-root') && nextElement.classList.contains('mw-css-0')) {
var row = event.target.closest('.mw-css-12lckp3');
if (row) {
row.style.backgroundColor = '#eefdec';
}
}
}
});
})();
Ensure that the match parameter is set to the correct URL:
// @match https://makerworld.com/*/points?type=RedeemHistory
or for English only:
// @match https://makerworld.com/en/points?type=RedeemHistory
2 posts - 2 participants
