forked from Sulagna-Dutta-Roy/GGExtensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.js
35 lines (30 loc) · 1.02 KB
/
popup.js
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
34
35
document.getElementById('increaseText').addEventListener('click', () => {
chrome.scripting.executeScript({
target: { tabId: chrome.tabs.Tab.id },
function: increaseTextSize
});
});
document.getElementById('decreaseText').addEventListener('click', () => {
chrome.scripting.executeScript({
target: { tabId: chrome.tabs.Tab.id },
function: decreaseTextSize
});
});
document.getElementById('changeBg').addEventListener('click', () => {
chrome.scripting.executeScript({
target: { tabId: chrome.tabs.Tab.id },
function: changeBackgroundColor
});
});
document.getElementById('increaseContrast').addEventListener('click', () => {
chrome.scripting.executeScript({
target: { tabId: chrome.tabs.Tab.id },
function: increaseContrast
});
});
document.getElementById('decreaseContrast').addEventListener('click', () => {
chrome.scripting.executeScript({
target: { tabId: chrome.tabs.Tab.id },
function: decreaseContrast
});
});