-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
development: help & discussion #826
Comments
Hey @myrdd, don't you want to create a "new" RequestPolicy ... ? I do want to move I can do make these changes... So are You with me? I am asking, not to be wrong here... i just want to know if can help you, creating RequestPolicy ? |
Actually, to get this AddOn running is really hard, compared to the noscript AddOn, there's a lot of bloat in there. |
If want to consolidate the
You do not need to use all features in the makefile. |
I suggest you to add some words here to explain why RP does more than uMatrix. |
@LiamZ would like to help on the WebExtension transition. [#704 (comment)] Great! :)
No worries, there's a lot of non-xpcom code. Maybe you could simply create a WE-only module? Take a look at this issue: #863. Do you think you could work on that issue? |
I could probably do it, yes. |
Great, I'm looking forward! :) |
@LiamZ what do you think about some kind of chat conversation to improve joint effort, e.g. on IRC? |
@myrdd hello! I'm perfectly aware that's not the priority, but I've come across a curious bug. The description: gorhill/uMatrix#810 (It affects both extensions so everything applies to RPC as well). Could you give any insight on why this could be happening and possible ways of dealing with it apart from forcing mobile version? |
@leedoyle I cannot reproduce the described behavior in RPC. Note that RPC does not block web content by type, only by their url, so scripts are executed (if they are loaded). If you can reproduce the issue, please create a separate issue and I'll take a look. |
@myrdd If you need some extra hands maybe I can give some help with the WE transition. Is there some issues I can work on ? |
Another one: #866 Tell me if you're getting into trouble. :) |
I'll create some more issues later today. Great you're helping! :-) btw @jrrdev are you comfortable with TypeScript (TS)? |
Well I used it a little bit when I was playing around with Angular 2, so I guess it won't be a problem reading/writing some TS (actually I find it kinda easier to read than pure JS :-)) |
That's good! :) I will create (not today) an issue that requires some TS knowledge. I'll let you know. :) |
How do I disable localized UI? After updating to 13.2 (from 13.1 I believe, well the previous one available) RPC uses my OS locale (pl) than Firefox UI. I've contributed the "pl" translation, however I'd prefer to use "en" one. Fx 48.0.2 (I don't remember, either us version or int) |
Hi,
|
Flipping |
moved to #890 |
What are next steps towards full WE port? |
There are no more pre-release versions available at |
No, this is not intended. All beta versions are marked as ”Disabled by Mozilla“! I need to figure out how to fix this.
I've got an overview of what to do on my PC. I think it's a good idea to publish them, to allow for comments and collaboration. |
AMO beta versions have been discontinued: |
I just noticed in my GitHub favorites that RequestPolicy has switched from JavaScript to TypeScript (you can also see it here: https://github.com/RequestPolicyContinued), is it normal? |
Hi @baptx. Yes, I moved away from pure JavaScript to TypeScript. I understand your objection regarding Microsoft and Open Source. IMHO it's the biggest downside of my decision of switching to TypeScript. I think Microsoft aims to increase its influence on open source ”communities“. Still, using TS isn't a big dependence. Let me show: Technically, compared to JavaScript, TypeScript is simply the addition of type annotations. That is, instead of writing
That's quite easy to solve. First, you can mix JS and TS files. Second, you can use the By the way, I did not mention the advantages of using TS. The static typing allows me to detect bugs without running the application or performing tests. Additionally, when using a code editor with support for TS, it's very easy to inspect variables, functions or classes; and to navigate through the files based on objects available in multiple files. One thing left to mention: I am using the tsc option |
@myrdd hi, thanks for the informations. I still think that most developers prefer to use pure JavaScript which is a standard so it also has the advantage that it can run without being transcompiled (I would rather see official upgrades to the JavaScript or CSS standard than transcompiling every interpreted language for a few features that are not really necessary). |
Let me highlight this from wikipedia:
--
You only need to remove all those type annotations. You do not need to rewrite everything.
That's a valid point. The compiled js code doesn't differ too much from the ts source, but I think it would be a good idea to eventually remove the
I highly appreciate the features offered by typescript. TS makes it a lot easier not to introduce new bugs when refactoring or changing code. |
@shirishag75 late answer on #704 (comment) To find out the version of a XPI file, open the
You can see that in the example the version is |
I actually deduced that when I built the .xpi, copied the file to another directory, renamed it to a .zip extension and extracted the archive and was able to read the install.rdf. Maybe the build script could be made such a way so the versioning comes in the name of the extension itself, so instead of requestpolicy-commitid.xpi or requestpolicy.xpi it is requestpolicy-version.xpi or requestpolicy-version-commitid.xpi if need be. If need be, I can put up wishlist ticket/issue newly so that could be worked upon. |
@shirishag75 I consider this quite low-priority. personally, for development, I prefer to have unchanged filenames instead of unique ones. it would be easy to make it env-variable dependent, e.g. using a local |
@baptx wrote in #826 (comment)
I agree with you here. I had some struggle learning TypeScript (like annotating with
So my middle-ground is using Flow with flow-jsdoc, since it builds on top of JSDoc strings. So I can use them for documentation and type checking without sacrificing executability of the code as-is.
Thing is, since some time, people throw tooling at their code to „optimise” it (I'm looking at you, webpack). Personally I compare the output with my source code. Tools like rollup are doing a pretty good job at keeping the output small. |
thanks for your comment @Ryuno-Ki, that's helpful. I'm going to keep track of Flow. Personally, I really like the TS syntax, especially when comparing to JSDoc style comments; but of course that's purely subjective. One good point about JSDoc is that it's recognized by many more tools. FTR, this is the current tsconfig (relevant part): Lines 5 to 9 in 3073666
|
This issue is for help and discussion of any kind of short comments or questions, regarding development of RequestPolicy (Continued). For example, post here if you've got trouble with building, running or testing RP; or post your questions about the source code.
Just for reference, this is the location of the development release:
https://requestpolicy.256k.de/requestpolicy-nightly.xpi
The text was updated successfully, but these errors were encountered: