Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Help, Questions and General Discussion #18

Open
futpib opened this issue Oct 24, 2014 · 221 comments
Open

Help, Questions and General Discussion #18

futpib opened this issue Oct 24, 2014 · 221 comments

Comments

@futpib
Copy link
Owner

futpib commented Oct 24, 2014

If you have a question, need help, unsure if something is an issue, have something else to say, whatever else — post it here.

@heforfree
Copy link
Contributor

some site need captcha, and need allow request to example: google.com
i want just allow global rule to google just when it need captcha input Otherwise reject google.com request. is this possible?
thanks

@futpib
Copy link
Owner Author

futpib commented Oct 25, 2014

@heforfree As of 0.9, you can create a ruleset file like this (plain text file) and install it on preferences.xul#rulesets-manager page (enable it and click "save" button). There is no good documentation for the file format, but i think it's pretty self-explanatory. It allows any requests to hosts ending with "google.com" and paths starting with "/recaptcha/api".

@heforfree
Copy link
Contributor

thankyou for your help.
i installed 0.9 version
but i try install that with install file.. button and i see installation failed
this is what i see in ctrl+shift+j
removed to keep clean post

@futpib
Copy link
Owner Author

futpib commented Oct 26, 2014

@heforfree Fixed in 759ead8. Please check 0.10.

@heforfree
Copy link
Contributor

thank you working now .simple test link
https://safelinking.net/p/fe713d6c2d (click on show alternative)
also i have rule like this:
reject request for scripts from any domain to any domain
it pervent this,is this normal?

@futpib
Copy link
Owner Author

futpib commented Oct 26, 2014

It depends on ordering of rulesets on preferences.xul#rulesets-manager page. If you bring your "captchas ruleset" upper then "user rulesets", it will apply first.

@heforfree
Copy link
Contributor

yes now working(need drag and drop).and must press submit to show captcha.

@futpib
Copy link
Owner Author

futpib commented Oct 26, 2014

I just notices that site you mentioned does not use google recaptcha, so I don't really know what you mean.

@heforfree
Copy link
Contributor

just somtime seems dont load all script.after some refresh show some blocked request from google
and allowed captcha request. see attachment
i mean when i click on reload or show alternative in tooltip i see javascript:;
but if click submit then show image of captcha.finally work
it seems main captcha is from solvemedia and altenative from google
also this new options in front of domain is good

1

@wisiwig
Copy link

wisiwig commented Oct 28, 2014

Hello! Thank you for the great addon! I wonder if you have seen this project: https://github.com/gorhill/httpswitchboard? I understand that this is maybe too much, but do you have any plans to add to the functionality of the Policeman blocking of ads? Thanks in advance.

@futpib
Copy link
Owner Author

futpib commented Oct 29, 2014

