willsonhaw / vacbanchecker Goto Github PK
View Code? Open in Web Editor NEWA bookmarklet to check for steam vac bans
A bookmarklet to check for steam vac bans
output from console:
GET https://api.steampowered.com/ISteamUser/GetPlayerBans/v1/?key=F6F90A461E30Dā¦66,76561198107901057,76561198087954233,76561198165784343,76561198216327864 403 (Forbidden)
Hello!
I've always check in the "recently played with" if somebody has received the vac, but yesterday i've try and the checker dont work anymore! I test today again and nothing happened. = /
Hi there,
I noticed the new Steam Design came out, so also the classnames and stuff changed...
Nonetheless I have solved it by now with a custom design. It's the same procedure with the bookmark. Enjoy.
javascript:(function(){function getDigit(x,digitIndex){return(digitIndex>=x.length)?"0":x.charAt(x.length-digitIndex-1)} function prefixZeros(strint,zeroCount){var result=strint;for(var i=0;i<zeroCount;i++){result="0"+result} return result} function add(x,y){var maxLength=Math.max(x.length,y.length);var result="";var borrow=0;var leadingZeros=0;for(var i=0;i<maxLength;i++){var lhs=Number(getDigit(x,i));var rhs=Number(getDigit(y,i));var digit=lhs+rhs+borrow;borrow=0;while(digit>=10){digit-=10;borrow++} if(digit===0){leadingZeros++}else{result=String(digit)+prefixZeros(result,leadingZeros);leadingZeros=0}} if(borrow>0){result=String(borrow)+result} return result} function getId(friend){var steam64identifier="76561197960265728";var miniProfileId=friend.attributes.getNamedItem('data-miniprofile').value;return add(steam64identifier,miniProfileId)} var friends=[].slice.call(document.querySelectorAll('.friend_block_v2'));var lookup={};friends.forEach(function(friend){var id=getId(friend);if(!lookup[id]){lookup[id]=[]} lookup[id].push(friend)});function setVacation(player){var friendElements=lookup[player.SteamId];friendElements.forEach(function(friend){var inGameText=friend.querySelector('.in-game');var span=document.createElement('span');span.style.fontWeight='bold';span.style.display='block';if(inGameText){inGameText.innerHTML=inGameText.innerHTML.replace(/<br ?\/?>/,' - ')} if(player.NumberOfVACBans||player.NumberOfGameBans){var text='';if(player.NumberOfGameBans){text+=player.NumberOfGameBans+' OW bans'} if(player.NumberOfVACBans){text+=(text===''?'':', ')+player.NumberOfVACBans+' VAC bans'} text+=' '+player.DaysSinceLastBan+' days ago.';span.style.color='rgb(255, 73, 73)';span.innerHTML=text;friend.setAttribute("style","background-color: rgba(100, 31, 36, .8);")}else{span.style.color='rgb(43, 203, 64)';span.innerHTML='No Bans for this player.'} friend.querySelector('.player_avatar.friend_block_link_overlay > img').setAttribute("style","height: 70px; width: 70px; border-radius: 15px;");friend.querySelector('.player_avatar.friend_block_link_overlay').style.height="70px";friend.style.height="70px";var selection=friend.querySelector('.blocked_text')!==null;if(selection){friend.querySelector('.blocked_text').outerHTML=""} friend.querySelector('.friend_small_text').appendChild(span)})} function onData(xmlHttp){if(xmlHttp.readyState===XMLHttpRequest.DONE&&xmlHttp.status===200){var data=JSON.parse(xmlHttp.responseText);data.players.forEach(setVacation)}} function makeApiCall(ids){var xmlHttp=new XMLHttpRequest();var endpointRoot='https://api.steampowered.com/ISteamUser/GetPlayerBans/v1/?key=12A1D1DE83F9932934EDD6DF2BA00463&steamids=';var endpoint=endpointRoot+ids.join(',');xmlHttp.onreadystatechange=function(){onData(xmlHttp)};xmlHttp.open('GET',endpoint,!0);xmlHttp.send()} var ids=Object.keys(lookup);while(ids.length>0){var batch=ids.splice(0,100);makeApiCall(batch)}})()
Hi,
I would like to add some description of your project in the README.md. If it's possible, please let me know what you'd like me to add. Thank you!
Background:
As a beginner contributor, I'm working on an assignment for my technical writing course, which requires students to make real-world revisions and have them accepted.
I will make PR(s) after my revisions. Please feel free to correct me if I missed anything. Thank you!
All i can say is, thats its not working since 1-2 weeks. FF 51.0.1
edit: https not working http works
I would like to make some revisions to the How to Use
section.
Background:
As a beginner contributor, I'm working on an assignment for my technical writing course, which requires students to make real-world revisions and have them accepted.
I will make PR(s) after my revisions. Please feel free to correct me if I missed anything. Thank you!
Some descriptions in the README should be updated based on the new visual instructions. Also, the "Changelog" should be updated accordingly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ššš
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ā¤ļø Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.