-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathThing.js
100 lines (77 loc) · 3.76 KB
/
Thing.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
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
//Sets initial vars
var halias = ["HELP", "?"];
var caiden = ["qwe", "asd", "hi"];
var halias = ["HELP", "?"];
//Makes initial prompt
var ting = prompt("Thing:");
//Uses input from prompt to Un-CaSe-SeNsItIzE
var thing = ting.toUpperCase();
//Beggining of Things
//Opens Gmail
if (thing=="GMAIL") window.open("https://gmail.com","_self");
//Opens Skyward
else if (thing=="SKYWARD") window.open("https://skyward.iscorp.com/scripts/wsisa.dll/WService=wsedumchenryil/seplog01.w","_self");
//Opens this.
else if (thing=="GITHUB") window.open("https://github.com/CaidenBlock/Bookmarklet/edit/master/Thing.js","_self");
//Opens Pearson Realize
else if (thing=="PEARSON") window.open("https://accounts.google.com/o/saml2/initsso?idpid=C00t0cavg&spid=701197821690&forceauthn=false","_self");
//Share probably Delete
/*else if (thing=="SHARE") {
var ID = prompt("Type person's ID \nE.g. 'cblock700' or first initial, last name, three numbers###:");
var IDlc = ID.toLowerCase();
if( IDlc=="cblock700") alert("That was the example...\nWhy would you even put me? I made this!");
else window.open("mailto:" + ID + "@d15.org?subject=Bookmark%20Thing&body=javascript:(function(d,u,s){s=d.createElement(\'script\');s.type=\'text\/javascript\';s.charset=\'utf-8\';s.src=u;d.body.appendChild(s)})(document,\'https:\/\/cdn.rawgit.com\/CaidenBlock\/Bookmarklet\/master\/Thing.js\')");
}*/
//EDIT PAGE
else if (thing=="EDIT") {
var edit = window.confirm("Edit\n\nOK = ON\nCancel = OFF");
if( edit==true) {document.body.contentEditable = 'true'; document.designMode='on'; void 0;}
else {document.body.contentEditable = 'false'; document.designMode='false'; void 0;}
}
//FIREBUG LITE
else if (thing=="INSPECT") {
var firebug = document.createElement('script');
firebug.setAttribute('src', 'http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js');
document.body.appendChild(firebug);
(function() {
if (window.firebug.version) {
firebug.init();
} else {
setTimeout(arguments.callee);
}
})();
void(firebug);
}
//USER ENTRIES
else if (thing=="TEST") {
var thinglist = document.createElement('script');
thinglist.src = 'https://rawgit.com/CaidenBlock/Bookmarklet/master/ThingEntries.js';
document.body.appendChild(thinglist);
var customid = prompt("Custom ID:");
if (operation[customid]=="open") window.open(newthing[customid],'_self');
else if (operation[customid]=="say") alert(newthing[customid]);
else alert("entry: " + entries[customid] + " operation: " + operation[customid] + " thing: " + newthing[customid]);
}
//NEW!!!
else if (thing=="NEW") {
alert("Sorry, this feature is not avalible yet");
}
else if (thing=="UPDATE") alert("1.9.9-beta-r3.1\nThings are about to happen\nBe Prepared\n\nAdded Groundwork for JS-Page.");
//OLD STUFF
//var censor = ["To-do"];
//else if(censor.some(v => v===thing))alert("Censored");
//Simple Text stuff.
//Names
else if( thing.indexOf('CAIDEN') >= 0) alert("Caiden was here.");
else if( thing.indexOf('JOEY') >= 0) alert("Joey was here.");
else if( thing.indexOf('DIEGO') >= 0) alert("Diego was here.");
else if( thing.indexOf('LANDON') >= 0) alert("Landon wasn't here.");
else if( thing.indexOf('TYLER') >= 0) alert("Tyler wasn't here.");
else if( thing.indexOf('NAME') >= 0) alert("We don't allow names here.");
//Other
else if (thing=="EASTER EGG") window.open("https:en.wikipedia.org/wiki/Easter_egg_(media)");
else if (thing=="TODO") alert("Notepad\n Google form submit stuff\nMake Custom Things work.\neverything");
else if (thing=="CREATOR") alert("Caiden Block made this!");
//else if(halias.some(v => v===thing))alert("🅢🅘🅣🅔🅢\:\nGmail\nPearson\nSkyward\n\n🅕🅤🅝\:\nEdit\nInspect\nYou can find the rest of the secrets");
else alert(ting);
//https://jshint.com/ to check syntax.