Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
var GITHUB_ISSUES_LINK =
"https://api.github.com/repos/nelsontky/gh-pages-url-shortener-db/issues/";
var PATH_SEGMENTS_TO_SKIP = 0;
// Only available after owner closes
// example yourGithubName
// if you don't need Comment out lines 17, 18, 52, 53, 54, 55, 56
var ME =
'nelsontky'



/**
* DO NOT TOUCH ANYTHING BELOW THIS COMMENT UNLESS YOU KNOW WHAT YOU ARE DOING
Expand Down Expand Up @@ -42,6 +49,11 @@
var payload = JSON.parse(xhr.response);
var message = payload.message;
var title = payload.title;
var login = payload.closed_by.login;

if (login!=ME){
window.replace=homepage;
}

// Workaround IE 11 lack of support for new URL()
var url = document.createElement("a");
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ To feature your fork here, edit this section and open a PR!
- [eexit.github.io/s](https://github.com/eexit/s) - Created a bash script that
allows for shortening of URLs straight on the command line! Check out his
script
[here](https://github.com/nelsontky/gh-pages-url-shortener/issues/49#issue-745134937).
[here](https://github.com/nelsontky/gh-pages-url-shortener/issues/49#issue-745134937).
- [here An update, that requires the owner to close the issue before it can be used](https://github.com/wmz1024-files/gh-pages-url-shortener).
- [gh-short-url](https://github.com/mayandev/gh-short-url) - A npm command line
tool that uses GitHub pages to convert short URLs.