Have you tried out Kagi Translate's browser extension yet? Works on Mastodon as well!
Kagi Translate's browser extension enables you to translate web pages and selected text directly in your browser. Also supports in-line translations for a range of social media (including Mastodon!) and streaming platforms.
https://www.youtube.com/watch?v=6Vc6Whw6IwY
Grab it here: https://translate.kagi.com/extension
Specific to GLSL #version checks if our parser supports the given version. Whilst #extension checks whether our parser supports a given extension possibly enabling or disabling it, or complaining about its support or lack thereof. Depending on what's requested.
Funny thing about discussing the C, GLSL, etc preprocessor on the fediverse. Directives get confused for hashtags!
4/4 Fin!
I'd track a stack of control-flow preprocessor lines tracking whether to keep or discard the lines between them, inserting #line where needed. This is how I'd handle #if, #elif, #else, #endif, #ifdef, #ifndef, #elifdef, #elifndef.
Some of these take identifiers whose presence it should check in the macros table, others would interpret infix expressions via a couple stacks & The Shunting Yard Algorithm. Or they simply end a control-flow block.
#undef removes an entry from the macros table.
3/4
Specific to GLSL #version checks if our parser supports the given version. Whilst #extension checks whether our parser supports a given extension possibly enabling or disabling it, or complaining about its support or lack thereof. Depending on what's requested.
Funny thing about discussing the C, GLSL, etc preprocessor on the fediverse. Directives get confused for hashtags!
4/4 Fin!
I just published an update to the Transclusion extension (https://feather.wiki/?page=extensions_transclusion) that makes it adjust the page content before rendering, preventing the issue with flickering that was present before!
If you are linking to the extension from the feather.wiki website, then it should update automatically. Otherwise, you will need to copy the extension file to your Feather Wiki to get the fix.
I just published an update to the Transclusion extension (https://feather.wiki/?page=extensions_transclusion) that makes it adjust the page content before rendering, preventing the issue with flickering that was present before!
If you are linking to the extension from the feather.wiki website, then it should update automatically. Otherwise, you will need to copy the extension file to your Feather Wiki to get the fix.
🔗 A web extension that redirects YouTube, Instagram, Reddit, TikTok and other websites to alternative privacy-friendly frontends
 
      
  
             
      
  
               
      
  
             
      
  
            