Load Facebook icon via resource, instead of direct linking in the code

This commit is contained in:
Tobias Schmidl 2014-02-24 14:42:22 +01:00
parent c1accfebe2
commit 88698df178

View file

@ -1,7 +1,7 @@
// ==UserScript==
// @name Facebook desktop notification
// @namespace https://www.schtobia.de/
// @version 0.0.5
// @version 0.0.6
// @description Facebook desktop notification (based on HTML5)
// @include http*://www.facebook.com/*
// @include http*://facebook.com/*
@ -9,6 +9,7 @@
// @run-at document-end
// @downloadURL https://github.com/schtobia/greasemonkey/raw/master/facebook-notification.user.js
// @updateURL https://github.com/schtobia/greasemonkey/raw/master/facebook-notification.user.js
// @resource FacebookLogo https://s-static.ak.facebook.com/rsrc.php/yi/r/q9U99v3_saj.ico
// ==/UserScript==
//
@ -51,7 +52,7 @@ notify = function()
{
"dir" : "auto",
"body" : msg,
"icon" : 'https://s-static.ak.facebook.com/rsrc.php/yi/r/q9U99v3_saj.ico',
"icon" : GM_getResourceURL("FacebookLogo"),
}
)