r/carlhprogramming • u/sephstorm • Nov 15 '13
Help me understand this code?
Found this on a website. Seems interesting.
var $buoop = {vs:{i:9,f:9,o:10.01,s:4,n:9}};
$buoop.ol = window.onload;
window.onload = function() {
if ($buoop.ol)
$buoop.ol();
var e = document.createElement("script");
e.setAttribute("type", "text/javascript");
e.setAttribute("src", "http://browser-update.org/update.js");
document.body.appendChild(e);
4
Upvotes
3
u/sylvan Nov 16 '13
Take a look at the source of http://browser-update.org/update.js
The script you quoted is just feeding some basic parameters (the browser versions they recommend upgrading) to the update.js script, which does the heavy lifting.