Answer the question
In order to leave comments, you need to log in
Is it possible to write information in json?
Can I write data to json so that it is saved when the page is refreshed, or can I change existing data? I need to make the schedule local!
Answer the question
In order to leave comments, you need to log in
Something like this. Create your schedule, describe the manifesto. Store your json in localStorage after serializing it. Everything works
https://developer.mozilla.org/en/docs/DOM/Using_we...
https://developer.mozilla.org/en/docs/Web/%D0%9C%D...
https:/ /habr.com/ru/post/275849/
there are plugins for creating plugins https://www.tampermonkey.net/
for example, a script that cuts out an assistant on aliexpress
// ==UserScript==
// @name removeEvaDialog
// @namespace aliexpress.com
// @version 0.1
// @description Removes robot dialog/helper on aliexpress.com
// @author [email protected]
// @include https://*.aliexpress.*/*
// @grant unsafeWindow
// @run-at document-body
// ==/UserScript==
(function() {
'use strict';
let timerDialog = setInterval(
function() {
let dialog = document.getElementById('J_xiaomi_dialog');
if (dialog) {
dialog.remove();
clearInterval(timerDialog);
}
},
250
);
})();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question