content_scripts/content.js
// modified buildGroupArray to build a list of tuples of both the urlpathname uniqueid and the GroupName so that this can be used instead of doing a roundabout search for the groupname
modified buildGroupArray to build a list of tuples of both the urlpathname uniqueid and the GroupName so that this can be used instead of doing a roundabout search for the groupname
modified buildGroupArray to build a list of tuples of both the urlpathname uniqueid and the GroupName so that this can be used instead of doing a roundabout search for the groupname
function buildGroupArray(els) {
	let combinedArr = [];
	let hrefArr = [];
	let href, grpName;
	for (let i = 0; i < els.length; i++) {
		let tempArr = [];
		try {
			href = els[i].children[1].children[0].children[1].href.match(
				/(?<=\meetup\.com\/)(.*?)(?=\s*\/)/
			)[0];
		} catch (err) {
			href = "";
		}
		if (!(hrefArr.indexOf(href) !== -1)) {
			hrefArr.push(href);
			tempArr.push(href);
			grpName = els[i].children[1].children[0].children[0].getElementsByTagName("span")[0].innerText;
			tempArr.push(grpName);
			combinedArr.push(tempArr);
		}
	}
	return combinedArr;
}
function buildGroupArray ( els ) { let combinedArr = [ ] ; let hrefArr = [ ] ; let href , grpName ; for ( let i = 0 ; i < els . length ; i ++ ) { let tempArr = [ ] ; try { href = els [ i ] . children [ 1 ] . children [ 0 ] . children [ 1 ] . href . match ( / (?<=\meetup\.com\/)(.*?)(?=\s*\/) / ) [ 0 ] ; } catch ( err ) { href = "" ; } if ( ! ( hrefArr . indexOf ( href ) !== - 1 ) ) { hrefArr . push ( href ) ; tempArr . push ( href ) ; grpName = els [ i ] . children [ 1 ] . children [ 0 ] . children [ 0 ] . getElementsByTagName ( "span" ) [ 0 ] . innerText ; tempArr . push ( grpName ) ; combinedArr . push ( tempArr ) ; } } return combinedArr ; }
modified buildGroupArray to build a list of tuples of both the urlpathname uniqueid and the GroupName so that this can be used instead of doing a roundabout search for the groupname
modified buildGroupArray to build a list of tuples of both the urlpathname uniqueid and the GroupName so that this can be used instead of doing a roundabout search for the groupname