mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Decoding the title of now playing too
This commit is contained in:
@@ -181,7 +181,7 @@ function onPlayerStateChange(newState) {
|
|||||||
function getTitle(titt, v)
|
function getTitle(titt, v)
|
||||||
{
|
{
|
||||||
var outPutWord = v > 1 ? "viewers" : "viewer";
|
var outPutWord = v > 1 ? "viewers" : "viewer";
|
||||||
var title= titt.replace(/\\\'/g, "'").replace(/"/g,"'").replace(/&/g,"&");
|
var title= decodeURIComponent(titt);
|
||||||
document.title = title + " • Zöff";
|
document.title = title + " • Zöff";
|
||||||
if(!window.mobilecheck()){
|
if(!window.mobilecheck()){
|
||||||
document.getElementById('search').placeholder = title + " • " + v + " " + outPutWord;
|
document.getElementById('search').placeholder = title + " • " + v + " " + outPutWord;
|
||||||
|
|||||||
Reference in New Issue
Block a user