From f4567d6b95cff01a8f6064829ad639e413b65918 Mon Sep 17 00:00:00 2001 From: Nikita Krupin Date: Tue, 27 Dec 2022 00:42:30 -0500 Subject: [PATCH] reset recommends WIP --- NUXT/pages/mods/general.vue | 88 ++++++++++++++++++++++++++++++++++--- 1 file changed, 83 insertions(+), 5 deletions(-) diff --git a/NUXT/pages/mods/general.vue b/NUXT/pages/mods/general.vue index 103c204..c4d8f9a 100644 --- a/NUXT/pages/mods/general.vue +++ b/NUXT/pages/mods/general.vue @@ -104,9 +104,70 @@ /> + + + - + --> @@ -133,6 +200,7 @@ export default { }, data() { return { + dialog: false, lang: {}, }; }, @@ -154,6 +222,16 @@ export default { this.lang = lang.mods.general; }, methods: { + clearHistory() { + const cookies = document.cookie.split(";"); + + for (let i = 0; i < cookies.length; i++) { + const cookie = cookies[i]; + const eqPos = cookie.indexOf("="); + const name = eqPos > -1 ? cookie.substr(0, eqPos) : cookie; + document.cookie = name + "=;expires=Thu, 01 Jan 1970 00:00:00 GMT"; + } + }, download(filename, text) { var element = document.createElement("a"); element.setAttribute(