forked from lockSmxth5x/secondRepo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbookmarklets.html
75 lines (72 loc) · 11 KB
/
bookmarklets.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Bookmarklets</title>
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png?v=5">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png?v=5">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png?v=5">
<link rel="manifest" href="site.webmanifest?v=5">
<link rel="mask-icon" href="safari-pinned-tab.svg?v=5" color="#a830bd">
<link rel="shortcut icon" href="favicon.ico?v=5">
<meta name="msapplication-TileColor" content="#9f00a7">
<meta name="theme-color" content="#ffffff">
<link href="new.css" rel="stylesheet" type="text/css" />
<link href="snackbar.css" rel="stylesheet" type="text/css" />
<base target="_parent" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" integrity="sha512-1ycn6IcaQQ40/MKBW2W4Rhis/DbILU74C1vSrLJxCq57o941Ym01SwNsOMqvEBFlcgUa6xLiPY/NS5R+E6ztJQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body>
<header>
<h2 id="header"><a class="yex">Yex</a>'s Games</h2>
<nav>
<a href="index.html" data-tippy-content="Home"><i class="fas fa-home"></i></a>
<a href="about.html" data-tippy-content="About"><i class="fas fa-info-circle"></i></a>
<a href="games.html" data-tippy-content="Games"><i class="fas fa-gamepad"></i></a>
<div class="has-dropdown">
<button id="settings" data-tippy-content="Settings"><i class="fas fa-cog fa-spin"></i></button>
<ul class="dropdown">
<li class="dropdown-item">
<button data-color="red">Red</button>
</li>
<li class="dropdown-item">
<button data-color="rgb(50, 150, 255)" class="active">Blue</button>
</li>
<li class="dropdown-item">
<button data-color="limegreen">Green</button>
</li>
<li class="dropdown-item">
<input type="color" id="thmclr">
<button data-custom>Custom</button>
</li>
</ul>
</div>
<a class="active"><i class="fas fa-bookmark"></i></a>
<a href="chat.html" data-tippy-content="Chat"><i class="fas fa-comments"></i></a>
<a href="privacy-policy.html" data-tippy-content="Privacy Policy"><i class="fas fa-user-lock"></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="fas fa-code"></i></a>
</nav>
</header>
<main>
<h1> Bookmarklets </h1>
<p> Simply drag and drop these onto your bookmark bar and click them to use them.</p>
<hr>
<div class="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.head.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() {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:100dvw;height:100dvh;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:100dvw;height:100dvh;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>
</main>
<script src="popper.js"></script>
<script src="tippy.js"></script>
<script src="snackbar.js"></script>
<script src="updown.js"></script>
</body>
</html>