vefsources.blogg.se

Brave safe search
Brave safe search










brave safe search brave safe search

In Tampermonkey, you don’t need the /// but you have to set some settings in the file like what domain it is going to run and all that, so the extensions knows when to run that scriptlet or not.īrave opened an issue to do that, I guess it will be done like you do custom filters, and you add it like with the /// like in uBlock and then you can use the scriptlet as a custom filter.Īnyway, that’s the easy script you can write to set cookies, but it will only set safesearch=off cookies, what an advanced scriptlet injection would do is let you type in what you want to be set in the cookie from custom filters. Then in uBlock you need to just add #+js(brave-search-safesearch-off) or (bsso) done. In fact, Brave uses the same format, because the automatic Brave will get the name and alias from those lines with /// Technically in uBlock all you need to have is a file that will contain. UBlock never added a scriptlet to set cookies (only remove) because of security reasons.

brave safe search brave safe search

Because it is meant only to get rid of cookie noticies. UBo Scriptlets only has set local item and session item, I asked him about set cookie but he said he had no use for it.īut then I saw Brave team adding one for Brave adblocker, which is taken from Adguard and converted a way uBlock/Brave would be able to use.īut it is pretty limited, it only allows pre-defined terms like yes, no or numbers from 0 to 15 I think. So, all you need is a scriptlet injection that will do that, because that’s what a snippet or scriptlet injection do, inject JS so you can create a script that will set cookies. to set cookies all you need to do is type in console (devtools)ĭokie = "safesearch=off" that’s all, that’s how simple it is. I mean, in Devtools you can set cookies, yes, but it is not done automatically. It’s usually easier and better and Tampermonkey will let you load your own libraries like jQuery, so it becomes easier to do stuff. In something like Tampermonkey, the approach is you write you script, and then you have to tell tampermonkey what places to run the script. In Brave and uBlock a scriptlet is injected by using custom filters, that’s what all the rules with #+js() are doing, you are calling the snippet with a filter rule. and automatically give you the ‘off’ option right away, without you having to set it every time especially in InPrivate mode. I am talking a solution that would work any computer, any or all profiles (brave adblocker works per installation so a custom filter will affect all users which is good or bad). Insert the following in the Additional DNSMasq Options (Note the DOT before google.Your post would only work in normal window and if you set cookies to be removed on restart.Find the "Additional DNSMasq Options" text box Here's a brief summary: Method 1 - Automatically Rewrite Router's Host File See (a blog to which I contribute) for an explanation and screenshots. There are advantages and disadvantages using both methods. For those routers that support DDWRT, you can do this on DDWRT firmware by either rewriting the hosts file on the router or by using DNSMasq.












Brave safe search