Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Steam Inspect
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author You
- // @match https://bitskins.com/*
- // @include https://opskins.com/*
- // @include https://skin.trade/*
- // @include https://steamcommunity.com/*
- // @grant GM_xmlhttpRequest
- // ==/UserScript==
- (function() {
- 'use strict';
- function steamChecker(e){
- if (true){
- var r=e.path[0];
- var kt=r.getElementsByClassName('__tm_float_val');
- if (kt.length>0){
- return true;
- }
- for (var i=0;i<e.path.length,i<5;i++){
- var p=e.path[i];
- if (p.tagName=='A'){
- if (p.href.indexOf('steam://')==0){
- GM_xmlhttpRequest({
- method: "GET",
- url: 'https://api.csgofloat.com:1738/?url='+p.href,
- onload: function(response) {
- var cvalues='';
- eval('cvalues='+response.responseText);
- if (cvalues){
- kt=document.createElement('span');
- kt.className='__tm_float_val';
- kt.style.fontSize='10px';
- kt.style.background='#000';
- kt.style.color='#fff';
- kt.style.display='inline-block';
- kt.style.paddingLeft='2px';
- kt.style.paddingRight='4px';
- kt.style.lineHeight='12px';
- kt.style.paddingLeft='6px';
- kt.style.borderRadius='6px';
- kt.style.zIndex='999999';
- kt.style.position='relative';
- r.appendChild(kt);
- p.setAttribute('title','FLOAT: '+cvalues.iteminfo.floatvalue);
- kt.innerHTML=(cvalues.iteminfo.floatvalue+"").substring(0,5);
- console.log(cvalues.iteminfo);
- }
- }
- });
- e.preventDefault();
- e.stopPropagation();
- return false;
- }
- }
- }
- }
- return true;
- }
- document.addEventListener("contextmenu", steamChecker);
- })();
Advertisement
Add Comment
Please, Sign In to add comment