platinumgod tooltip

enter something useful

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

You will need to install an extension such as Tampermonkey to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name         platinumgod tooltip
// @namespace    http://porath.org/
// @version      0.1
// @description  enter something useful
// @author       You
// @match        http://platinumgod.co.uk/
// @grant        none
// ==/UserScript==

$('body').append('<div id="mousebox"><li class="textbox" id="putHtmlHere"></li></div>');

// because of the way he did his css selecting, i have to do this nonsense

$('#mousebox').css('position', 'fixed');
$('#mousebox').css('width', '300px');
$('#mousebox').css('background-color', '#222');
$('#mousebox').css('font-size', '12px');
$('#mousebox').css('color', '#eee');
$('#mousebox').css('padding', '0 10px 0 10px');

$('.item-title').css('font-size', '16px');
$('.item-title').css('text-decoration', 'underline');
$('.item-title').css('letter-spacing', '.1em');
$('.item-title').css('text-transform', 'uppercase');
$('.item-title').css('text-align', 'center');
$('.item-title').css('margin-bottom', '0');

$('.textbox').css('list-style', 'none');

$('.r-itemid').css('margin', '0');
$('.r-itemid').css('position', 'absolute');
$('.r-itemid').css('top', '0');
$('.r-itemid').css('right', '5px');
$('.r-itemid').css('font-size', '11px');

$('.pickup').css('margin', '0');
$('.pickup').css('text-align', 'center');
$('.pickup').css('color', '#9BCD35');

$('.textbox ul').css('border-top', '1px solid #fff');
$('.textbox ul').css('margin-top', '15px');
$('.textbox ul').css('padding', '15px 0 0');
$('.textbox ul').css('font-weight', '200');
$('.textbox ul').css('text-transform', 'uppercase');
$('.textbox ul').css('font-size', '12px');

$('.tags').css('display', 'none');

$('.rebirth, .afterbirthtrinkets-container').on('mouseover', '.textbox', function() {
    var newHtml = $(this).html();
    
    $('#putHtmlHere').html(newHtml);
});

$(document).on('mousemove', function () {
    var mouseboxX = event.pageX + 15;
    var mouseboxY = event.pageY + 15 - $(window).scrollTop();
    
    if (mouseboxX > $(window).width() - 315) {
        mouseboxX = mouseboxX - 340;
    }

    $('#mousebox').css('left', mouseboxX);
    $('#mousebox').css('top', mouseboxY);
});