Comments (9)
@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.
@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.
@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.
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.
@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.
@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.
@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.
@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.
@petrovicstefanrs That would be awesome
from 30_seconds_of_knowledge.
Related Issues (20)
- Could we add an installation and getting started guide? HOT 1
- Feature: System theme option
- Firefox addon doesn't work
- Can't find a function to export or syncing
- Chrome Extension settings min-width
- Old Design HOT 9
- Title cut off if too long HOT 3
- Wrong Function name while calling HOT 1
- Add Language Tag HOT 1
- Typo in footer HOT 1
- orthographic error in footer HOT 2
- Blank Codepen | CSS units Cheat Sheet
- New Langage Library: Go HOT 3
- Firefox add-on missing HOT 1
- Interested in using Laravel/Vue Snippits? HOT 1
- Firefox addon doesn't work HOT 19
- New Langage Library: Java HOT 3
- typo in bubblesort
- Firefox link on https://30secondsofknowledge.com/ is broken HOT 1
- Feature request: Safari Extension HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 30_seconds_of_knowledge.