You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
529 B
21 lines
529 B
/*
|
|
* banner-reload-helper.js
|
|
* https://github.com/savetheinternet/Tinyboard-Tools/blob/master/js/banner-reload-helper.js
|
|
*
|
|
* For 4chon.
|
|
*
|
|
* Released under the MIT license
|
|
* Copyright (c) 2012 Michael Save <[email protected]>
|
|
*
|
|
* Usage:
|
|
* $config['additional_javascript'][] = $config['root'] . 'banner-reload-helper.js';
|
|
*
|
|
*/
|
|
|
|
$(document).ready(function(){
|
|
var img = document.getElementsByTagName('img')[0];
|
|
if(img.className != 'banner')
|
|
return;
|
|
img.src = img.src + '?' + new Date().getTime();
|
|
});
|
|
|
|
|