Cookie and website data cleaner

Clears cookies and other website data when you go to websites if it isn't allowed to store website data. Edit the code to include websites that can store data.

Tendrás que instalar una extensión para tu navegador como Tampermonkey, Greasemonkey o Violentmonkey si quieres utilizar este script.

You will need to install an extension such as Tampermonkey to install this script.

Tendrás que instalar una extensión como Tampermonkey o Violentmonkey para instalar este script.

Necesitarás instalar una extensión como Tampermonkey o Userscripts para instalar este script.

Tendrás que instalar una extensión como Tampermonkey antes de poder instalar este script.

Necesitarás instalar una extensión para administrar scripts de usuario si quieres instalar este script.

(Ya tengo un administrador de scripts de usuario, déjame instalarlo)

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

(Ya tengo un administrador de estilos de usuario, déjame instalarlo)

Autor
d-a-n
Instalaciones diarias
0
Instalaciones totales
69
Calificaciones
0 0 0
Versión
1.1.2
Creado
14/8/2024
Actualizado
4/6/2025
Tamaño
5,04 KB
Licencia
MIT
Funciona en
Todos los sitios

Some websites require use of JavaScript and use cookies or similar technologies that are often used for tracking rather than for remembering preferences. This userscript removes all data that websites remember while you are using websites, unless there are sites you explicitly add to prevent this from happening. This is not a replacement for a tracker blocker, it does not block network requests to tracking scripts.
The functionality of web pages may break when using this userscript.

You can a list of websites within the code to not clear website data from.
To do this, open your userscript manager's menu, find this script then edit it.
The only parts that should be edited are between the // start config and // end config comments.
// means a comment - remove it to active the exclusion.

	// start config

	// clearWebsiteDataEveryXMilliseconds takes any number
	var clearWebsiteDataEveryXMilliseconds = 200;

	// runs on websites unless listed here
	// made using regular expressions - flags are ignored
	// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions
	// https://regex101.com

	var websitesToNotRunOn = [
		// cookies required for websites to work


		// anything requiring google account:
		// /^https:\/\/accounts\.google\.com/,
		// google docs:
		// /^https:\/\/docs\.google\.com/,
		// /^https:\/\/contacts\.google\.com/,
		// stay signed into youtube:
		// /^https:\/\/accounts\.youtube\.com/,
		// /^https:\/\/(www|m)\.youtube\.com/,

		// stay signed into soundcloud account
		// /^https:\/\/secure\.soundcloud\.com/,
		// /^https:\/\/soundcloud\.com/,

		// reddit requires cookies to work even without account
		// /^https:\/\/www\.reddit\.com/,


		// cookies that are needed to remember preferences
		// /^https:\/\/search\.brave\.com/,
		// /^https:\/\/([a-z]+\.)?wikipedia\.org/,
	];

	// end config

It is possible to apply this userscript to some mobile browsers.
On iOS using Safari (iOS 15+):

  1. Open "App Store"
  2. Go to "Search" and type "userscripts"
  3. The result should be https://apps.apple.com/us/app/userscripts/id1463298887
  4. Install "Userscripts"
  5. Open "Settings"
  6. Search for "Safari"
  7. Scroll down to "Extensions" and tap it
  8. Switch on "Allow Extension"
  9. Allow on "greasyfork.org" and "Other Websites"
  10. Open "Safari"
  11. Tap the icon on the left side of the url bar
  12. Tap "Manage Extensions"
  13. Make sure "Userscripts" is enabled then tap on "Done"
  14. Switch back to this page in Safari and tap "Install this script". The raw code should be displayed from a greasyfork url.
  15. Tap the icon on the left side of the url bar
  16. Tap "Userscripts". There should be a message that says "Userscript Detected: Tap to install". Click it.
  17. This userscript will then be installed
  18. To edit the code:
    1. Open "App Store"
    2. Go to "Search" and type "subtext"
    3. The result should be https://apps.apple.com/us/app/subtext/id1606625287
    4. Install "Subtext"
    5. Open "Subtext"
    6. Click on the file name of this userscript then start editing. All edits seem to be saved instantly, but you will need to refresh tabs for the changes to be applied.