No, userscript managers themselves are not dangerous. They are browser extensions that allow you to run custom scripts on websites. The scripts themselves can be dangerous, but you should only install scripts from sources you trust. If you have any doubts, you can always check the source code of the script. You may want to add important (banking) websites to the blacklist of your userscript manager or use a whitelist.
As long as your mobile browser supports userscript managers, ProtocolDroid should work. ProtocolDroid is primarily designed for desktop browsers, but developed with mobile browsers in mind (and tested on Firefox for Android).
ProtocolDroid is designed for protocol writing of Kiel Universities computer science student organisation. Therefore, some features might be very specific to this and only this use case.
You can build the script by running npm run build
. The script will be built to the dist
directory.
You may want to change the headers in src/headers.js
to fit your needs.
ProtocolDroid uses APIs, that are not available in a normal browser environment. You can inject the following workarounds before the script to keep the script working:
this.GM_addStyle ??= style => {
const styleEl = document.createElement('style');
styleEl.textContent = style;
document.head.append(styleEl);
};
this.unsafeWindow ??= window;
this.GM_setValue ??= (key, value) =>
localStorage.setItem(`GM_${key}`, JSON.stringify(value));
this.GM_getValue ??= (key, defaultValue) => {
const value = localStorage.getItem(`GM_${key}`);
return value === null ? defaultValue : JSON.parse(value);
};