Open DudeThatsErin opened 1 year ago
Works perfectly for me. Thank you for sharing! 🙏
you saved my site
This is awesome! :) Thank you! Has anyone figured out how to make the favicons and meta tags work?
Hmm, not working. Returns 301as an original JS code.
@D8mbSniper preview on cloudflare not works, also make sure to put your site id and domain at the top.
Also cloudflare can take some time to update. i recommend to purge cloudflare cache and try again
@joaco05 Thanks for the help!
I've set A record of @
to 192.0.2.0
Edited the script and purged cache, and waited for 10 minutes.
I've also added me.mydomain.com/*
as a route
Still the worker redirects me to https://mydomain.com/notion_id
with 301 in Cloudflare and ERR_NAME_NOT_RESOLVED in my browser :(
Am i missing something?
It worked after 30 mins and purging cache both locally and on cloudflare
works perfectly.how can i just add search tab on
Cool. thanks for your help. It works great for me. But in my case, I need to remove this code.
function enableConsoleEffectAndSetMode(mode){
if (__console && !__console.isEnabled) {
__console.enable();
window.location.reload(); <-- this
} else {
__console.environment.ThemeStore.setState({ mode: mode });
localStorage.setItem('newTheme', JSON.stringify({ mode: mode }));
}
}
Thank you
Hey @DudeThatsErin thanks for the code, and the second part that removing the topbar items. But next to the dark mode toggle there is still a three-dot menu item that appears, can we remove that too?
Thanks for your code, it's very useful to me!
Hey @DudeThatsErin thanks for the code, and the second part that removing the topbar items. But next to the dark mode toggle there is still a three-dot menu item that appears, can we remove that too?
Yes, just change this:
div.notion-topbar-mobile > div:nth-child(1n).toggle-mode { display: block !important; }
to this:
div.notion-topbar-mobile > div:nth-child(1n).toggle-mode { display: none !important; }
Yes, just change this:
div.notion-topbar-mobile > div:nth-child(1n).toggle-mode { display: block !important; }
to this:
div.notion-topbar-mobile > div:nth-child(1n).toggle-mode { display: none !important; }
Thanks @DudeThatsErin but I think you misunderstood, I do not want to remove the dark mode toggle. I was trying to remove the 3dot Notion menu. I managed to get it done, removing all but keeping the dark mod toggle, both on desktop and mobile.
div.notion-topbar > div > div:nth-child(3) { display: none !important; }
div.notion-topbar > div > div:nth-child(4) { display: none !important; }
div.notion-topbar > div > div:nth-child(5) { display: none !important; }
div.notion-topbar > div > div:nth-child(6) { display: none !important; }
div.notion-topbar > div > div:nth-child(7) { display: none !important; }
div.notion-topbar > div > div:nth-child(1n).toggle-mode { display: block !important; }
div.notion-topbar-mobile > div:nth-child(3) { display: none !important; }
div.notion-topbar-mobile > div:nth-child(4) { display: none !important; }
div.notion-topbar-mobile > div:nth-child(7) { display: none !important; }
div.notion-topbar-mobile > div:nth-child(1n).toggle-mode { display: block !important; }
Thanks a lot to everyone for amazing fixes to Fruition. I have combined all the fixes and added more functionality in my own version of Notion hosting (based on Fruition).
See #274 :)
Thanks a lot to everyone for amazing fixes to Fruition. I have combined all the fixes and added more functionality in my own version of Notion hosting (based on Fruition).
See #274 :)
I wish I could use it but I don't have access to npm via my hosting provider where my domain is registered.
Thanks a lot to everyone for amazing fixes to Fruition. I have combined all the fixes and added more functionality in my own version of Notion hosting (based on Fruition). See #274 :)
I wish I could use it but I don't have access to npm via my hosting provider where my domain is registered.
Maybe I am not understanding you correctly, but the idea is that you install notehost and create worker repo with it on your LOCAL machine. And then you configure it locally and deploy it to Cloudflare.
I have it working here: https://appseeker.org
I wanted to share this cause it took me 4 hours tonight to get my website working on Firefox, Brave, and Chrome with the dark/light toggle and everything else.
This is the code I'm using:
Remember to replace MYDOMAIN with your domain URL and YOURPAGEID with the page IDs you would like.
This code WILL show everything on the top bar. If you want to hide everything on the top bar find the
class HeadRewriter()
and replace the code with this:I want to note that I am showing everything cause I like to have comments on my sites and it was a troubleshooting step cause the dark/light mode button was not showing for me in any browser though the rest of the website was working perfectly. The code above does not hide the toggle at all (in fact, it makes sure it is showing) but for some reason that wasn't working for me.
Anyway, I wanted to share others so they didn't have to hassle.
One thing this code does not fix is the issue where when you press the back button it wants you to login to Notion. #237 I'm not sure how to fix it. The solutions in that issue do not work for me. I don't get the same errors as that BUT I also don't get a website that works when I try to combine this stuff.