-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbookmarklets.html
More file actions
71 lines (70 loc) · 12.4 KB
/
bookmarklets.html
File metadata and controls
71 lines (70 loc) · 12.4 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
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Bookmarklets</title>
<link rel="icon" type="image/png" href="favicon.png" />
<link href="new.css" rel="stylesheet" type="text/css" />
<link href="snackbar.css" rel="stylesheet" type="text/css" />
<script src="https://kit.fontawesome.com/8df7d40c3b.js" crossorigin="anonymous"></script>
</head>
<body>
<nav class="bar" id="nav">
<h2 id="header"><a class="yex">Yex</a>'s Games</h2>
<a class="updown" id="updown" onclick="b=!b; xd()"><i id='ud' class="fa fa-fw fa-angle-double-up"></i></a>
<a href="index.html" data-tippy-content="Home"><i class="fa fa-fw fa-home"></i></a>
<a href="about.html" data-tippy-content="About"><i class="fa fa-fw fa-info-circle"></i></a>
<a href="games.html" data-tippy-content="Games"><i class="fa fa-fw fa-gamepad"></i></a>
<div class="has-dropdown">
<button id="settings" data-tippy-content="Settings"><i class="fa fa-fw fa-gear"></i></button>
<ul class="dropdown">
<li class="dropdown-item">
<a onclick="theme('red', this)" href="#">Red</a>
</li>
<li class="dropdown-item">
<a onclick="theme('rgb(50, 150, 255)', this)" href="#" class="active">Blue</a>
</li>
<li class="dropdown-item">
<a onclick="theme('limegreen', this)" href="#">Green</a>
</li>
<li class="dropdown-item">
<input type="color" id="thmclr">
<a href="#" data-custom onclick="theme('white', this, true)">Custom</a>
</li>
</ul>
</div>
<a class="active"><i class="fa fa-fw fa-bookmark"></i></a>
<a href="chat.html" data-tippy-content="Chat"><i class="fa fa-fw fa-wechat"></i></a>
<a href="https://discord.gg/V49EfgSWgr" data-tippy-content="Discord"><i class="fab fa-discord"></i></a>
<a href="ide.html" data-tippy-content="IDE"><i class="fa fa-fw fa-code"></i></a>
</nav>
<div class="loader">
<div class="loader-logo">
<img src="favicon.png" class="loader-logo-image"></img>
<h1 class="loader-logo-title"> Yex </h1>
</div>
<div class="loader-bar"></div>
</div>
<div class="loaded-overlay"></div>
<h1> Bookmarklets </h1>
<p> Simply drag and drop these onto your bookmark bar and click them to use them.</p>
<hr>
<div id="list">
<a class="bmrklet" href="javascript:(function () {var script=document.createElement('script');script.src='https://x-ray-goggles.mouse.org/webxray.js';script.className='webxray';script.setAttribute('data-lang','en-US');script.setAttribute('data-baseuri','https://x-ray-goggles.mouse.org');document.body.appendChild(script);}())"> Inspect </a>
<a class="bmrklet" href="javascript:(function () {var title=prompt('Enter title name');var icon=prompt('Enter icon link (or nearpod, canvas, studysync, or docs)');var link=document.querySelector("link[rel*='icon']") || document.createElement('link');link.type='image/x-icon';link.rel='shortcut icon';if(icon=='canvas'){icon='https://du11hjcvx0uqb.cloudfront.net/dist/images/favicon-e10d657a73.ico'}if(icon=='docs'){icon='https://ssl.gstatic.com/docs/documents/images/kix-favicon7.ico'}if(icon=='nearpod'){icon='https://cdn.nearpod.com/favicon.ico'}if(icon=='studysync'){icon='https://www.studysync.com/static/favicon.ico'}link.href=icon;document.title=title;document.getElementsByTagName('head')[0].appendChild(link);})();"> Tab Cloak </a>
<a class = "bmrklet" href="javascript:(function() { window.location.replace(`https://translate.google.com/translate?u=${location}&_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en-US`);})();"> Google Translate </a>
<a class="bmrklet" href="javascript:document.body.contentEditable = 'true'; document.designMode='on'; void 0"> Edit Page </a>
<a class="bmrklet" href="javascript:(function(){var i, nd; function copyChildren(a,b){var i, nn; for(i=0;i<a.childNodes.length;++i) { nn = a.childNodes[i].cloneNode(true); if(nd.importNode) nn = nd.importNode(nn, true); b.appendChild(nn); } } nd=window.open().document; nd.open(); nd.close(); /*140681*/ copyChildren(document.getElementsByTagName('head')[0], nd.getElementsByTagName('head')[0]); copyChildren(document.body, nd.body);})();"> Clone Document </a>
<a class="bmrklet" href="javascript:q = '' + (window.getSelection ?%20window.getSelection()%20:%20document.getSelection%20?%20document.getSelection()%20:%20document.selection.createRange().text);%20if%20(!q)%20q%20=%20prompt(%22Enter%20a%20search%20phrase:%22,%20%22%22);%20if%20(q!=null)%20location=%22http://www.google.com/search?q=%22%20+%20escape(q).replace(/%20/g,%20%22+%22);%20void%200"> Google Search </a>
<a class="bmrklet" href="javascript:(function() { var b = document.createElement('a');var w=document.createElement('iframe');w.allowFullscreen=true;w.style.width = 'calc(100% / 5)';w.style.height = '275px';w.style.bottom = '0%';w.style.right = '0%';w.style.borderColor = 'lime';w.style.borderWidth = '5px';w.style.borderStyle = 'solid';w.style.borderRadius = '20px';w.style.position = 'fixed'; w.style.zIndex = '1000000000001';w.src = 'https:///yexex.github.io/'; b.style.color = 'black';b.style.backgroundColor = 'lime';b.style.padding = '16px 8px 16px 8px';b.style.transition = '0.5s all';b.style.width = 'calc(100% / 5 - 6px)';b.style.bottom = '287.5px';b.style.right = '0%';b.style.borderColor = 'black';b.style.borderWidth = '20px';b.style.borderRadius = '20px';b.text = 'Close';var arista = new FontFace('arista-new', 'url(https://raw.githack.com/Luminous-Technologies/files/main/arista-new.otf) format("opentype")');arista.load().then(function(loaded) {document.fonts.add(loaded); b.style.fontFamily = "'arista-new'";}).catch(function(error) {console.log('Error: ' + error);});b.style.fontSize='15px';b.style.textDecoration = 'none';b.style.textAlign = 'center';b.style.position = 'fixed'; b.style.zIndex = '1000000000002';document.body.appendChild(w);document.body.appendChild(b);b.onmouseleave = function() {b.style.transform = 'scale(1)';};b.onmouseover = function() {b.style.transform = 'scale(1.05)';};b.onclick = function() {w.remove();b.remove();};}());"> Mini Site Embed </a>
<a class="bmrklet" href="javascript:(function(){window.mcbmRootURI='https://yexex.github.io/mc/';window.mcbmScriptURI='mcbm.min.js';window.mcbmLang='eng';var s,ss=window.mcbmRootURI+'js/mcbm-load.min.js';s=document.createElement('script');s.src=ss;document.body.appendChild(s);})();"> MC Fun </a>
<a class="bmrklet" href="javascript:(function() {if(window.location.hostname.includes('blooket.com')) { document.head.insertAdjacentHTML('beforeend',`<style id='dform-styl'> div#dform{background-color:rgba(0,0,0,0.45);width:100vw;height:100vh;margin:0;position:absolute; top:0; left:0; display:grid; place-items:center; z-index:99999; } div#dform > button#dclose{ outline:none; color:white; text-align:center; position:absolute; top:0; right:0; font-size:25px; background-color:red; padding:10px 18px; transition:all 0.3s; border:2px solid white; border-radius:8px; } div#dform > button#dclose:hover{ cursor:pointer; background-color:tomato; } div#dform > form > input[type=number]#g-value{ border-radius:10px; width:260px; height:55px; text-align:center; font-size:25px; background-color:lightblue; transition:all 0.3s; border:3px solid dodgerblue; } div#dform > form > input[type=number]#g-value:focus{ outline:none; border-radius:10px; background-color:powderblue; border:3px solid deepskyblue; } div#dform > form > input[type=number]#g-value::-webkit-outer-spin-button, div#dform > form > input[type=number]#g-value::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; } div#dform > form > button[type=submit]#gsub{ display:inline; height:60px; width:120px; text-align:center; border-radius:10px; font-size:25px; margin-left:8px; background-color:lightblue; outline:none; transition:all 0.3s; border:3px solid dodgerblue; } div#dform > form > button[type=submit]#gsub:hover{ cursor:pointer; background-color:powderblue; } </style>`); const stateNode = Object.values(document.querySelector('#app > div > div'))[1].children[1]._owner.stateNode; const oStateNode = Object.values(document.querySelector('#app > div > div > div:nth-child(2)'))[1].children[2]._owner.stateNode; const state = stateNode.state; document.body.insertAdjacentHTML('afterbegin', `<div id='dform'><button id='dclose'>×</button><form><input type='number' name='g-value' id='g-value' placeholder='Enter Gold Amount'><button type='submit' id='gsub'>Enter</button></form></div>`); document.removeEventListener('keypress', oStateNode.onKeyPress); document.querySelector('div#dform > button#dclose').onclick = () => { document.querySelector('div#dform').remove();document.querySelector('style#dform-styl').remove();document.addEventListener('keypress', oStateNode.onKeyPress); }; document.querySelector('div#dform > form').onsubmit = function(e) { e.preventDefault(); const amount = parseInt(document.querySelector('div#dform > form > input[type=number]#g-value').value); document.querySelector('#app > div > div > div > div:nth-child(3) > div > div').textContent = amount; stateNode.props.firebase.setVal({id:stateNode.props.client.hostId, path:'c/'.concat(stateNode.props.client.name), val: {b:stateNode.props.client.blook,g:amount}}); stateNode.setState({gold: amount, gold2: amount}); document.querySelector('div#dform').remove(); document.querySelector('style#dform-styl').remove(); document.addEventListener('keypress', oStateNode.onKeyPress); }; } else alert('Please use this on Blooket!'); })();"> Blooket Set Gold </a>
<a class="bmrklet" href="javascript:(function() {if(window.location.hostname.includes('blooket.com')) { document.head.insertAdjacentHTML('beforeend',`<style id='dform-styl'> div#dform{background-color:rgba(0,0,0,0.45);width:100vw;height:100vh;margin:0;position:absolute; top:0; left:0; display:grid; place-items:center; z-index:99999; } div#dform > button#dclose{ outline:none; color:white; text-align:center; position:absolute; top:0; right:0; font-size:25px; background-color:red; padding:10px 18px; transition:all 0.3s; border:2px solid white; border-radius:8px; } div#dform > button#dclose:hover{ cursor:pointer; background-color:tomato; } div#dform > form > input[type=number]#g-value{ border-radius:10px; width:260px; height:55px; text-align:center; font-size:25px; background-color:lightblue; transition:all 0.3s; border:3px solid dodgerblue; } div#dform > form > input[type=number]#g-value:focus{ outline:none; border-radius:10px; background-color:powderblue; border:3px solid deepskyblue; } div#dform > form > input[type=number]#g-value::-webkit-outer-spin-button, div#dform > form > input[type=number]#g-value::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; } div#dform > form > button[type=submit]#gsub{ display:inline; height:60px; width:120px; text-align:center; border-radius:10px; font-size:25px; margin-left:8px; background-color:lightblue; outline:none; transition:all 0.3s; border:3px solid dodgerblue; } div#dform > form > button[type=submit]#gsub:hover{ cursor:pointer; background-color:powderblue; } </style>`); const stateNode = Object.values(document.querySelector('#app > div > div'))[1].children[1]._owner.stateNode; const oStateNode = Object.values(document.querySelector('#app > div > div > div:nth-child(3) > div'))[1].children[2]._owner.stateNode; const state = stateNode.state; document.body.insertAdjacentHTML('afterbegin', `<div id='dform'><button id='dclose'>×</button><form><input type='number' name='g-value' id='g-value' placeholder='Enter Token Amount'><button type='submit' id='gsub'>Enter</button></form></div>`); document.removeEventListener('keypress', oStateNode.onKeyPress); document.querySelector('div#dform > button#dclose').onclick = () => { document.querySelector('div#dform').remove();document.querySelector('style#dform-styl').remove();document.addEventListener('keypress', oStateNode.onKeyPress); }; document.querySelector('div#dform > form').onsubmit = function(e) { e.preventDefault(); const amount = parseInt(document.querySelector('div#dform > form > input[type=number]#g-value').value); stateNode.setState({tokens: amount}); document.querySelector('div#dform').remove(); document.querySelector('style#dform-styl').remove(); document.addEventListener('keypress', oStateNode.onKeyPress); }; } else alert('Please use this on Blooket!'); })();"> Blooket Set Tokens (Tower Defense) </a>
</div>
<script src="popper.js"></script>
<script src="tippy.js"></script>
<script src="snackbar.js"></script>
<script src="updown.js"></script>
</body>
</html>