woheller69 / browser

A privacy oriented web browser with Greasemonkey style script support and Cookie Banner Blocker
GNU General Public License v3.0
160 stars 18 forks source link

Greasemonkey scripts not working #12

Closed Kurasami closed 6 months ago

Kurasami commented 6 months ago

I've been trying to get scripts working and nothing is happening. I copy-paste the script in from Greasyfork and it simply doesn't work.

If I enable the debug option, I can't see any logs or information anywhere (where is it?) however, the browser becomes extremely slow with this option enabled.

I also checked the instructions here: https://github.com/woheller69/browser/issues/11#issuecomment-1842104480 and according to this, it should work fine.

I'm using Browser version: 1.6 from the F-Droid repo.

woheller69 commented 6 months ago

If debug is on, you see a toast message, if your script is executed

Kurasami commented 6 months ago

Yeah no toast message at all.

woheller69 commented 6 months ago

Then your @match probably does not match the Url...

Kurasami commented 6 months ago

I want it to match every single site I visit. The script doesn't make use of @match at all because it is supposed to run everywhere.

woheller69 commented 6 months ago
// ==UserScript==
// @name Test
// @match https://*.*/
// @run-at document-end
// ==/UserScript==
alert("Test");

This runs everywhere

825i commented 6 months ago

Thanks. It would be great if this was listed on the scripts page of the settings so people knew this was the case.

woheller69 commented 6 months ago

I have added it already in the updated Readme on my current development branch for the Cookie Banner Blocker

https://github.com/woheller69/browser/tree/cookieBannerBlocker

Will be released soon

825i commented 6 months ago

Awesome!