Giter Site home page Giter Site logo

Comments (9)

SimonBrazell avatar SimonBrazell commented on May 12, 2024 1

Those changes should all be implemented in v1.1.21

from privacy-redirect.

SimonBrazell avatar SimonBrazell commented on May 12, 2024

Hi @cloudrac3r thanks for the very detailed feedback and creating Bibliogram!

I'm sorry this extension has caused you grief, I'll do my best to sort these issues out as soon as I can. When I added support for Bibliogram to this extension it was on advice from one of the extension's users, they didn't give me much info to go on, so I basically just did it by trial and error, so I'm not surprised there are mistakes. Sorry for not reaching out for more information, I'll endeavour to be more communicative in the future, it's actually something I should do for all the services this extension makes use of...

The regex you linked to is a list of 'reserved paths' that aren't redirected as users, I can do something similar for the reserved paths mentioned in your wiki. I'm wondering where I should redirect those that aren't implemented on Bibliogram though? Is there any appropriate page on Bibliogram for these redirects?

Apologies again for the grief this issue may have caused, I'll try to get this fixed up this week some time.

from privacy-redirect.

cloudrac3r avatar cloudrac3r commented on May 12, 2024

No problem.

I'm wondering where I should redirect those that aren't implemented on Bibliogram though?

Your choice. For things like embed.js and /accounts, I'd suggest not rewriting at all, and just letting the request go to Instagram. For things like /explore and /directory, you could either not rewrite, or you could send the user to a 404 page on Bibliogram. I can make a custom "this feature is not implemented" page if that helps. It's your choice in the end.

Why are paths from Bibliogram in the reserved paths regex? Could you explain to me how this works/why this is necessary?

Don't be afraid to ask if you have more questions/comments!

from privacy-redirect.

SimonBrazell avatar SimonBrazell commented on May 12, 2024

Your choice.

I'm easy, for now I'll just redirect them to the 404 page, but if you do include a "this feature is not implemented" page at some point I will use that instead.

Why are paths from Bibliogram in the reserved paths regex? Could you explain to me how this works/why this is necessary?

Some of them probably aren't necessary, I'll have a closer look at this when I fix this all up.

Don't be afraid to ask if you have more questions/comments!

Thank you! I will likely take you up on this 😀

from privacy-redirect.

cloudrac3r avatar cloudrac3r commented on May 12, 2024

Oh, please note that there is only ever one path element for profiles — /yyy could be a user page, but /yyy/zzz is definitely not. So I suggest not rewriting anything that has more than one path element.

from privacy-redirect.

SimonBrazell avatar SimonBrazell commented on May 12, 2024

Oh, please note that there is only ever one path element for profiles

Okay thanks, I'll include a check for this in the redirect also.

from privacy-redirect.

SimonBrazell avatar SimonBrazell commented on May 12, 2024

Hi @cloudrac3r , pretty sure I've got a solution to this problem but I thought I should run it by you first:

  • Only requests coming from the main_frame (a document that is loaded for a top-level frame), are redirected, so nothing coming from an iframe or script which should stop the extension breaking embeds as they are not currently implemented by Bibliogram anyway.
  • instagram.com, www.instagram.com, help.instagram.com, about.instagram.com only these domains are redirected to Bibliogram (platform.instagram.com not included).
  • /p, /developer, /legal, /about, /explore, /support, /press, /api, /privacy, /safety, /admin, /help, /terms, /contact, /blog, /igtv these reserved paths are redirected to Bibliogram, where the user will be either met with a 404 if they are not available or some content if there is something implemented for them.
  • /accounts, /embeds.js, /embed.js these paths will not be redirected to Bibliogram.

Let me know if there are any issues.

Cheers!

from privacy-redirect.

cloudrac3r avatar cloudrac3r commented on May 12, 2024

Sounds perfect!

from privacy-redirect.

SimonBrazell avatar SimonBrazell commented on May 12, 2024

Cool I'll fix up the other issue you reported this afternoon and do a new build that includes the changes.

from privacy-redirect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.