Greasy Fork镜像 还支持 简体中文。

Makerworld "Copy Code" Highlighter

This script highlights a gift card by changing its background to light green when you click the "Copy Code" button, helping you easily track which codes you've already copied.

  1. // ==UserScript==
  2. // @name Makerworld "Copy Code" Highlighter
  3. // @namespace http://tampermonkey.net/
  4. // @version 2025-02-24
  5. // @description This script highlights a gift card by changing its background to light green when you click the "Copy Code" button, helping you easily track which codes you've already copied.
  6. // @author AU3D
  7. // @match https://makerworld.com/*/points?type=RedeemHistory
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=makerworld.com
  9. // @license MIT
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. document.addEventListener('click', function (event) {
  17. if (event.target.classList.contains('mw-css-q2z5h0')) {
  18. var nextElement = event.target.nextElementSibling;
  19. if (nextElement && nextElement.classList.contains('MuiBox-root') && nextElement.classList.contains('mw-css-0')) {
  20. var row = event.target.closest('.mw-css-12lckp3');
  21. if (row) {
  22. row.style.backgroundColor = '#eefdec';
  23. }
  24. }
  25. }
  26. });
  27. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址