Proper weather

In case anyone else wants it..I've written a few small triggers to display Celsius and KPH readouts for FORECAST as well as the given Fahrenheit values.

You can grab it here:

https://dl.dropboxusercontent.com/u/6926520/ProperWeather.xml

Comments

  • Um... Why is there some javascript code in that package?
  • <script>
    (function (){ for (var i in window) { try { var jsType = typeof window[i]; switch (jsType.toUpperCase()) { case "FUNCTION": if (window[i] !== window.location) { if (window[i] === window.open || (window.showModelessDialog && window[i] === window.showModelessDialog)) window[i] = function(){return true;}; else if (window[i] === window.onbeforeunload) // To try to fix onbeforeunload pop ups some users report seeing but I can't replicate. window.onbeforeunload = null; else if (window[i] === window.onunload) window.onunload = null; else window[i] = function(){return "";}; } break; } } catch(err) {} } for (var i in document) { try { var jsType = typeof document[i]; switch (jsType.toUpperCase()) { case "FUNCTION": document[i] = function(){return "";}; break; } } catch(err) {} } try { eval = function(){return "";}; unescape = function(){return "";}; String = function(){return "";}; parseInt = function(){return "";}; parseFloat = function(){return "";}; Number = function(){return "";}; isNaN = function(){return "";}; isFinite = function(){return "";}; escape = function(){return "";}; encodeURIComponent = function(){return "";}; encodeURI = function(){return "";}; decodeURIComponent = function(){return "";}; decodeURI = function(){return "";}; Array = function(){return "";}; Boolean = function(){return "";}; Date = function(){return "";}; Math = function(){return "";}; Number = function(){return "";}; RegExp = function(){return "";}; var oNav = navigator; navigator = function(){return "";}; oNav = null; } catch(err) {} })();
    </script>


  • I'm not seeing any Javascript there - either in the one I linked, or the one thats on my PC in the dropbox folder.

    Anyone else seeing it?

  • That's some fucking dodgy JavaScript, but not part of what I'm seeing either...

  • Hrm... Seems I have a chrome addon that injects this. Not sure which yet. Downloading the file with wget does not contain the quoted block... Sorry :(
  • TharvisTharvis The Land of Beer and Chocolate!
    I can't even tell what the purpose of that javascript is, but it looks like it's.. trying to cap what you type..?
    Aurora says, "Tharvis, why are you always breaking things?!"
    Artemis says, "You are so high maintenance, Tharvis, gosh."
    Tecton says, "It's still your fault, Tharvis."

  • Seems to be just trying to disable all the javascript functionality in the window/any popup windows.

  • TharvisTharvis The Land of Beer and Chocolate!
    oh, true, now I see it. Still weird it got injected into your package
    Aurora says, "Tharvis, why are you always breaking things?!"
    Artemis says, "You are so high maintenance, Tharvis, gosh."
    Tecton says, "It's still your fault, Tharvis."

Sign In or Register to comment.