NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name WoW One Feenix Database 3D Model Links // @namespace http://www.wow-one.com/database/ // @namespace https://www.wow-one.com/database/ // @description WoW One Feenix Database 3D Model Links // @include http://www.wow-one.com/database/?item=* // @include http://www.wow-one.com/database/?item=*#modelviewer* // @include https://www.wow-one.com/database/?item=* // @include https://www.wow-one.com/database/?item=*#modelviewer* // @version 1 // @grant none // ==/UserScript== /* WoW One TBC 2.4.3 Feenix Database. Items 9998 to 13148. */ var $; (function () { if (typeof unsafeWindow.jQuery == 'undefined') { var GM_Head = document.getElementsByTagName('head') [0] || document.documentElement, GM_JQ = document.createElement('script'); GM_JQ.src = 'https://code.jquery.com/jquery-3.1.0.min.js'; GM_JQ.type = 'text/javascript'; GM_JQ.async = true; GM_Head.insertBefore(GM_JQ, GM_Head.firstChild); } GM_wait(); }) (); function GM_wait() { if (typeof unsafeWindow.jQuery == 'undefined') { window.setTimeout(GM_wait, 100); } else { $ = unsafeWindow.jQuery.noConflict(true); letsJQuery(); } } function letsJQuery() { /*alert($);alert($().jquery);*/ $(document).ready(function () { function C_DT(s, d, l, a, r, b) { function slicer(s, l, a, r, b) { return s.slice(l, a).slice(r, b); } var c = slicer(JSON.stringify(s), l, a, r, b); if (d == 0) { return String(c); } else if (d == 1) { return parseInt(c); } } function Model3DLink() { return 'http://www.wowhead.com/item=' + C_DT(g_getGets(), 1, 9, - 1, 0, - 1) + '/#modelviewer'; } /* document.write(Model3DLink()); */ var $btn = $('<a class="button-red" href="javascript:;" onclick="this.blur();location.href=\'' + Model3DLink() + '\'"><em><b><i>Link</i></b><span>3D Model</span></em></a>'); $('#main-contents > div:nth-child(3)').prepend($btn); }); }