Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » ocular - scratch forum info
- ninjaMAR
-
1000+ posts
ocular - scratch forum info
xdHow’d you get the name “ocular” Jeffalo?
- Jeffalo
-
1000+ posts
ocular - scratch forum info
ocular will have to be rewritten one day, the search has a ton of issues and im not sure why.
Last edited by Jeffalo (Dec. 20, 2020 16:28:48)
- ninjaMAR
-
1000+ posts
ocular - scratch forum info
when is that day ocular will have to be rewritten one day, the search has a ton of issues and im not sure why.
- Burgher1679
-
1000+ posts
ocular - scratch forum info
31/12/2020 (dd/mm/yyyy) at 23:59:59when is that day ocular will have to be rewritten one day, the search has a ton of issues and im not sure why.
- Ihatr
-
1000+ posts
ocular - scratch forum info
UGH LIGHT MODEHow’d you get the name “ocular” Jeffalo?
- DatOneLefty
-
1000+ posts
ocular - scratch forum info
What are the odds is an issue on my end? ocular will have to be rewritten one day, the search has a ton of issues and im not sure why.
- Jeffalo
-
1000+ posts
ocular - scratch forum info
i doubt it, i made a sanitizer to clean up html, in code tags but it looks like it makes it worse and now there's xss left and rightWhat are the odds is an issue on my end? ocular will have to be rewritten one day, the search has a ton of issues and im not sure why.
Last edited by Jeffalo (Jan. 3, 2021 21:49:23)
- Jeffalo
-
1000+ posts
ocular - scratch forum info
test for ocular:
<b>this is bold?</b> <img onerror='alert(1)'>
<b>this is bold?</b> <img onerror='alert(1)'>
- Jeffalo
-
1000+ posts
ocular - scratch forum info
<b>this is <i>html</i></b>
<b>this is <i>html</i> inside of code tag with code highlighting</b>
- Maximouse
-
1000+ posts
ocular - scratch forum info
<img src onerror='alert(1)'> <img onerror='alert(1)'>
Edit: yes, it works, you have to fix it.
Last edited by Maximouse (Dec. 31, 2020 18:16:38)
- Jeffalo
-
1000+ posts
ocular - scratch forum info
not my bug, it's on lefty's side.<img src onerror='alert(1)'> <img onerror='alert(1)'>
Edit: yes, it works, you have to fix it.
unless i write my own scratch-compliant bbcode parser, i have no way of knowing what is html from bbcode formatting and what is html from posts.
so nothing i can do about it for now…
- Jeffalo
-
1000+ posts
ocular - scratch forum info
ocular search is currently down due to an emergency rewrite, fortunately everythings going well and it should be up sometime soon.
extra points for those who can tell whats new here
extra points for those who can tell whats new here

- Maximouse
-
1000+ posts
ocular - scratch forum info
Post counts, and the username & PFP area is wider. Could you also make dates display in a nicer format? extra points for those who can tell whats new here![]()
Edit: I'm assuming the emergency rewrite is related to XSS, so will code tags be fixed?
Last edited by Maximouse (Jan. 5, 2021 10:05:46)
- Jeffalo
-
1000+ posts
ocular - scratch forum info
i dont think the sidebar thing is supposed to be wider, i must have messed something up there lol Post counts, and the username & PFP area is wider. Could you also make dates display in a nicer format?
Edit: I'm assuming the emergency rewrite is related to XSS, so will code tags be fixed?
ok i'll make dates display in the user's timezone
yes the rewrite is kinda about the xss, lefty temporarily disabled my api access so that we can can work on a solution, i'm using this time to rewrite ocular from the ground up in nuxt.
the solution is like this:
- every post will be reindexed properly
- lefty's api will say if that post has been reindexed without the html problems
- ocular will display all posts that have been reindexed like normal
- posts which haven't be reindexed will be displayed as raw bbcode with a button or something to render the html
- Maximouse
-
1000+ posts
ocular - scratch forum info
It's actually better now – previously different posts had different sidebar width depending on the length of the username. i dont think the sidebar thing is supposed to be wider, i must have messed something up there lol
- mybearworld
-
1000+ posts
ocular - scratch forum info
(removed)
Last edited by mybearworld (June 7, 2023 12:37:08)
- Jeffalo
-
1000+ posts
ocular - scratch forum info
timezone test: it is currently 11:20 when i pst this
- Jeffalo
-
1000+ posts
ocular - scratch forum info
alright sorry for the messy launch, but ocular 2.0 codename binocular is properly released now.
it's server side rendered which means it should theoretically be instant to use once the page is loaded, it can show post counts and all that which is neat, and it also shows local timezones or my timezone if it can't.
it's also all rewritten in a way which hopefully should make updates in the future a lot better.
i plan on separating specific posts, topics and users from search, then their URLs can be something like /post/1234 or /user/jeffalo
it's server side rendered which means it should theoretically be instant to use once the page is loaded, it can show post counts and all that which is neat, and it also shows local timezones or my timezone if it can't.
it's also all rewritten in a way which hopefully should make updates in the future a lot better.
i plan on separating specific posts, topics and users from search, then their URLs can be something like /post/1234 or /user/jeffalo
- ninjaMAR
-
1000+ posts
ocular - scratch forum info
anything else? alright sorry for the messy launch, but ocular 2.0 codename binocular is properly released now.
it's server side rendered which means it should theoretically be instant to use once the page is loaded, it can show post counts and all that which is neat, and it also shows local timezones or my timezone if it can't.
it's also all rewritten in a way which hopefully should make updates in the future a lot better.
i plan on separating specific posts, topics and users from search, then their URLs can be something like /post/1234 or /user/jeffalo
- Discussion Forums
- » Advanced Topics
-
» ocular - scratch forum info