Only posting this for my reference:
http://stackoverflow.com/questions/12114465/i-set-font-size-to-16pt-but-when-i-fetch-it-it-returns-21px-can-i-get-it-to-reused that to fix nekosama's font. never used jquery before, so i thought i'd give it a go. thought it was really weird that i saw "font-size:30pt" in the html, but .css("font-size") gave back "40px", so i googled it like a pro.
Code
// ==UserScript==
// @name Fix NekoSama's posts
// @namespace http://your.homepage/
// @version 0.1
// @description Changes NekoSama's font to normal black instead of giant green
// @author carteblanche
// @match http://forums.d2jsp.org/topic.php*
// @grant none
// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==
$(document).ready(function() {
var greenFont = $('span').filter(function(){
return $(this)[0].style.color == 'green';
});
if (greenFont.length > 0){
greenFont.css('color', 'rgb(0,0,0)');
}
var largeFont = $('span').filter(function(){
return $(this)[0].style.fontSize == '30pt';
});
if (largeFont.length > 0){
largeFont.css('font-size', '8pt');
}
});
considering making it search for nekosama's posts as opposed to just changing all spans everywhere on the page, and making it more generic. but doubt i'll get around to it.
/edit: tampermonkey script
/edit2: lets see. to fix all of nekosama's posts, i can find the <dt> that contains:
<a> with attribute href="user.php?i=434436" and text NekoSama
then crawl up to the <dl>, then fix all the <span> inside it
/edit3: @Eep, wanna update it for me?
This post was edited by carteblanche on Nov 27 2014 12:04am