Load Facebook icon via resource, instead of direct linking in the code
This commit is contained in:
parent
c1accfebe2
commit
88698df178
1 changed files with 3 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Facebook desktop notification
|
// @name Facebook desktop notification
|
||||||
// @namespace https://www.schtobia.de/
|
// @namespace https://www.schtobia.de/
|
||||||
// @version 0.0.5
|
// @version 0.0.6
|
||||||
// @description Facebook desktop notification (based on HTML5)
|
// @description Facebook desktop notification (based on HTML5)
|
||||||
// @include http*://www.facebook.com/*
|
// @include http*://www.facebook.com/*
|
||||||
// @include http*://facebook.com/*
|
// @include http*://facebook.com/*
|
||||||
|
@ -9,6 +9,7 @@
|
||||||
// @run-at document-end
|
// @run-at document-end
|
||||||
// @downloadURL https://github.com/schtobia/greasemonkey/raw/master/facebook-notification.user.js
|
// @downloadURL https://github.com/schtobia/greasemonkey/raw/master/facebook-notification.user.js
|
||||||
// @updateURL 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==
|
// ==/UserScript==
|
||||||
//
|
//
|
||||||
|
|
||||||
|
@ -51,7 +52,7 @@ notify = function()
|
||||||
{
|
{
|
||||||
"dir" : "auto",
|
"dir" : "auto",
|
||||||
"body" : msg,
|
"body" : msg,
|
||||||
"icon" : 'https://s-static.ak.facebook.com/rsrc.php/yi/r/q9U99v3_saj.ico',
|
"icon" : GM_getResourceURL("FacebookLogo"),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue