javascript: (
function () {
const USER = "assout";
const REPO = "dotfiles";
const BRANCH = "master";
const FILE = "";
var user = prompt('user (default : ' + USER + ')');
if (user == null) {
return false;
} else if (user == "") {
user = USER;
}
var repo = prompt('repository (default : ' + REPO + ')');
if (repo == null) {
return false;
} else if (repo == "") {
repo = REPO;
}
var branch = prompt('branch (default : ' + BRANCH + ')');
if (branch == null) {
return false;
} else if (branch == "") {
branch = BRANCH;
}
var file = prompt('file (default : ' + BRANCH + ')');
if (file == null) {
return false;
} else if (file == "") {
file = FILE;
}
window.location.href = "https://raw.github.com/" + user+ "/" + repo + "/" + branch + "/" + file;
})();