-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsettings.js
More file actions
30 lines (26 loc) · 1.04 KB
/
settings.js
File metadata and controls
30 lines (26 loc) · 1.04 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
//This file contains all the backed code for the advanced settings page.
document.addEventListener('DOMContentLoaded', function() {
document.getElementById('uninstall_link').addEventListener('click', function() {
chrome.tabs.update({ url: 'chrome://extensions' });
});
document.getElementById('donate_link').addEventListener('click', function() {
var x = document.getElementById('paypal');
var domain = document.getElementById('domains');
if (x.style.display === "none") {
domain.style.display = "none";
x.style.display = "block";
} else {
x.style.display = "none";
}
});
document.getElementById('domain_link').addEventListener('click', function() {
var x = document.getElementById('domains');
var paypal = document.getElementById('paypal');
if (x.style.display === "none") {
paypal.style.display = "none";
x.style.display = "block";
} else {
x.style.display = "none";
}
});
});