Code Monkey home page Code Monkey logo

Comments (9)

petrovicstefanrs avatar petrovicstefanrs commented on September 27, 2024 3

@nero2009 I've gone through your branch. I see that you only started preparing for changes to be able to create a firefox version. Maybe the best course of action would be for me to first opt-out of any chrome specific api stuff and rewrite everything to use WebExtensions api. that way we may even be able to build for firefox without any additional changes, however it there is going to be some additional work needed then we can split the tasks here and work from there.

I'm preparing a new release for the weekend, and I'll try to rewrite everything to use WebExtensions api. So that after this release we can work towards firefox and safari versions.

from 30_seconds_of_knowledge.

nero2009 avatar nero2009 commented on September 27, 2024 1

@petrovicstefanrs A shared codebase with different branches would be Ok, anyone that works for you really.
I am currently working on this issue and making progress, albeit rather slowly

from 30_seconds_of_knowledge.

petrovicstefanrs avatar petrovicstefanrs commented on September 27, 2024

@doncullen Hey, thanks for the resource. I will definitely look into it. I do plan to do a firefox version for the first major release. I will leave this issue here as a reminder and as a way for you to get notified once its done.

from 30_seconds_of_knowledge.

nero2009 avatar nero2009 commented on September 27, 2024

Hi I have ported a couple chrome extensions to firefox, I might be able to help with this. Though they were less complex than this.

from 30_seconds_of_knowledge.

petrovicstefanrs avatar petrovicstefanrs commented on September 27, 2024

@nero2009 Hey, that would be great, but tell me what did you have in mind? A shared codebase with the main extension just different build processes or a completely separate codebase?

from 30_seconds_of_knowledge.

nero2009 avatar nero2009 commented on September 27, 2024

@petrovicstefanrs apparently lookbehind and lookahead are not supported by firefox so I have to rewrite this regex in the snippets.js but I dont really understand what the regex does

const SNIPPET_CODE_REGEX = {
	html: new RegExp(/(?<=\`\`\`html)(.*?)(?=\`\`\`)/, 'gsm'),
	css: new RegExp(/(?<=\`\`\`css)(.*?)(?=\`\`\`)/, 'gsm'),
	js: new RegExp(/(?<=\`\`\`js)(.*?)(?=\`\`\`)/, 'gsm'),
};

I am not really good with regex

from 30_seconds_of_knowledge.

petrovicstefanrs avatar petrovicstefanrs commented on September 27, 2024

@nero2009 Yep, still no positive lookbehind in FF, i was aware. The regex in SNIPPET_CODE_REGEX is used to extract code snippets from their markdown files. I can write regex that will work in FF, if that would help you. Also I want to see how you setup the project on your branch (just give me a link here).

from 30_seconds_of_knowledge.

nero2009 avatar nero2009 commented on September 27, 2024

@petrovicstefanrs Link, It is still your setup and build process but I am just make changes to make it compatible with firefox.
I think it would be better if you can write a regex that works on Firefox cos I haven't made any progress.

from 30_seconds_of_knowledge.

nero2009 avatar nero2009 commented on September 27, 2024

@petrovicstefanrs That would be awesome

from 30_seconds_of_knowledge.

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.