S1麻将脸表情 for NGA

将S1麻将脸表情加入到表情列表中

目前为 2022-03-21 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name S1麻将脸表情 for NGA
  3. // @namespace https://gf.qytechs.cn/zh-CN/users/558480-tomoemami
  4. // @version 1.1
  5. // @icon http://bbs.nga.cn/favicon.ico
  6. // @description 将S1麻将脸表情加入到表情列表中
  7. // @author TomoeMami
  8. // @include /^https?://(bbs\.ngacn\.cc|nga\.178\.com|bbs\.nga\.cn)/.+/
  9. // @match *://ngabbs.com/*
  10. // @match *://g.nga.cn/*
  11. // @match *://nga.178.com/*
  12. // @match *://ngabbs.com/*
  13. // @match *://ngacn.cc/*
  14. // @match *://bbs.nga.cn/*
  15. // @grant none
  16. // @require https://gf.qytechs.cn/scripts/39014-nga-user-script-loader/code/NGA%20User%20Script%20Loader.js
  17. // @license MIT License
  18. // ==/UserScript==
  19.  
  20. //本脚本由间桐咕哒子@NGA(http://bbs.ngacn.cc/read.php?tid=11275553)上修改而来~
  21. //原作者地址:https://gf.qytechs.cn/zh-CN/scripts/28491-nga-ac%E5%A8%98%E8%A1%A8%E6%83%85fgo%E5%8C%96%E8%A1%A5%E5%AE%8C%E8%AE%A1%E5%88%92-by-%E9%97%B4%E6%A1%90%E5%92%95%E5%93%92%E5%AD%90-nga
  22. //原作者链接:https://gf.qytechs.cn/zh-CN/users/102500-aglandy
  23.  
  24. (function(){
  25. function init($){
  26. let demoNGAS1 = commonui.S1NGA = {
  27. data: [
  28. 'https://img.nga.178.com/attachments/mon_201906/05/-zue37Q5-azizK2S1j-10.gif',
  29. 'https://img.nga.178.com/attachments/mon_201906/05/-zue37Q5-t4K0Sw-x.png',
  30. 'https://img.nga.178.com/attachments/mon_201906/05/-zue37Q5-5drlK0Sw-w.png',
  31. 'https://img.nga.178.com/attachments/mon_201906/05/-zue37Q5-ar9wK0Sw-w.png',
  32. 'https://img.nga.178.com/attachments/mon_201906/05/-zue37Q5-73lK0Sw-w.png',
  33. 'https://img.nga.178.com/attachments/mon_201906/05/-zue37Q5-5huwK0Sw-w.png',
  34. 'https://img.nga.178.com/attachments/mon_201906/05/-zue37Q5-asncK0Sw-w.png',
  35. 'https://img.nga.178.com/attachments/mon_201906/05/-zue37Q5-ghg1K1Sw-w.png',
  36. 'https://img.nga.178.com/attachments/mon_201906/05/-zue37Q5-gyv9K0Sw-w.png',
  37. 'https://img.nga.178.com/attachments/mon_201906/05/-zue37Q5-bj1lK0Sw-w.png',
  38. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-aefyK8T8S18-18.gif',
  39. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-g2b4K5T8S16-u.gif',
  40. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-lbcgK2S1j-12.gif',
  41. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-54g6K0S12-w.png',
  42. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-agizK0Sw-y.png',
  43. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-fsjhK0Sw-w.png',
  44. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-l8nK0Sw-w.png',
  45. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-5t8bK0Sw-w.png',
  46. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-b3r5K1Sw-w.png',
  47. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-gm29K1Sw-w.png',
  48. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-r4oK0Sw-w.png',
  49. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-67uvK0Sw-w.png',
  50. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-biafK0Sw-w.png',
  51. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-gwozK0Sw-w.png',
  52. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-12tpK0Sw-w.png',
  53. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-6g74K1S10-x.gif',
  54. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-c18jK0Sw-w.png',
  55. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-hl9uK1Sw-w.png',
  56. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-1ocxK0Sw-w.png',
  57. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-772mK0Sw-w.png',
  58. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-d6uvK0Sw-w.png',
  59. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-injlK0Sw-w.png',
  60. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-2kenK0Sw-w.png',
  61. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-7w3iK0Sw-w.png',
  62. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-dc86K0Sw-w.png',
  63. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-im7bK0Sw-w.png',
  64. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-2jy8K0Sw-w.png',
  65. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-7vbxK0Sw-w.png',
  66. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-d8nmK0Sw-w.png',
  67. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-ihgtK0Sw-w.png',
  68. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-2xyyK0Sw-w.png',
  69. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-85krK2S10-w.gif',
  70. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-do95K0Sw-w.png',
  71. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-iwwpK0Sw-w.png',
  72. 'https://img.nga.178.com/attachments/mon_201906/07/-zue37Q5-2vs0K0Sw-w.png'
  73. // 表情链接
  74. ],
  75. addPic: function(biu){
  76. let ngademo = $(biu.target),
  77. bodyTom = ngademo.parent().next().children(),
  78. imgs = bodyTom.eq(ngademo.index() - 1);
  79. if(!imgs.children()[0])
  80. $.each(demoNGAS1.data, function(i, picURL){
  81. imgs.append('<img src="' + picURL + '" onclick="postfunc.addText(\'[img]' + picURL + '[/img]\');postfunc.selectSmilesw._.hide()" />');
  82. });
  83. $.each(bodyTom, function(i, thisK){
  84. if(i == ngademo.index() - 1)
  85. thisK.style.display = '';
  86. else
  87. thisK.style.display = 'none';
  88. });
  89. ngademo.parent().children().eq(0).html('');
  90. },
  91. addBtn: function(){
  92. $('[title="插入表情"]:not([ac-S1])').attr('ac-S1', 1).bind('click.S1NGAAddBtn', function(){
  93. setTimeout(function(){
  94. $('.single_ttip2 div.div3 div:has(button:contains("AC娘(v1)")):not(:has(button:contains("S1麻将脸")))').append('<button class="block_txt_big">S1麻将脸</button>').find(':contains("S1麻将脸")').bind('click.S1NGABtn', demoNGAS1.addPic)
  95. .end().next().append('<div />');
  96. },100);
  97. });
  98. },
  99. putInBtn: new MutationObserver(function(){
  100. demoNGAS1.addBtn();
  101. })
  102. };
  103.  
  104. demoNGAS1.addBtn();
  105.  
  106. demoNGAS1.putInBtn.observe($('body')[0], {
  107. subtree: true,
  108. childList: true,
  109. });
  110. }
  111.  
  112. (function check(){
  113. try{
  114. init(commonui.userScriptLoader.$);
  115. }
  116. catch(e){
  117. setTimeout(check, 50);
  118. }
  119. })();
  120.  
  121. })();

QingJ © 2025

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