您需要先安装一个扩展,例如 篡改猴、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 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 // @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)); }