-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathredirect.js
120 lines (99 loc) · 4.96 KB
/
redirect.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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
// Redirecting to links from the book:
// https://nooffice.link/REDIRECT
// which translates to https://nooffice.org/redirect?to=REDIRECT
let links = new Map([
//list of REDIRECT links
['nooffice', 'https://nooffice.org'],
//chapter 19
['ocr', 'https://en.wikipedia.org/wiki/Optical_character_recognition'],
['evernote','https://Evernote.com'],
['swiftscan', 'https://swiftscan.app/en/index.html'],
['ios-scan', 'https://support.apple.com/en-us/HT210336'],
['dropbox', 'https://www.dropbox.com'],
['box', 'https://box.com'],
['gdrive', 'https://drive.google.com'],
['onedrive', 'https://www.microsoft.com/en-us/microsoft-365/onedrive/online-cloud-storage'],
['iwork', 'https://www.apple.com/iwork/'],
['gsheets', 'https://www.google.com/sheets/about/'],
['excel', 'https://www.microsoft.com/en-us/microsoft-365/excel'],
['mfa', 'https://en.wikipedia.org/wiki/Multi-factor_authentication'],
['messages', 'https://support.apple.com/explore/messages'],
['signal', 'https://www.signal.org'],
['telegram', 'https://telegram.org'],
['whatsapp', 'https://www.whatsapp.com'],
['ipadonly', 'https://ipadonly.com/book/'],
['vpn', 'https://en.wikipedia.org/wiki/Virtual_private_network'],
['github', 'https://nooffice.org/why-in-any-company-you-should-be-using-version-control-for-anything-how-we-use-github-not-only-bc2554308455/'],
//chapter 20
['conversation', 'https://en.wikipedia.org/wiki/A_Little_Less_Conversation'],
['slack', 'https://slack.com'],
['msteams', 'https://www.microsoft.com/en-us/microsoft-365/microsoft-teams/group-chat-software'],
['cognitive', 'https://www.pnas.org/content/106/37/15583'],
['digital-minimalism', 'https://www.calnewport.com/books/digital-minimalism/'],
//chapter 21
['offices', 'https://sliwinski.com/tag/office'],
['cabinet', 'https://sliwinski.com/declutter-your-desk-why-i-love-my-clutter-fre/'],
['stand', 'https://michael.team/myoffice/'],
['whiteboard', 'https://sliwinski.com/whiteboard/'],
//chapter 22
//chapter 23
['basecamphires', 'https://m.signalvnoise.com/basecamp-is-hiring-a-product-designer/'],
['nozbehires', 'https://nozbe.com/blog/2020-recruitment-nozbe-java-script-programmer/'],
['forms', 'https://www.google.com/forms/about/'],
['strenghts', 'https://www.gallup.com/cliftonstrengths/en/253868/popular-cliftonstrengths-assessment-products.aspx'],
['slack', 'https://slack.com/'],
['careers', 'https://nozbe.com/careers'],
//chapter 24
['seth-zoom','https://seths.blog/2020/08/toward-a-zoom-agreement/'],
//chapter 25
['calendly', 'https://calendly.com/'],
['zoom', 'https://zoom.us/'],
['vimeo', 'https://vimeo.com/'],
//chapter 26
['p91', 'https://michael.team/podcast-91/'],
['p116', 'https://michael.team/podcast-116/'],
['p141', 'https://michael.team/podcast-141/'],
['p162', 'https://michael.team/podcast-162/'],
['p183', 'https://michael.team/podcast-183/'],
['p195', 'https://michael.team/podcast-195/'],
['distributed', 'https://distributed.blog/2019/11/26/episode-15-inside-the-grand-meetup/'],
['rework', 'https://rework.fm/how-buffer-meets-up/'],
['virtual', 'https://nozbe.com/blog/virtual-covid-safe-online-company-retreat/'],
//chapter 28
['happiness', 'https://www.happinesshypothesis.com/'],
['vacations', 'https://www.bls.gov/opub/ted/2018/private-industry-workers-received-average-of-15-paid-vacation-days-after-5-years-of-service-in-2017.htm'],
['japantime', 'https://www.quora.com/How-much-vacation-time-is-normal-in-Japan-for-a-full-time-worker?share=1'],
['vpolicy', 'https://rework.fm/take-some-time-off/'],
['sabbatical', 'https://rework.fm/take-a-break/'],
//chapter 29
['lizard', 'https://99u.adobe.com/videos/5822/seth-godin-quieting-the-lizard-brain'],
['offices','https://nooffice.org/remote-worker-s-luxury-changing-offices-for-different-tasks-and-better-productivity-7fcfc5d6d3b0/'],
['ludovico', 'https://ludovicoeinaudi.com/disco/the-royal-albert-hall-concert/'],
['augusto', 'https://sliwinski.com/interview-with-augusto-pinaud-for-the-productive-magazine-14/'],
//chapter 30
['1password', 'https://1password.com/business/'],
['authy', 'https://authy.com/'],
['authenticator', 'https://en.wikipedia.org/wiki/Google_Authenticator'],
['security', 'https://nozbe.how/Fyni3'],
['securemac', 'https://nozbe.how/LcvtK'],
['secureios', 'https://nozbe.how/vwgDQ'],
['secureandroid', 'https://nozbe.how/gFEhB'],
['securewindows', 'https://nozbe.how/OoXkY'],
['byod', 'https://en.wikipedia.org/wiki/Bring_your_own_device'],
['nozbehow', 'https://how.nozbe.com'],
['phishing', 'https://www.consumer.ftc.gov/articles/how-recognize-and-avoid-phishing-scams'],
['algo', 'https://github.com/trailofbits/algo'],
//chapter 31
['buffer', 'https://buffer.com/transparency'],
['github', 'https://github.com/Nozbe/NoOffice.org'],
//outro
['derek', 'https://sive.rs/a'],//just in case
]);
function redirect () {
let params = new URLSearchParams(window.location.search);
let to = params.get('to');
if (to) {
document.querySelector("#to").setAttribute("href", links.get(to));
document.querySelector('meta[http-equiv="Refresh"]').setAttribute("content", '0; ' + links.get(to));
}
}