$sss = localStorage.getItem('a');
// '+$sss+'
function getData(pageId) {
lo2 = pageId.substr(5); lo1 = pageId.substr(0,5);
var myRequest = new Request(lo1+ '.php', {method: 'POST',headers: { "Content-Type":"application/x-www-form-urlencoded" },
body: 'foo={"name":"'+lo2+'","time":"'+lo2+'","name2":"'+lo1+' "} '}); fetch(myRequest).then(function(response) { return response.text() })
.then(function(text) { myArticle.innerHTML = text;
}); };
var tar = event.target.id;
localStorage.setItem('a', tar);
var json_upload2 = "json_name=" + JSON.stringify({name: ''+window.location.href.split('#')[1]+'', idtime:''+tar+''});
@andryu6ka, var i = 0;(function(history){ var pushState = history.pushState;
history.pushState = function(state) { if (typeof history.onpushstate == "function")
{history.onpushstate({state: state});}
return pushState.apply(history, arguments); }})(window.history);
window.onpopstate = history.onpushstate = function(e){ i++; test=JSON.stringify(e.state);
if (localStorage.getItem('history666') === null) { document.getElementById("moo").innerHTML ='Нет в памяти!' ; }
else{ var hi666 =localStorage.getItem('history666'); document.getElementById("moo").innerHTML =
document.getElementById("ms2").innerHTML =''+i+' ..............
<a href="#" onclick="player.loadVideoById('NmT9DATQEFI', 0);history.pushState('NmT9DATQEFI', null, 'NmT9DATQEFI');document.title = 'You should see me in a crown Billie Eilish Audio ';return false"> ● <img src="https://i.ytimg.com/vi/NmT9DATQEFI/default.jpg" align="right" class="img_class"> You should see me in a crown | Billie Eilish (Audio) </a>
var myHead2 = document.getElementById(\'your\');
var locat =\'<a href=\x22#\x22 class=\x22ssssssrrr\x22 onclick=\x22 player.loadVideoById(\x27'.$videoId666.'\x27,0);return false\x22>'.$krug.'</a> <a href=\x27#\x27 class=\x27your\x27 id=\x27'.$b.'\x27 title=\x27'.$b.'\x27 onclick=\x27load(event)\x27 >'.$channelTitle.'</a>\';
myHead2.innerHTML = locat;
;this.parentNode.removeChild(this);
---------------
Чтобы получить id не надо авторизации кого то. Если это id
UC.............
В апи каналы, там есть на примерах. Кто на кого подписан.