bs复制key

try to take over the world!

  1. // ==UserScript==
  2. // @name bs复制key
  3. // @namespace http://tampermonkey.net/
  4. // @match https://www.bundlestars.com/en/orders/*
  5. // @description try to take over the world!
  6. // @grant none
  7. // @version 0.1
  8. // ==/UserScript==
  9.  
  10. (function () {
  11. var gd_btn = $('<div><a href="javascript:;" style="color:#ffd700">一键刮KEY</a>|<a href="javascript:;" style="color:#ffd700">复制key(asf格式)</a><textarea style="top:-1px;left:-1px;width:0px;height:0px;position:absolute"></textarea></div>'),
  12. gd_txta = gd_btn.find('textarea');
  13.  
  14. gd_btn.find('a').eq(0).click(function () {
  15. $('.key-container.hidden-sm.hidden-xs div a').click();
  16. });
  17. gd_btn.find('a').eq(1).click(function () {
  18. var keystr='!redeem ';
  19. $('.key-reveal-copy.ng-scope div input').each(function(i,el){
  20. keystr+=$(el).val()+',';});
  21. gd_copy(keystr.slice(-1)==','?keystr.slice(0,-1):keystr);
  22. alert(keystr + '已拷贝到剪切板!');
  23. });
  24. $('div.well.no-round h2').after(gd_btn);
  25. function gd_copy(gd_str) {
  26. gd_txta.val(gd_str).select();
  27. document.execCommand('copy');
  28. }
  29. }) ();

QingJ © 2025

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