minbrowser / min

A fast, minimal browser that protects your privacy
https://minbrowser.org/
Apache License 2.0
7.72k stars 685 forks source link

tampermonkey integration #1032

Open ghost opened 4 years ago

ghost commented 4 years ago

is it possible or any other userscript manager? actual mode to implement userscript is really hard to understand for normal users...

PalmerAL commented 4 years ago

Supporting tampermonkey syntax is #803; I think I'm probably going to do this soon.

It should be possible to do everything you could do with tampermonkey using the current userscripts feature; if you need help converting tampermonkey syntax I can probably help with it.

ghost commented 4 years ago

@PalmerAL Hello, I have some scripts that I use but I dont know how to implement it, I tried many times but with no success (I have no knowledge in coding and things like that, new into this 'world' but I have curiosity)

PalmerAL commented 4 years ago

Can you post the script?

ghost commented 4 years ago

@PalmerAL some of them: https://github.com/AdguardTeam/PopupBlocker https://greasyfork.org/de/scripts/372847-mal-sync https://greasyfork.org/pt-BR/scripts/3511-enable-right-click-reek

PalmerAL commented 4 years ago

We could support simple ones like the third one fairly easily just by adding support for @includes, and I'll go ahead and do that. The other two use Tampermonkey's features to store data and make requests to other websites, which is going to be more complicated to implement (and that I don't think I'm going to do for now). You could probably modify the scripts to avoid using these functions, but you may lose some of the features of them.

ghost commented 4 years ago

understood, thank you for your support, i'll wait for the tampermonkey implemention, for now i'll continue to use the browser without that :))

PalmerAL commented 4 years ago

To be clear, fully implementing all of tampermonkey's features is unlikely to happen, so most scripts will likely still need some degree of modification to work in Min (it should be easier though).