鼠标点击特效,出文字符号表情,颜色随机

鼠标点击网页任意地方,出文字符号表情的特效,颜色随机

  1. // ==UserScript==
  2. // @name 鼠标点击特效,出文字符号表情,颜色随机
  3. // @namespace 戈小戈
  4. // @version 0.1.1
  5. // @description 鼠标点击网页任意地方,出文字符号表情的特效,颜色随机
  6. // @author 戈小戈
  7. // @match *://*/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13. var a_idx = 0;
  14. const 前颜色码库 = new Array('00', '11', '22', '1', '44', '55', '66', '77', '88', '99',
  15. 'aa', 'bb', 'cc', 'dd', 'ee', 'ff');
  16. const 中颜色码库 = new Array('00', '11', '22', '33', '44', '55', '66', '77', '88', '99',
  17. 'aa', 'bb', 'cc', 'dd', 'ee', 'ff');
  18. const 后颜色码库 = new Array('00', '11', '22', '33', '44', '55', '66', '77', '88', '99',
  19. 'aa', 'bb', 'cc', 'dd', 'ee', 'ff');
  20. var 前颜色码 ;var 中颜色码;var 后颜色码;
  21. var timerrrr = setInterval(function(){
  22.  
  23. 前颜色码 = Math.floor(Math.random() * 前颜色码库.length);
  24. 中颜色码 = Math.floor(Math.random() * 中颜色码库.length);
  25. 后颜色码 = Math.floor(Math.random() * 后颜色码库.length);
  26. },150)
  27. $("body").click(function(e) {
  28. var a = new Array("^_^","^O^ ","\(^o^)/","o(* ̄︶ ̄*)o","n(*≧▽≦*)n","(づ。◕‿‿◕。)づ","(✿◡‿◡)","(*^__^*) ","~\(≧▽≦)/~","顶!d=====( ̄▽ ̄*)b","o(^▽^)o","( ゚∀゚) ノ♡");
  29. var $i = $("<span/>").text(a[a_idx]);
  30. a_idx = (a_idx + 1) % a.length;
  31. var x = e.pageX,
  32. y = e.pageY;
  33. $i.css({
  34. "z-index": 999999999999999999999999999999999999999999999999999999999999999999999,
  35. "top": y - 20,
  36. "left": x,
  37. "position": "absolute",
  38. "font-weight": "bold",
  39. "color": "#" + 前颜色码库[前颜色码] + 中颜色码库[中颜色码] + 后颜色码库[后颜色码]
  40. });
  41. $("body").append($i);
  42. $i.animate({
  43. "top": y - 180,
  44. "opacity": 0
  45. },
  46. 1500,
  47. function() {
  48. $i.remove();
  49. });
  50. });
  51. })();

QingJ © 2025

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