summaryrefslogtreecommitdiff
path: root/extensions.html
blob: c7735ee431d8ddaf65e334de8f75bd842ec9f4bf (plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="ie=edge">
        <meta name="description" content="This is the personal website for the real Jacob McDonnell. Feel free to look around, you might find something interesting."/>
	<meta name="author" content="Jacob McDonnell"/>
	<meta name="keywords" content="Jacob,McDonnell,Jacob McDonnell"/>
	<title>Extensions for Chrome</title>
        <link id="cssFile" href="CSS/PurpleAndDark.css" rel="stylesheet" type="text/css">
        <script src="JS/main.js"></script>
        <script src="JS/cookies.js"></script>
    </head>
    <body onload="checkCookie()">
        <aside id="NavBar">
            <img src="images\menu.svg" id="menuicon" class="menuimg">
            <nav>
                <ul id="menuLinks">
                    <p id="menuX" class="MenuX">X</p>
                    <li><a href="https://jacobmcdonnell.com/">Home</a></li>
                    <li><button onclick="dropdown('pages')" class="dropbtn">Pages</button>
  		    <div id="pages" class="dropdown-content">
			<a href="https://jacobmcdonnell.com/">Home</a>
			<a href="https://jacobmcdonnell.com/morsecode/">Morse code</a>
                    	<a href="https://jacobmcdonnell.com/binary/" id="pLink">Binary</a>
                    	<a href="https://jacobmcdonnell.com/Pacman/" id="pLinks">Google Pacman</a>
 			<a href="https://jacobmcdonnell.com/settings.html">Settings and Information</a>
 			<a href="https://jacobmcdonnell.com/extensions.html">Chrome Extensions</a>
		    </div></li>
                    <li><a href="https://duckduckgo.com/">DuckDuckGo</a></li>
		    <li><button onclick="dropdown('gsites')" class="dropbtn">Google Sites</button>
  		    <div id="gsites" class="dropdown-content">
    			<a href="https://mail.google.com/mail/?tab=wm&authuser=0&ogbl">Gmail</a>
                        <a href="https://play.google.com/music/listen?authuser&u=0#/home">Google Play Music</a>
                    	<a href="https://photos.google.com/">Google Photos</a>
                    	<a href="https://domains.google.com/m/registrar/">Google Domains</a>
                    	<a href="https://drive.google.com/drive/u/0/my-drive">Google Drive</a>

		    </div></li>
                    <li><a href="https://www.youtube.com">Youtube</a></li>
		    <li><button onclick="dropdown('gitSites')" class="dropbtn">Git Sites</button>
  		    <div id="gitSites" class="dropdown-content">
    			<a href="https://www.github.com/">Github</a>
                    	<a href="https://gitlab.com/">GitLab</a>
		    </div></li>
                    <li><a href="https://www.twitch.tv/">Twitch</a></li>
                    <li><a href="http://www.w3schools.com/html/default.asp">html tutorial</a></li>
                </ul>
            </nav>
        </aside>
        <main>
		<h1>Jacob's Chrome Extension Grabber</h1>
		<p>Note: When selecting multiple from the quick selector you will have to allow pop ups or select them one at a time.</p>
		<h2>Quick Selector</h2>
		<form id="extensions">
			<input type="checkbox" id="gcbommkclmclpchllfjekcdonpmejbdp" name="gcbommkclmclpchllfjekcdonpmejbdp" value="gcbommkclmclpchllfjekcdonpmejbdp"><label for="gcbommkclmclpchllfjekcdonpmejbdp">HTTPS Everywhere</label><br>
			<input type="checkbox" id="cjpalhdlnbpafiamejdnhcphjbkeiagm" name="cjpalhdlnbpafiamejdnhcphjbkeiagm" value="cjpalhdlnbpafiamejdnhcphjbkeiagm"><label for="cjpalhdlnbpafiamejdnhcphjbkeiagm">Ublock Origin</label><br>
			<input type="checkbox" id="pkehgijcmpdhfbdbbnkijodmdjhbjlgp" name="pkehgijcmpdhfbdbbnkijodmdjhbjlgp" value="pkehgijcmpdhfbdbbnkijodmdjhbjlgp"><label for="pkehgijcmpdhfbdbbnkijodmdjhbjlgp">Privacy Badger</label><br>
			<input type="checkbox" id="hdokiejnpimakedhajhdlcegeplioahd" name="hdokiejnpimakedhajhdlcegeplioahd" value="hdokiejnpimakedhajhdlcegeplioahd"><label for="hdokiejnpimakedhajhdlcegeplioahd">LastPass</label><br>
			<input type="checkbox" id="icpgjfneehieebagbmdbhnlpiopdcmna" name="icpgjfneehieebagbmdbhnlpiopdcmna" value="icpgjfneehieebagbmdbhnlpiopdcmna"><label for="icpgjfneehieebagbmdbhnlpiopdcmna">New Tab Redirect</label><br>
			<input type="submit" value="Install">
		</form>
		<h2>Paste Chrome Webstore Link Here:</h2>
		<form id="chrome" onsubmit="idGrabber()">
			<input type="text" id="links"><br>
			<input type="submit" value="Install">
		</form>
        </main>
	<script>
                const myForm = document.getElementById("extensions");
                myForm.addEventListener("submit", (e) => {
                    var formData = new FormData(myForm);
                    e.preventDefault();
                    for(var value of formData.values()){
			installer(value);
                    }
                });
		function idGrabber(){
			installer(document.getElementById('links').value.split("/")[6]);
		}
		function installer(value){
                        console.log(value);
			window.open("https://clients2.google.com/service/update2/crx?response=redirect&prodversion=49.0&acceptformat=crx3&x=id%3D" + value + "%26installsource%3Dondemand%26uc");
		}
                (function() {
                var menu = document.querySelector('ul'),
                    menulink = document.getElementById('menuicon'),
                    menuclose = document.getElementById('menuX');
                menulink.addEventListener('click', function(e) {
                    menu.classList.toggle('active');
                    e.preventDefault();
                });
                menuX.addEventListener('click', function(e) {
                    menu.classList.toggle('active');
                    e.preventDefault();
                });
                })();
	</script>
    </body>
</html>