Increases website performance by clearing unwanted cache data and blocking ads
< Feedback on Performance Enhancer
It does, it's in the description.
Wait no, nevermind. I'm an idiot I forgot to put it in additional info.
Thank you.
FYI, to clear cache, you need to do something like that:
caches.keys()
.then((keyList) =>
Promise.all(
keyList.map((key) =>
caches.delete(key))
)
)
)
You just clear website's storage :)
Can I use that code in it?
@Viruster, of course, it isn't a problem at all.
Thanks.
Hey, can you help me. I do not know what licence I should use, if I allow the user to edit the script and release it, but give me credit and link the original script in the description of the script they edited.
@VirusterDev, I recommend you to use "MIT" license, just write // @license MIT
in user-script meta block. A user will be required to write copyright (Year and your nickname) and include license. There is also "General Public License 3", (// @license GPL-3.0
in code), where users would be required to include: original version, changes done to it, include license, copyright and install instructions (also, they will be forced to make their code open-source one). But I think the best that fits in your requirements is "Apache 2" (// @license Apache License 2.0
in code), user would be required to include: copyright, license, changes done to code and notice (with attribution notes).
Also, if you want to contact me, just write in DM, I'll answer ASAP.
I did open a DM, you never responded.
@VirusterDev, that's because I already answered here.
Alright lol
Thanks for the response, I'm choosing to use "license GPL-3.0"
You probably should inform the user that your script clears storage and cookies of website, that must be helpful for them to know.