Playlist: Sila Playlist di atas..
defaultplaylist();
function defaultplaylist(){
setTimeout(()=>{displayplaylist();document.querySelector('.playlistchoice_list').firstElementChild.click()},1000);
}
function get_playlist_lookup(){var playlistarray=[["trendsmalaysia","#trendsmalaysia_url","Trends Malaysia","🔥"],["trendsindonesia","#url","Trends Indonesia","🔥"],["trendssingapore","#url","Trends Singapore","🔥"],["newchord","#url","New Chord Release","✓"],["rockkapak","#url","Rock Kapak","🤘"],["nasyid","#url","Nasyid","🤘"],["hiphop","#url","Hip Hop / Rap","🤘"],];return playlistarray}
function openchord(url){window.open(url,'_blank')} function cleantitle(value){
var value=value.replace('Chord','');value=value.replace(/(.*?)/g,'');
return value} function displaysong(songlistarray){
var html="";
for(var x=0;x
}
document.getElementById('listradio').innerHTML=html;
}
function displaystringdataplaylist(data){
const delimiter='|';
const[urlchord,titledisplay]=data.split(delimiter);
console.log("Link:",urlchord);console.log("Title:",titledisplay);
var html='';html+="([^<]+)'contain here'<) const matches2 = result.match(regexToKeep2) || []; // Join the matches back together const result2 = matches2.join(''); const arrayResult = result2.split(/<|>/);
const filteredArray = arrayResult.filter(item => item !== '');
const randomStrings = arrayResult.filter(item => item !== '').sort(() => 0.5 - Math.random()).slice(0, 10);
return randomStrings; }
function loadGoogleSearch_playlist(query){
var cse = "partner-pub-6944438883189989:9958569954";
var key = "AIzaSyDQmnw35msJehLm4Ky8X4H52bpe2KXMgJ0";
key = "AIzaSyBmeh5z_CpHItzRQ52jvo-_LK-a0sFLySo";
try { var malaykordsuggestionapi = "https:
console.log(malaykordsuggestionapi);var script=document.createElement('script');script.src=malaykordsuggestionapi;document.getElementById('loadgoogle_playlist').appendChild(script);
}catch(err){console.log(err)}
}
function GetGooGleSearch_playlist(data){
var link='';var title='';var q='';
var html='';
try{link=data.items[0].link}catch(err){} try{title=data.items[0].title}catch(err){} try{q=data.queries.request[0].searchTerms}catch(err){}
if(title.length<=0){try{title=data.queries.request[0].searchTerms}catch(err){}}
title=title.replace(/ - Malay Gitar Kord/g,"");title=title.replace(/Malay Gitar Kord: /g,"");var alltitle=document.getElementsByName("title");var is_exists=0;for(var x=0;x
}
document.getElementById('playlistchoice_main').innerHTML=html;
}
function search_playlist_lookup(playlistname){
var playlistarray=get_playlist_lookup();
var thechoosen=[];
for(var x=0;x



