NGA蔚蓝档案表情包

将 Ballance平衡球 制作的汉化BA表情加入到表情列表中

  1. // ==UserScript==
  2. // @name NGA蔚蓝档案表情包
  3. // @namespace https://gf.qytechs.cn/zh-CN/scripts/440329-nga%E5%8E%9F%E7%A5%9Eac%E5%A8%98%E8%A1%A8%E6%83%85
  4. // @version 2.0
  5. // @icon http://bbs.nga.cn/favicon.ico
  6. // @description 将 Ballance平衡球 制作的汉化BA表情加入到表情列表中
  7. // @author WLXC
  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. // @grant none
  15. // @require https://gf.qytechs.cn/scripts/39014-nga-user-script-loader/code/NGA%20User%20Script%20Loader.js
  16. // @license MIT License
  17. // ==/UserScript==
  18.  
  19. //原作者发布地址:https://bbs.nga.cn/read.php?tid=30739380
  20. //此脚本发布地址:https://bbs.nga.cn/read.php?tid=30740157
  21. //本脚本由间桐咕哒子@NGA(http://bbs.ngacn.cc/read.php?tid=11275553)及原神版表情包上修改而来~
  22. //原作者地址: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
  23. //原作者链接:https://gf.qytechs.cn/zh-CN/users/102500-aglandy
  24.  
  25. (function(){
  26. function init($){
  27. let demoNGABA = commonui.acBANGA = {
  28. data: [
  29. 'https://img.nga.178.com/attachments/mon_202211/21/-10yuu8Q187-fwhhKiToS2s-39.png',//锌
  30. 'https://img.nga.178.com/attachments/mon_202211/21/-10yuu8Q187-kqaKjToS2s-2s.png',//亚子
  31. 'https://img.nga.178.com/attachments/mon_202211/21/-10yuu8Q187-6setKjToS2s-2s.png',//亚丝娜
  32. 'https://img.nga.178.com/attachments/mon_202211/21/-10yuu8Q187-cut7KjToS2s-3h.png',//修女
  33. 'https://img.nga.178.com/attachments/mon_202211/21/-10yuu8Q187-ixnjKiToS2s-2s.png',//小夏
  34. 'https://img.nga.178.com/attachments/mon_202211/21/-10yuu8Q187-4iyfKiToS2s-2s.png',//小狐狸
  35. 'https://img.nga.178.com/attachments/mon_202211/21/-10yuu8Q187-bcqlKjToS2s-2s.png',//若藻
  36. 'https://img.nga.178.com/attachments/mon_202211/21/-10yuu8Q187-hxmoKjToS2s-2s.png',//琴里
  37. 'https://img.nga.178.com/attachments/mon_202211/21/-10yuu8Q187-2rv2KiToS2s-36.png',//女仆
  38. 'https://img.nga.178.com/attachments/mon_202211/21/-10yuu8Q187-94tnKnToS2s-2s.png',//尼禄
  39. 'https://img.nga.178.com/attachments/mon_202211/21/-10yuu8Q187-g34iKkToS2s-39.png',//莲实
  40. 'https://img.nga.178.com/attachments/mon_202211/21/-10yuu8Q187-1ju1KjToS2s-2s.png',//谢谢
  41. 'https://img.nga.178.com/attachments/mon_202211/21/-10yuu8Q187-8hhtKiToS2s-2s.png',//黑猫
  42. 'https://img.nga.178.com/attachments/mon_202211/21/-10yuu8Q187-f7ihKfT8S2s-2s.png',//和香
  43. 'https://img.nga.178.com/attachments/mon_202211/21/-10yuu8Q187-h4dKhToS2s-2s.png',//汉堡
  44. 'https://img.nga.178.com/attachments/mon_202211/21/-10yuu8Q187-6r9aKgT8S2s-2s.png',//风香
  45. 'https://img.nga.178.com/attachments/mon_202211/21/-10yuu8Q187-d396KkToS2s-2s.png',//菲娜
  46. 'https://img.nga.178.com/attachments/mon_202211/21/-10yuu8Q187-kb9KfT8S2s-2s.png',//巴
  47. 'https://img.nga.178.com/attachments/mon_202211/21/-10yuu8Q187-6kxbKgT8S2s-2s.png',//nonomi
  48. // NGA蔚蓝档案表情包的地址
  49. ],
  50. addPic: function(biu){
  51. let ngademo = $(biu.target),
  52. bodyTom = ngademo.parent().next().children(),
  53. imgs = bodyTom.eq(ngademo.index() - 1);
  54. if(!imgs.children()[0])
  55. $.each(demoNGABA.data, function(i, picURL){
  56. imgs.append('<img height="60px" src="' + picURL + '" onclick="postfunc.addText(\'[img]' + picURL + '[/img]\');postfunc.selectSmilesw._.hide()" />');
  57. });
  58. $.each(bodyTom, function(i, thisK){
  59. if(i == ngademo.index() - 1)
  60. thisK.style.display = '';
  61. else
  62. thisK.style.display = 'none';
  63. });
  64. ngademo.parent().children().eq(0).html('');
  65. },
  66. addBtn: function(){
  67. $('[title="插入表情"]:not([ac-BA])').attr('ac-BA', 1).bind('click.acBANGAAddBtn', function(){
  68. setTimeout(function(){
  69. $('.single_ttip2 div.div3 div:has(button:contains("AC娘(v1)")):not(:has(button:contains("蔚蓝档案表情包")))').append('<button class="block_txt_big">蔚蓝档案表情包</button>').find(':contains("蔚蓝档案表情包")').bind('click.acBANGABtn', demoNGABA.addPic)
  70. .end().next().append('<div />');
  71. },100);
  72. });
  73. },
  74. putInBtn: new MutationObserver(function(){
  75. demoNGABA.addBtn();
  76. })
  77. };
  78.  
  79. demoNGABA.addBtn();
  80.  
  81. demoNGABA.putInBtn.observe($('body')[0], {
  82. subtree: true,
  83. childList: true,
  84. });
  85. }
  86.  
  87. (function check(){
  88. try{
  89. init(commonui.userScriptLoader.$);
  90. }
  91. catch(e){
  92. setTimeout(check, 50);
  93. }
  94. })();
  95.  
  96. })();

QingJ © 2025

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