-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChurchOfJesusChrist - Apple Touch Icon.user.js
More file actions
33 lines (27 loc) · 1.52 KB
/
ChurchOfJesusChrist - Apple Touch Icon.user.js
File metadata and controls
33 lines (27 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// ==UserScript==
// @name Apple Touch Icon: ChurchOfJesusChrist.org
// @author J.P. Cranford
// @version 1.3
// @description Adds an Apple Touch Icon for all pages on the Church's main site, using images from their Facebook page.
// @match *://*.churchofjesuschrist.org/*
// @supportURL https://github.com/jpcranford/userscripts/issues
// @homepageURL https://github.com/jpcranford/userscripts
// @updateURL https://raw.githubusercontent.com/jpcranford/userscripts/main/ChurchOfJesusChrist%20-%20Apple%20Touch%20Icon.user.js
// @run-at document-start
// ==/UserScript==
window.addEventListener("load", function() {
var head = document.getElementsByTagName('head')[0];
var icon = document.createElement('link');
icon.setAttribute('rel', 'apple-touch-icon');
icon.setAttribute('sizes', '120x120');
icon.setAttribute('href', 'https://gist.githubusercontent.com/jpcranford/3248724523eb9290a96175fae33268f6/raw/3cff5465837b1c4a1862520efe3b6e0ffce1d820/churchofjesuschrist-appletouchicon-120.png');
head.appendChild(icon);
});
window.addEventListener("load", function() {
var head = document.getElementsByTagName('head')[0];
var icon = document.createElement('link');
icon.setAttribute('rel', 'apple-touch-icon');
icon.setAttribute('sizes', '180x180');
icon.setAttribute('href', 'https://gist.githubusercontent.com/jpcranford/3248724523eb9290a96175fae33268f6/raw/3cff5465837b1c4a1862520efe3b6e0ffce1d820/churchofjesuschrist-appletouchicon-180.png');
head.appendChild(icon);
});