Performance Enhancer

Increases website performance by clearing unwanted cache data and blocking ads

< Feedback on Performance Enhancer

Question/comment

NotYouMod
§
Posted: 2023-03-27

You probably should inform the user that your script clears storage and cookies of website, that must be helpful for them to know.

VirusterDevAuthor
§
Posted: 2023-03-27

It does, it's in the description.

VirusterDevAuthor
§
Posted: 2023-03-27

Wait no, nevermind. I'm an idiot I forgot to put it in additional info.

VirusterDevAuthor
§
Posted: 2023-03-27

Thank you.

NotYouMod
§
Posted: 2023-03-27
Edited: 2023-03-27

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 :)

VirusterDevAuthor
§
Posted: 2023-03-27

Can I use that code in it?

NotYouMod
§
Posted: 2023-03-27

@Viruster, of course, it isn't a problem at all.

VirusterDevAuthor
§
Posted: 2023-03-27

Thanks.

VirusterDevAuthor
§
Posted: 2023-03-27

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.

NotYouMod
§
Posted: 2023-03-28

@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).

NotYouMod
§
Posted: 2023-03-28

Also, if you want to contact me, just write in DM, I'll answer ASAP.

VirusterDevAuthor
§
Posted: 2023-03-28

I did open a DM, you never responded.

NotYouMod
§
Posted: 2023-03-28

@VirusterDev, that's because I already answered here.

VirusterDevAuthor
§
Posted: 2023-03-28

Alright lol

VirusterDevAuthor
§
Posted: 2023-03-28

Thanks for the response, I'm choosing to use "license GPL-3.0"

Post reply

Sign in to post a reply.