NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Atelier801 Forum Plus // @version 1.3 // @description Add more function to Atelier801 Forum. // @author Derpolino // @match http://atelier801.com/* // @grant none // @updateURL https://openuserjs.org/meta/Derpolino/Atelier801_Forum_Plus.meta.js // @downloadURL https://openuserjs.org/src/scripts/Derpolino/Atelier801_Forum_Plus.user.js // ==/UserScript== // outils_message_reponse $(document).ready(function() { $t = '<div class="btn-group groupe-boutons-barre-outils">'; $t += '<button type="button" class="btn btn-reduit" ><img src="http://i.imgur.com/TaqbfeA.png"></button>'; $t += '<button class="btn btn-reduit dropdown-toggle" data-toggle="dropdown"> <span class="caret"></span> </button>'; $t += '<ul class="dropdown-menu pull-right label-message"><table><tbody><tr>'; $t += '<td class="cellule-dropdown">'; $img = "qSJ1Kyn"; $imgD = ""; $t += '<li><a class="element-menu-outils" onclick="ajouterBBCode(\'message_reponse\', \'[img]http://i.imgur.com/' + $img + '.png[/img]\',\' \', 41);"><img src="http://i.imgur.com/' + $img + '.png"> '+$imgD+'</a></li>'; $img = "zR3t55J"; $t += '<li><a class="element-menu-outils" onclick="ajouterBBCode(\'message_reponse\', \'[img]http://i.imgur.com/' + $img + '.png[/img]\',\' \', 41);"><img src="http://i.imgur.com/' + $img + '.png"> '+$imgD+'</a></li>'; $img = "ThF7xFG"; $t += '<li><a class="element-menu-outils" onclick="ajouterBBCode(\'message_reponse\', \'[img]http://i.imgur.com/' + $img + '.png[/img]\',\' \', 41);"><img src="http://i.imgur.com/' + $img + '.png"> '+$imgD+'</a></li>'; $img = "hpj7V7l"; $t += '<li><a class="element-menu-outils" onclick="ajouterBBCode(\'message_reponse\', \'[img]http://i.imgur.com/' + $img + '.png[/img]\',\' \', 41);"><img src="http://i.imgur.com/' + $img + '.png"> '+$imgD+'</a></li>'; $t += '</td>'; $t += '<td class="cellule-dropdown">'; $img = "U7qfk2d"; $t += '<li><a class="element-menu-outils" onclick="ajouterBBCode(\'message_reponse\', \'[img]http://i.imgur.com/' + $img + '.png[/img]\',\' \', 41);"><img src="http://i.imgur.com/' + $img + '.png"> '+$imgD+'</a></li>'; $img = "aMOsL0g"; $t += '<li><a class="element-menu-outils" onclick="ajouterBBCode(\'message_reponse\', \'[img]http://i.imgur.com/' + $img + '.png[/img]\',\' \', 41);"><img src="http://i.imgur.com/' + $img + '.png"> '+$imgD+'</a></li>'; $img = "Gv7lkZG"; $t += '<li><a class="element-menu-outils" onclick="ajouterBBCode(\'message_reponse\', \'[img]http://i.imgur.com/' + $img + '.png[/img]\',\' \', 41);"><img src="http://i.imgur.com/' + $img + '.png"> '+$imgD+'</a></li>'; $img = "hxR2HrZ"; $t += '<li><a class="element-menu-outils" onclick="ajouterBBCode(\'message_reponse\', \'[img]http://i.imgur.com/' + $img + '.png[/img]\',\' \', 41);"><img src="http://i.imgur.com/' + $img + '.png"> '+$imgD+'</a></li>'; $t += '</td>'; $t += '<td class="cellule-dropdown">'; $img = "NMAB7J8"; $t += '<li><a class="element-menu-outils" onclick="ajouterBBCode(\'message_reponse\', \'[img]http://i.imgur.com/' + $img + '.png[/img]\',\' \', 41);"><img src="http://i.imgur.com/' + $img + '.png"> '+$imgD+'</a></li>'; $img = "UyPcNCF"; $t += '<li><a class="element-menu-outils" onclick="ajouterBBCode(\'message_reponse\', \'[img]http://i.imgur.com/' + $img + '.png[/img]\',\' \', 41);"><img src="http://i.imgur.com/' + $img + '.png"> '+$imgD+'</a></li>'; $t += '</td>'; $t += '</tr></tbody></table></ul>'; $t += '</div>'; $('#outils_message_reponse').html($t + $('#outils_message_reponse').html()); var pseudo = $('.nav.pull-right.ltr .dropdown .dropdown-toggle').html(); var result = pseudo.match(/<img src=".*?" alt="" class="espace-2-2 img16">(.*?)<b class="caret"><\/b>/i); var pseudo = result[1]; $t = '<li class="divider"></li>'; $t += '<li class="nav-header">MT API</li>'; $t += '<li><a href="http://api.micetigri.fr/maps/player/'+ pseudo +'" class="element-menu-principal"><img src="http://api.micetigri.fr/img/maps.png" class="espace-2-2 img16" alt=""><span class="hidden-phone hidden-tablet">Mes Maps</span></a></li>'; $t += '<li><a href="http://api.micetigri.fr/player/'+ pseudo +'" class="element-menu-principal"><img src="http://api.micetigri.fr/img/fromage.png" class="espace-2-2 img16" alt=""><span class="hidden-phone hidden-tablet">Mes Stats</span></a></li>'; $('.nav.pull-right.ltr .dropdown .dropdown-menu.menu-contextuel.pull-left').html($('.nav.pull-right.ltr .dropdown .dropdown-menu.menu-contextuel.pull-left').html() + $t); $('.nav-collapse.collapse .nav.ltr:not(.pull-right)').html($('.nav-collapse.collapse .nav.ltr:not(.pull-right)').html() + '<li class=""><a class="element-menu-principal" href="forums">Forum de l\'Addon</a></li>'); $('.footer .container-fluid .row-fluid .span3 .pull-right').html('<span style="color:#AAAAAA;">Addon Version 1.0 (<a href="changelog" class="lien-blanc">changelog</a>)</span>' + $('.footer .container-fluid .row-fluid .span3 .pull-right').html()); });