@wisiwig You can already block ads with policeman. I thought about supporting easylist-format (or whatever it's called, I mean the rules format adblock uses) from the start, if that's what you ask about. I think there is no real benefit in supporting it, since we already have adblock who does it well, and policeman can coexist with adblock. Honestly, unless you have a good argument, I won't implement it anytime soon.

@wisiwig
Copy link

wisiwig commented Oct 29, 2014

@futpib You're right, that's exactly what I was asking. Yes, I understand that the addon removes a huge amount of advertising that is loaded from third-party sites. And yes, I understand that the main purpose of your Policeman is not the removing the ads. I'll gladly use your addon without this function.
Wish you success! Cheers!

@Halibut80
Copy link

What rule is needed for youtube to play some video in html5 player (example: https://www.youtube.com/watch?v=W4Ovgd19Dfo) without allowing any request for www.youtube.com? RequestPolicy blocked requests to mediasource: (see: RequestPolicyContinued/requestpolicy#447) this was the cause of malfunction html5 video. Policeman does not display these requests in popup and also does not allow create an allow rule for mediasource:... Bug?

(Sorry for Google Translate)

@futpib
Copy link
Owner Author

futpib commented Oct 30, 2014

@Halibut80 Here is a minimal setup for youtube:

  • allow (media) youtube.com -> googlevideo.com // the video file itself
  • allow (images) youtube.com -> ytimg.com // previews and stuff
  • allow (frames) [Any domain] -> youtube.com // allows embedded youtube videos on any site

@Halibut80
Copy link

futpib, I have all this rule, but html5 player starts only with: allow anything(or media) from www.youtube.com to any domain, and this is no good...

@heforfree
Copy link
Contributor

@Halibut80 i can play fine.i can not play if i dont disable some options in noscript
2

@futpib
Copy link
Owner Author

futpib commented Oct 30, 2014

@Halibut80 You can click on that "Media (1)" button and see where the request for video is going.
I get it loaded from googlevideo
scrot1
Also, I see nothing bad in allowing "media from youtube to anywhere".

@Halibut80
Copy link

Well, i don't know... but for me (html5 dont work):

html5 work (with rule "allow media www.yotube.com ->any domain"):

Screenshot from www.youtube.com/html5:

@heforfree
Copy link
Contributor

@Halibut80 .i dnot know why, but try create new profile and just install policeman and perform rule
see work or not

@Halibut80
Copy link

heforfree, you are right, the problem is somewhere in my options/addon. My apologies.

I was wrong, the problem is still there, on clean profile with only one Policeman. I forgot about by default flash enabled, and the player just runs with it, without prompting "click-to-play".

@bastik-1001
Copy link
Contributor

@futpib Is there a reason why the rule you mention in this thread is not included by default? Even if it would be disabled, what sounds sane to me, it would be easier for beginners.

@ghost
Copy link

ghost commented Nov 6, 2014

Hello. Thank you for this wonderful addon. Are there any plans to have this addon work in Palemoon (which is a fork of Firefox)?

@heforfree
Copy link
Contributor

hello
can i now safely turn off noscript? also i dont know so much about xss
i think if i dont allow script or cross-site request i am safe,right?
but seems xss also work in html also?
thanks

@futpib
Copy link
Owner Author

futpib commented Nov 6, 2014

@AbrahamLinksys No, I have no such plans. Pale Moon FAQ says they will never adopt the Australis interface, which is more then a UI, but a nice API too. If they do not employ a kind of compatibility layer, they will loose compatibility with never add-ons, and I think they are aware of this.
I am not against supporting older Firefoxes, like if someone would implement that and issue a pull request (one could adapt Adblock's CustomizableUI shim or something like that), I would happily merge that, but I won't put effort into this, sorry.

@futpib
Copy link
Owner Author

futpib commented Nov 6, 2014

@heforfree It depends on your setup. By default only same-domain and same-second-level-domain stuff is loaded. I do not know much about how exactly NoScript works, but If it is nothing more then blocking scripts based on domain they come from, Policeman can do that too (and more, as you probably know).

@futpib
Copy link
Owner Author

futpib commented Nov 6, 2014

@bastik-tor It's so specific, it won't make much difference for a beginner. Also, defaults are read-only, so user won't be able to add another captcha service or something like that (not to mention, there is no UI for that kind of thing). It would be awesome to have rulesets updatable (like greasemonkey's userscripts, stylish styles and alike) and maybe even have a repository for them. Then we (or anybody) could maintain a captchas ruleset that would actually be helpful. But the addon is still too amateur for that kind of things.

@ghost
Copy link

ghost commented Nov 7, 2014

@bastik-tor; the captcha rule you mention means also Google being called whenever that captcha appears, even if not required. For instance on AOM when the captcha is only necessary when a new user registers. No point in allowing an external call systematically when it is needed only once.

@ghost
Copy link

ghost commented Nov 7, 2014

@futpib I figured as much. I'll contact the developer and let you know if he replies.

@futpib
Copy link
Owner Author

futpib commented Nov 7, 2014

@AbrahamLinksys I never implied that it's Pale Moon's fault. A lot of add-ons do support it (together with older FFs), but it takes some effort I am not willing to put.

@0xBRM
Copy link

0xBRM commented Apr 6, 2015

Still no manpages? I'd like documentation regarding the rule syntax, in order to write my own rules, namely, one that accepts all 1p --> 1p requests (save for scripts, and pings), whilst rejecting (at least by default) 1p --> 3p requests.

And what's the difference between "Other," and "Uncategorized?"

@futpib
Copy link
Owner Author

futpib commented Apr 7, 2015

@CrisBRM On "Other" and "Uncat."

@OdinGitDat
Copy link

Ive tried everything i can to make policeman work with the http://alientube.co/ addon for firefox. UI doesnt indicate any request being blocked. Suspend on tab does not work. The only thing that seems to work is suspend policeman entirely or enabling "allow any request". Do i need to create a custom ruleset for addons making requests? could the "Compatibility and Workarounds" ruleset be expanded to include this?

@futpib
Copy link
Owner Author

futpib commented Apr 22, 2015

@OdinGitDat Works for me with the latest pre-release.

@OdinGitDat
Copy link

oh right it works with v.19 (i was on .18), thank you!

@k-h
Copy link

k-h commented Apr 23, 2015

Hi,

I'm trying to get http://earth.nullschool.net to work. In policeman I let the site do everything but I get the message:

canvas.getContext(...) is undefined
and then
context is undefined

Tried this on a MacOS running 37.0.2 and Windows 7 with firefox 37.0.1

k-h

@ghost
Copy link

ghost commented May 24, 2015

How would I block individual files from a domain that I otherwise trust? For example, for one particular site, I would like to allow ALL scripts to run except for "example.com/js/ads.js" and "example.com/js/ad.js"

@ghost
Copy link

ghost commented May 25, 2015

@Halibut80 Thank you - I've created a rule based on that ruleset, but it fails to install:

magic: policeman_ruleset
version: 0.1
id: "forbid_specific_script"

l10n:
en-US:
name: "Forbids specified scripts"
description: ""

rules:
[spec] * -> "https://example.com/js/ads.js": REJECT

@Halibut80
Copy link

@CoffeeFace try:


magic: policeman_ruleset
version: 0.1
id: "reject_special_script"

l10n:
  en-US:
    name: "Blocks some scripts"
    description: ""

rules:
  web -> web:
    [spec]
    * -> "https://example.com/js/ads.js": REJECT

work for me.

@maeludir
Copy link

Hi I love the addon, and I've been using it reliably for quite a while.

But I've got a fresh install here, and while I've imported my old profile okay (which included all my rules) Policeman doesn't seem to be working - clicking on the shield icon shows no requests at all, as if I'm not on a website.

@ghost
Copy link

ghost commented Jul 20, 2015

Hi, I'd love to synchronize my Policeman rules between several computers - I use unison (like rsync), but I can't find the files where the Policeman rules are stored.
There's a directory called "~/.mozilla/firefox/default/policeman/rulesets" but it's empty.
Which files do I need to synchronize? Where does Policeman store it's rules?
Thanks.

@futpib
Copy link
Owner Author

futpib commented Jul 21, 2015

@vitaminx policeman/rulesets is for installed rulesets, other prefs are in prefs.js (under extensions.policeman.*)

@WagnerGMD
Copy link

I believe, there's a little mistake with the latest release (0.19pre3). It's simply a syntax error or the wrong file ?
Yesterday, I download the addon twice. And on the page about:addons, Policeman didn't report the right version. I saw the previous (0.19pre2).
Then I also checked the file install.rdf and I saw this ligne (n°7) : <em:version>0.19pre2</em:version> (inside the file Policeman_0.19pre3.xpi).

@pberenyi
Copy link

Hi,

HTML5 playback on Youtube is not working with Policeman if there is no rule to allow youtube.com -> any domain. If I load any Youtube video, and set the rules to allow every listed domain, and Policeman icon becomes full green and no rejections are shown, even then the video is not loading. Once I add the above mentioned any domain rule, the video loads properly. Any ideas how to resolve without allowing everything?

Thanks

@Halibut80
Copy link

@ImN1
Copy link

ImN1 commented Jul 31, 2015

Great addon!
When sites that with a long long domain name, the [add rule] button go outside the screen...
UI must be fixed with line wrapping or a scrollbar.
Some filename such as xxx.xxx.gif, xxx.xxx.xxx.css, xxx.xxx.js...is recognized as object, not image, style or javascript.

@acrobat1
Copy link

acrobat1 commented Sep 3, 2015

Does the extension use absolute paths to find its rules location ?
After moving my Firefox profile I couldn't find or install any ruleset, after resetting
extensions.policeman.manager.installedPathsByIds it started working again.

@futpib
Copy link
Owner Author

futpib commented Sep 3, 2015

@acrobat1 Shame to admit, but the latest release (0.18.1) does. This was fixed in a2431aa

@acrobat1
Copy link

acrobat1 commented Sep 4, 2015

OK thanks, I had to scratch my head a bit to understand why all rules were lost but I figured it out in the end...
Great extension, BTW.

@LucaLawZ
Copy link

Out of interest why are some networks that are used for privacy blocked as default in the standard ruleset?

Surely for those that use them networks wouldn't FP be an enhancement?

@heforfree
Copy link
Contributor

@futpib
is there any news for update addon ,at least for defect and bug
thank you very much

@bizaff
Copy link

bizaff commented Oct 22, 2015

After not restarting firefox for a while, sometimes the popup becomes a fixed size. When I have longer domains, the popup is too small and doesn't show the "Add rule" buttons.

In the past I've restarted Firefox and the problem goes away.

If I disable the extension and reenable it that also fixes it, but all sites "forget" the dialog information - they all show 0s for everything until I refresh the tab.

@acrobat1
Copy link

I've noticed that the policeman folder inside my Firefox profile is actually empty, rulesets (as far as I can see) are not stored there but in the prefs.js file.
Is that intended behaviour?

If so, it would be nice IMO to also store permanent rules somewhere in the policeman folder, maybe in text format, as a convenient backup option.
I know they can be exported in .json format, but that isn't easy to work with, for instance grepping inside the file or select/copy doesn't work very well for me.

As a related issue, I think it would also be nice to be able to highlight/copy individual rules on the about:policeman#user-rulesets page: that may come handy if you eventually want to copy some blocked URLs and then add them to a hostfile or some adblocker filter list.

Maybe it would be better to open a separate issue for this request?

@heforfree
Copy link
Contributor

heforfree commented May 16, 2017

guys go and fill survey"survey regarding it's future"
If you like Policeman, please consider participating in a survey regarding it's future.

https://outgoing.prod.mozaws.net/v1/acdee26bcc62f0b5616c9c4121f6fb9e2765f62a8ac1e6343a48b8bde91f844d/https%3A//goo.gl/forms/g6ldXl18sUz3eIwW2
according here https://addons.mozilla.org/en-US/firefox/addon/policeman/

@muellert
Copy link

How can I import the rules created by Requestpolicy's Export feature? Because importing only from an installed Requestpolicy addon is imho not useful - I had Requestpolicy 0.5x, 1.x, and Policeman installed, then de-installed Requestpolicy because there was a warning about duplicate instances, which seems to have been caused by policeman, then wanted to import from Requestpolicy, but only got their standard handful of "Allow" rules to import. NOT what I wanted - I have ~1800 rules, actually.

@myrdd
Copy link

myrdd commented Oct 19, 2017

I had Requestpolicy 0.5x, 1.x, and Policeman installed, then de-installed Requestpolicy because there was a warning about duplicate instances

You saw the warning because it's not possible to use 0.5 and 1.x at the same time.

@muellert
Copy link

Well, I knew that and had 0.5 disabled already. The message suggested that disabling it should be enough, so I concluded that the conflict message should have been caused by having both Requestpolicy and Policeman activated at the same time.

@futpib
Copy link
Owner Author

futpib commented Apr 1, 2018

Brings back memories, thanks to everyone involved! ❤️

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests