Man left with nothing / my heart fills with sympathy / he can't pay my fee
4
   
Award
Favorite
Favorited
Unfavorite
Download
"// ==UserScript==
// @name TEST AVATAR
// @namespace http://tampermonkey.net/
// @version 0.0022
// @description trying to uplaod avatars
// @author byteframe
// @match *:/steamproxy.net/groups/primarydataloop
// @grant unsafeWindow
// @grant GM_xmlhttpRequest
// @connect *
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js
// ==/UserScript==\

unsafeWindow.image = null;
unsafeWindow.data = null;
jQuery(document).ready(function() {
var url = 'https://cdn.discordapp.com/attachments/344236510549377025/366772821986115586/fef49e7fa7e1997310d705b2a6158ff8dc1cdfeb_full.jpg';
GM_xmlhttpRequest({
method: "GET",
url: url,
overrideMimeType: 'text/plain; charset=x-user-defined',
responseType: "arraybuffer",
onload: function(response) {
image = response.response;
}
});
});
unsafeWindow.upload = function() {
data = {
MAX_FILE_SIZE: image.byteLength,
type: 'group_avatar_image',
gId: '103582791432273268',
sessionid: g_sessionID,
doSub: 1,
json: 1,
avatar: {
value: new Uint8Array(image).toString(),
options: {
filename: 'avatar.jpg',
contentType: 'image/jpeg'
}
}
};
jQuery.ajax({
url: "/steamproxy.net/actions/FileUploader",
method: 'POST',
//dataType: 'json',
//contentType: "application/octet-stream",
//processData: false,
data: data,
}).always(function(response) {
console.log(response.responseText);
});
};


/*

< unsafeWindow.request_friends_list_xml = function(callback) {
< GM_xmlhttpRequest({
< method: 'GET',
< url: '/steamproxy.net/profiles/' + g_steamID + "/friends/?xml=1",
< onerror: function() { setTimeout(request_friends_list, 5000); },
< onload: function(response) {
< friends = [];
< jQuery(response.responseText).find('friend').each(function(index, friend) {
< friends.push(friend.innerHTML);
< });
< callback();
< }
< });
< };
// retrieve player names and record activity TODO
var date = new Date();
function lines(action, players, callback, p = 0) {
if (p == players.length) {
callback()
} else {
request_profile(players[p], function(profile) {
var line = pad(date.getMonth()+1) + "/" + pad(date.getDate()) +
"-" + pad(date.getHours()) + ":" + pad(date.getMinutes()) +
" (" + action + ")=" + friends.length +
" '<a href=/"http://steamproxy.net/profiles/" + players[p].steamid +
"/">http://steamproxy.net/profiles/" + players[p].steamid +
"</a>', // " + profile.persona;
diff += "\n" + line + "<br/>";
console.log(line.replace(/<\/?[^>]+(>|$)/g, "").substr(12));
lines(action, players, callback, p+1);
});
}
}
< unsafeWindow.request_profile = function(steamid, callback) {
< jQuery.get('/steamproxy.net/profiles/' + steamid
< ).fail(function() {
< setTimeout(request_profile, 5000, steamid, callback);
< }).done(function(response) {
< var profile = { persona: '?', tp: '?????', cf: '???', tf: '????', cg: '??' };
< if (jQuery(response).find('span.actual_persona_name').length) {
< profile.persona = jQuery(response).find('span.actual_persona_name')[0].innerText;
< }
< if (jQuery(response).find('a.commentthread_allcommentslink').length) {
< profile.tp = jQuery(response).find(
< 'a.commentthread_allcommentslink')[0].innerText.slice(9, -9).replace(',', '');
< }
< if (jQuery(response).find('a[href^=javascript\\:ShowFriendsInCommon]').length) {
< profile.cf = jQuery(response).find(
< 'a[href^=javascript\\:ShowFriendsInCommon]')[0].innerText.slice(0, -8);
< }
< if (jQuery(response).find('a[href$=friends\\/]').last().children().length > 1) {
< profile.tf = jQuery(response).find(
< 'a[href$=friends\\/]').last().children()[1].innerHTML.trim().replace(',', '');
< }
< if (jQuery(response).find('a[href$=groupscommon\\/]').length) {
< profile.cg = jQuery(response).find(
< 'a[href$=groupscommon\\/]')[0].text.split(' ')[0];
< }
< callback(profile);
< });
< };

*/"
2 Comments
Spring Cl🌞uds™ 2 Feb, 2019 @ 1:35pm 
Hey Mate, you are kind & i hope to see you among kind players here: https://steamproxy.net/groups/BeingKindtoOthers , You're Welcome! :smily:
Gatsu-13 26 Oct, 2018 @ 12:18pm 
:EasyPlatforms::e1big::e1big::e1big::EasyPlatforms::e1big::e1big::e1big::EasyPlatforms:
:e1big::butterfly::e3big::butterfly::e1big::butterfly::e3big::butterfly::e1big:
:e1big::e3big::e1big::e3big::butterfly::e3big::e1big::e3big::e1big:
:e1big::butterfly::e3big::e1big::e3big::e1big::e3big::butterfly::e1big:
:EasyPlatforms::e1big::butterfly::e3big::e1big::e3big::butterfly::e1big::EasyPlatforms:
:EasyPlatforms::EasyPlatforms::e1big::butterfly::e3big::butterfly::e1big::EasyPlatforms::EasyPlatforms:
:EasyPlatforms::EasyPlatforms::EasyPlatforms::e1big::butterfly::e1big::EasyPlatforms::EasyPlatforms::EasyPlatforms:
:EasyPlatforms::EasyPlatforms::EasyPlatforms::EasyPlatforms::e1big::EasyPlatforms::EasyPlatforms::EasyPlatforms::EasyPlatforms: