您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Agrega un panel extra de emoticonos en el formulario de respuesta o de nuevo tema en el foro de Habtium.
当前为
// ==UserScript== // @name eMOARicons for Habtium // @namespace https://habtium.es // @description Agrega un panel extra de emoticonos en el formulario de respuesta o de nuevo tema en el foro de Habtium. // @include https://*habtium.es/forum/reply/* // @include https://*habtium.es/forum/post/* // @include https://*habtium.es/forum/edit/* // @authors Álex R. E. (habtium.es/AlexRE) // @copyright Copyleft(c) 2016, ARE // @version 0.5.1 // @grant none // @license GPL - http://www.gnu.org/licenses/gpl-3.0.en.html // @credits Emoticonos extraídos de Forocoches, resubidos a Imgur // ==/UserScript== // Lista de todos los emoticonos disponibles y su número // A partir del i14 de HabboS var emots = ['zwPISF9.gif', 'cimY9sd.gif', 'Ihbk5Yp.gif', '6jlUscE.gif', 'MY8GIXi.gif', 'VcdtbTb.gif', 'pUQ8DfN.gif', 'nvd3ctp.gif', 'GS6c7ZA.gif', 'cWw3yBz.gif', 'M9kUhuf.gif', 'fSVHnTp.gif', 'Acg0LmY.gif', 'cb7EhG1.gif', 'ITNQ2Ax.gif', 'IAbUGBm.gif', 'RZJnz56.gif', 'Tcqdp8r.gif', 'JvoZTg7.gif', 'MAR5t8y.gif', '4A9bT6j.gif', '9y5FwHu.gif', '6y6I5JI.gif', 'O1KgE64.gif', 'ukYFhqP.gif', '0QqNjoz.gif', 'OVTgkx0.gif', 'nPxPPrR.gif', 'MSBjB2H.gif', '07L2Abs.gif', 'NbNdwff.gif', 's1WdD5l.gif', 'QlwLZEa.gif', 'OIvLtfL.gif', 'KI7TQop.gif', ]; var emotCount = emots.length; const itemsPerGroup = 17; // Crea un nuevo bloque para emoticonos animados y lo acopla // al formulario de nueva respuesta. var emotGroup=document.createElement("div"); var emotSeparator=document.createElement("br"); emotGroup.setAttribute('class', 'button-group bbcode'); document.getElementById('content').getElementsByClassName('box box-biggest')[1].getElementsByClassName('body bbcode')[0].appendChild(emotSeparator); document.getElementById('content').getElementsByClassName('box box-biggest')[1].getElementsByClassName('body bbcode')[0].appendChild(emotGroup.cloneNode(true)); document.getElementById('content').getElementsByClassName('box box-biggest')[1].getElementsByClassName('body bbcode')[0].appendChild(emotGroup.cloneNode(true)); // Genera un nuevo botón de añadir emoticono var emotInput=document.createElement("button"); emotInput.setAttribute('type','button'); emotInput.setAttribute('class', 'button grey small'); // Coloca tantos botones como emoticonos disponibles hay var j=0; for(var i=0;i < 2;i++) { k = i*emotCount; while(j-k < itemsPerGroup && j < emotCount) { emotInput.setAttribute('onclick', 'addSmiley(\'reply_body\',\'[img]https://i.imgur.com/' + emots[j] + '[/img]\')'); emotInput.innerHTML="<img height=\"20\" src=\"https://i.imgur.com/" + emots[j] + "\" />"; document.getElementById('content').getElementsByClassName('box box-biggest')[1].getElementsByClassName('body bbcode')[0].getElementsByClassName('button-group bbcode')[9+i].appendChild(emotInput.cloneNode(true)); j++; } }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址