permissions and regexr
This commit is contained in:
parent
d3967a43a4
commit
54250ab4dd
0
.gitignore
vendored
Normal file → Executable file
0
.gitignore
vendored
Normal file → Executable file
0
startpage/README.md
Normal file → Executable file
0
startpage/README.md
Normal file → Executable file
93
startpage/dome.js
Normal file → Executable file
93
startpage/dome.js
Normal file → Executable file
@ -34,62 +34,63 @@
|
|||||||
// div.innerHTML : {a.innerHTML : a.href}
|
// div.innerHTML : {a.innerHTML : a.href}
|
||||||
var sites = {
|
var sites = {
|
||||||
"E-Mail": {
|
"E-Mail": {
|
||||||
"GMail" : "https://mail.google.com/mail/u/0/",
|
"GMail": "https://mail.google.com/mail/u/0/",
|
||||||
"Posteo" : "https://www.posteo.de",
|
"Posteo": "https://www.posteo.de",
|
||||||
"edata" : "https://mail.edatasystems.de",
|
"edata": "https://mail.edatasystems.de",
|
||||||
"gCal" : "https://calendar.google.com/calendar/r",
|
"gCal": "https://calendar.google.com/calendar/r",
|
||||||
"Keep" : "https://keep.google.com/u/0/"
|
"Keep": "https://keep.google.com/u/0/"
|
||||||
},
|
},
|
||||||
"Work": {
|
"Work": {
|
||||||
"TFS" : "http://192.168.30.70:8080/tfs",
|
"TFS": "http://192.168.30.70:8080/tfs",
|
||||||
"wiki" : "http://192.168.0.10:83",
|
"wiki": "http://192.168.0.10:83",
|
||||||
"ds.de/admin" : "http://192.168.100.55/administrator",
|
"ds.de/admin": "http://192.168.100.55/administrator",
|
||||||
"mari" : "https://mari.edatasystems.de"
|
"mari": "https://mari.edatasystems.de"
|
||||||
},
|
},
|
||||||
"Social": {
|
"Social": {
|
||||||
"WhatsApp" : "https://web.whatsapp.com",
|
"WhatsApp": "https://web.whatsapp.com",
|
||||||
"Telegram" : "https://web.telegram.com",
|
"Telegram": "https://web.telegram.com",
|
||||||
"discord" : "https://discordapp.com/channels/@me",
|
"discord": "https://discordapp.com/channels/@me",
|
||||||
"YouTube" : "https://www.youtube.com/",
|
"YouTube": "https://www.youtube.com/",
|
||||||
},
|
},
|
||||||
"Games": { // To find the game ID check the url in the store page or the community page
|
"The usual": { // To find the game ID check the url in the store page or the community page
|
||||||
"CS:GO" : "steam://run/730",
|
"Amazon": "https://www.amazon.de",
|
||||||
"Besiege" : "steam://run/346010",
|
"eBay": "https://www.ebay.de",
|
||||||
"Rust" : "steam://run/252490",
|
"PayPal": "http://www.paypal.com",
|
||||||
"Insurgency" : "steam://run/222880",
|
"Lieferando": "http://www.lieferando.de",
|
||||||
"West of Loathing" : "steam://run/597220",
|
//"West of Loathing" : "steam://run/597220",
|
||||||
"POSTAL 2" : "steam://run/223470"
|
//"POSTAL 2" : "steam://run/223470"
|
||||||
},
|
},
|
||||||
"News": {
|
"News": {
|
||||||
"worldnews" : "https://reddit.com/r/worldnews",
|
"worldnews": "https://reddit.com/r/worldnews",
|
||||||
"golem" : "https://www.golem.de/",
|
"golem": "https://www.golem.de/",
|
||||||
"heise" : "https://www.heise.de/",
|
"heise": "https://www.heise.de/",
|
||||||
"WAZ" : "http://www.waz.de",
|
"WAZ": "http://www.waz.de",
|
||||||
"FAZ" : "http://www.faz.net",
|
"FAZ": "http://www.faz.net",
|
||||||
"HackerNews" : "https://news.ycombinator.com/"
|
"HackerNews": "https://news.ycombinator.com/"
|
||||||
},
|
},
|
||||||
"Programming": {
|
"Programming": {
|
||||||
"/r/programming" : "https://reddit.com/r/programming",
|
"/r/programming": "https://reddit.com/r/programming",
|
||||||
"Github" : "https://github.com/",
|
"Github": "https://github.com/",
|
||||||
"gisthub" : "https://gist.github.com/",
|
"gisthub": "https://gist.github.com/",
|
||||||
"regex101" : "https://regex101.com/",
|
"regex101": "https://regex101.com/",
|
||||||
"extensions" : "http://extensionmethod.net/csharp"
|
"regexr": "https://regexr.com/",
|
||||||
|
"extensions": "http://extensionmethod.net/csharp"
|
||||||
},
|
},
|
||||||
"reddit": {
|
"reddit": {
|
||||||
"linux" : "https://reddit.com/r/linux",
|
"linux": "https://reddit.com/r/linux",
|
||||||
"thinkpad" : "https://reddit.com/r/thinkpad",
|
"thinkpad": "https://reddit.com/r/thinkpad",
|
||||||
"unixporn" : "https://reddit.com/r/unixporn",
|
"unixporn": "https://reddit.com/r/unixporn",
|
||||||
"games" : "https://reddit.com/r/games",
|
"games": "https://reddit.com/r/games",
|
||||||
"switchhaxing" : "https://reddit.com/r/switchhaxing",
|
"switchhaxing": "https://reddit.com/r/switchhaxing",
|
||||||
"switchhacks" : "https://reddit.com/r/switchhacks",
|
"switchhacks": "https://reddit.com/r/switchhacks",
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var search = {
|
var search = {
|
||||||
"default": "https://google.com/search",
|
"default": "https://google.com/search",
|
||||||
"d": "https://duckduckgo.com/",
|
"d": "https://duckduckgo.com/",
|
||||||
"s": "https://startpage.com/do/search"
|
"s": "https://startpage.com/do/search"
|
||||||
};
|
};
|
||||||
|
|
||||||
var pivotmatch = 0;
|
var pivotmatch = 0;
|
||||||
var totallinks = 0;
|
var totallinks = 0;
|
||||||
@ -144,10 +145,10 @@ function matchLinks(regex = prevregexp) {
|
|||||||
document.getElementById("action").children[0].name = "q";
|
document.getElementById("action").children[0].name = "q";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
document.getElementById("main").style.height = document.getElementById("main").children[0].offsetHeight+"px";
|
document.getElementById("main").style.height = document.getElementById("main").children[0].offsetHeight + "px";
|
||||||
}
|
}
|
||||||
|
|
||||||
document.onkeydown = function(e) {
|
document.onkeydown = function (e) {
|
||||||
switch (e.keyCode) {
|
switch (e.keyCode) {
|
||||||
case 38:
|
case 38:
|
||||||
pivotmatch = pivotmatch >= 0 ? 0 : pivotmatch + 1;
|
pivotmatch = pivotmatch >= 0 ? 0 : pivotmatch + 1;
|
||||||
@ -163,7 +164,7 @@ document.onkeydown = function(e) {
|
|||||||
document.getElementById("action").children[0].focus();
|
document.getElementById("action").children[0].focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
document.getElementById("action").children[0].onkeypress = function(e) {
|
document.getElementById("action").children[0].onkeypress = function (e) {
|
||||||
if (e.key == "ArrowDown" || e.key == "ArrowUp") {
|
if (e.key == "ArrowDown" || e.key == "ArrowUp") {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -171,14 +172,14 @@ document.getElementById("action").children[0].onkeypress = function(e) {
|
|||||||
|
|
||||||
function displayClock() {
|
function displayClock() {
|
||||||
now = new Date();
|
now = new Date();
|
||||||
clock = (now.getHours() < 10 ? "0"+now.getHours() : now.getHours())+":"
|
clock = (now.getHours() < 10 ? "0" + now.getHours() : now.getHours()) + ":"
|
||||||
+(now.getMinutes() < 10 ? "0"+now.getMinutes() : now.getMinutes())+":"
|
+ (now.getMinutes() < 10 ? "0" + now.getMinutes() : now.getMinutes()) + ":"
|
||||||
+(now.getSeconds() < 10 ? "0"+now.getSeconds() : now.getSeconds());
|
+ (now.getSeconds() < 10 ? "0" + now.getSeconds() : now.getSeconds());
|
||||||
document.getElementById("clock").innerHTML = clock;
|
document.getElementById("clock").innerHTML = clock;
|
||||||
}
|
}
|
||||||
|
|
||||||
window.onload = matchLinks();
|
window.onload = matchLinks();
|
||||||
document.getElementById("action").onsubmit = function() {
|
document.getElementById("action").onsubmit = function () {
|
||||||
svalue = this.children[0].value;
|
svalue = this.children[0].value;
|
||||||
if (svalue.charAt(1) == ' ' && search.hasOwnProperty(svalue.charAt(0))) {
|
if (svalue.charAt(1) == ' ' && search.hasOwnProperty(svalue.charAt(0))) {
|
||||||
this.children[0].value = svalue.substring(2);
|
this.children[0].value = svalue.substring(2);
|
||||||
|
0
startpage/favicon.png
Normal file → Executable file
0
startpage/favicon.png
Normal file → Executable file
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
0
startpage/font/Montserrat-Regular.otf
Normal file → Executable file
0
startpage/font/Montserrat-Regular.otf
Normal file → Executable file
0
startpage/font/SIL Open Font License.txt
Normal file → Executable file
0
startpage/font/SIL Open Font License.txt
Normal file → Executable file
0
startpage/index.html
Normal file → Executable file
0
startpage/index.html
Normal file → Executable file
0
startpage/index_old.html
Normal file → Executable file
0
startpage/index_old.html
Normal file → Executable file
0
startpage/mongoose-free-6.9.exe
Normal file → Executable file
0
startpage/mongoose-free-6.9.exe
Normal file → Executable file
0
startpage/mongoose.conf
Normal file → Executable file
0
startpage/mongoose.conf
Normal file → Executable file
0
startpage/style.css
Normal file → Executable file
0
startpage/style.css
Normal file → Executable file
0
startpage/style_old.css
Normal file → Executable file
0
startpage/style_old.css
Normal file → Executable file
0
startpage/styles.css
Normal file → Executable file
0
startpage/styles.css
Normal file → Executable file
0
vim/.vimrc
Normal file → Executable file
0
vim/.vimrc
Normal file → Executable file
Loading…
Reference in New Issue
Block a user