Permalink
Browse files

append "?update" to the script URL when checking for updates

this is what userscripts.org recommends to avoid messing up install stats
  • Loading branch information...
1 parent 5591ad6 commit baabab2f49bed804c6e830a90272bccc9be40063 @mislav committed Jun 20, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 toolkit/update_notifier.js
@@ -25,7 +25,7 @@ var checkUserscriptUpdate = (function(){
update.available = false
update.scriptLength = scriptLength
}
- var sourceURL = scriptURL.replace(/show\/(\d+)$/, 'source/$1.user.js')
+ var sourceURL = scriptURL.replace(/show\/(\d+)$/, 'source/$1.user.js?update')
if (!update.available) {
var time = Math.floor(new Date().getTime() / 1000),

0 comments on commit baabab2

Please sign in to comment.