Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function SaveToFile() {
- chrome.storage.sync.set({reminds: inspect1},
- function () {
- var inspect1 = document.querySelector('.item-inspect').href; // ПОЛУЧИТЬ ИНСПЕКТ ЛИНК
- console.log(inspect1);
- });
- }
- //////////////////////////////
- function LoadFromFile() {
- chrome.storage.sync.get('reminds', function (results) {
- console.log(results.reminds);
- });
- }
- //////////////////////////////
- function reload1() {
- if (document.location.href.toUpperCase().indexOf('XXXXXXXX.COM') > -1)
- {
- SaveToFile();
- }
- if (document.location.href.toUpperCase().indexOf('XXXXXXXXXXX.NET') > -1)
- {
- LoadFromFile();
- }
- }
- setInterval(reload1, 8000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement