aboutsummaryrefslogtreecommitdiffstats
path: root/main.js
blob: b7bc92bf7536edc8ac44402aceac45bf542bd790 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
(function() {
	var jira_person_header_class_name = '.ghx-heading';
	
	// Removes spaces from a string
	function slugify (str) {
		return str.replace(/ /g, '');
	}
	
	Array.prototype.forEach.call(
		document.querySelectorAll(jira_person_header_class_name),
		function(element) {
			element.setAttribute('id', slugify(element.firstChild.textContent));
			console.log(element);
		}
	);
})();