does anyone want the script that adds this stuff


steve made it
and if you do, you gotta have tampermonkey or an equivalent extension for FireFox or w/e you use
// ==UserScript==
// @name Blockland Forums Extended Genders and Orientation Plugin v1.0
// @require http://code.jquery.com/jquery-2.1.1.min.js
// @include *forum.blockland.us*?action=profile*
// @include *blockland.us/smf*?action=profile*
// ==/UserScript==
var database = 'http://foxscotch.us/steve/identity';
if(document.URL.indexOf('?action=profile') != -1 && document.URL.indexOf('sa=forumProfile') == -1) {
var name = $('.titlebg').first().children().first().html();
/*
var spec = 'Kitty';
var gen = 'Transgender Female';
var ori = 'Triloveual';
var rel = 'Christian Extremist';
*/
var loadingMsg = 'Loading...'
var genObj = $('b:contains("Gender: ")');
genObj.html('Gender Identity');
genObj.parent().next().attr('class','genObj');
genObj.parent().parent().after('<tr><td><b>Religion: </b></td><td class="relObj">'+ loadingMsg + '</td></tr>');
genObj.parent().parent().before('<tr><td><b>Species: </b></td><td class="specObj">'+ loadingMsg + '</td></tr>');
genObj.parent().parent().after('<tr><td><b>loveual Orientation: </b></td><td class="oriObj">'+ loadingMsg + '</td></tr>');
GM_xmlhttpRequest({
method: "POST",
url: database + "/index.php",
data: "name=" + name,
headers: {
"Content-Type": "application/x-www-form-urlencoded"
},
onload: function(response) {
console.log(response.responseText);
setIdentity(response.responseText);
}
});
} else if(document.URL.indexOf('sa=forumProfile') != -1) {
$('input:submit').last().parent().parent().before('<tr><td width="40%"><b>Species:</b></td><td><input type="text" class="spec" size="24" value=""></td></tr><tr><td width="40%"><b>Gender Identity:</b></td><td><input type="text" class="gen" size="24" value=""></td></tr><tr><td width="40%"><b>loveual Orientation:</b></td><td><input type="text" class="ori" size="24" value=""></td></tr><tr><td width="24%"><b>Religion</b></td><td><input type="text" class="rel" size="24" value=""></td></tr><tr><td width="40%">Make sure to hit save and await a response!</td><td><input type="button" class="saveDetails" value="Save"></td></tr>');
}
$('.saveDetails').click(function() {
sendDetails();
});
function setIdentity(data) {
var details = JSON.parse(data);
$('.specObj').html(details['spec']);
$('.oriObj').html(details['ori']);
$('.genObj').html(details['gen']);
$('.relObj').html(details['rel']);
}
function sendDetails() {
var nameSend = $('td:contains(", you have ")').html().split('Hey, <b>')[1].split('</b>')[0];
var data = {};
data.spec = $('.spec').val();
data.gen = $('.gen').val();
data.ori = $('.ori').val();
data.rel = $('.rel').val();
var jsonString = JSON.stringify(data);
GM_xmlhttpRequest({
method: "POST",
url: database + "/set.php",
data: "name=" + nameSend + "&data=" + jsonString,
headers: {
"Content-Type": "application/x-www-form-urlencoded"
},
onload: function(response) {
alert(response.responseText);
console.log(response.responseText);
}
});
}
if you're using tampermonkey, just click the icon for it in the top right, click "add a new script," and copy and paste that whole thing into there
if there's already something in the text box part (there probably will be), delete it first, then paste
it's probably similarly straight-forward for any other. not sure if you need the top bit or not (the first few lines that begin with "//"), but they're just comments, they can't hurt anything, I'd suggest leaving just in case they serve a purpose for other extensions