This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @id FixMarket12321321 | |
// @name FixMarket | |
// @version 1.0 | |
// @namespace AB | |
// @author Pilate | |
// @description Fixes broken item tooltips on market pages | |
// @include http://steamcommunity.com/market/* | |
// @run-at document-end | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
$( document ).ready(function() { | |
window.setInterval(function() { | |
if($('#autoreload').is(':checked')){ | |
if(('#autoreload-wrapper .countdown').length && (parseInt($('#autoreload-wrapper .countdown').text()) <= 1)){ | |
// Reload every 60 seconds without sending POST again: | |
window.location.href = window.location.href; | |
} else { | |
$('#autoreload-wrapper .countdown').text(parseInt($('#autoreload-wrapper .countdown').text()) - 1); | |
} |