Skip to content

Instantly share code, notes, and snippets.

View jdmaresco's full-sized avatar

JD Maresco jdmaresco

View GitHub Profile
@jdmaresco
jdmaresco / notion2blog.js
Created May 22, 2020 16:48
Notion.so > Personal Blog | custom domain + disqus comment
const MY_DOMAIN = "support.indinerocorp.com"
const START_PAGE = "https://www.notion.so/inDinero-Help-Center-465343520bbe4af19f3b0144b70a1192"
addEventListener('fetch', event => {
event.respondWith(fetchAndApply(event.request))
})
const corsHeaders = {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET, HEAD, POST,PUT, OPTIONS",
@jdmaresco
jdmaresco / notion2blog.js
Created May 22, 2020 16:48
Notion.so > Personal Blog | custom domain + disqus comment
const MY_DOMAIN = "support.indinerocorp.com"
const START_PAGE = "https://www.notion.so/inDinero-Help-Center-465343520bbe4af19f3b0144b70a1192"
addEventListener('fetch', event => {
event.respondWith(fetchAndApply(event.request))
})
const corsHeaders = {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET, HEAD, POST,PUT, OPTIONS",