Agrega un panel extra de emoticonos en el formulario de respuesta o de nuevo tema en el foro de Habtium.
当前为
// ==UserScript==
// @name MOARicons 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.0
// @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
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'];
var emotCount = emots.length;
// 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);
// 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
for(var i=0;i < emotCount;i++)
{
emotInput.setAttribute('onclick', 'addSmiley(\'reply_body\',\'[img]https://i.imgur.com/' + emots[i] + '[/img]\')');
emotInput.innerHTML="<img height=\"20\" src=\"https://i.imgur.com/" + emots[i] + "\" />";
document.getElementById('content').getElementsByClassName('box box-biggest')[1].getElementsByClassName('body bbcode')[0].getElementsByClassName('button-group bbcode')[9].appendChild(emotInput.cloneNode(true));
}
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址