javascript:(function(){
	console.log('bookmarklet "links" was called');
	document.querySelectorAll('.bookmarklet_notice_link').forEach(el => el.remove());
	
	let color_green = '#186839';
	let bg_color_green = '#97e7b9';
	
	let color_red = '#71180e';
	let bg_color_red = '#f4aaa4';
	
	let color_yellow = '#7e5202';
	let bg_color_yellow = '#fdd281';
	
	function run_bm_links() {
		let links = document.querySelectorAll('a');
		links.forEach(link => {
			let text = link.textContent.trim();
			let ariaLabel = link.getAttribute('aria-label');
			let title = link.getAttribute('title');
			let img = link.querySelector('img');
			let imgAlt = img ? img.getAttribute('alt') : null;
			
			let container = document.createElement('div');
			container.className = 'bookmarklet_notice_link';
			container.style.position = 'absolute';
			container.style.borderStyle = 'solid';
			container.style.borderWidth = '1px';
			container.style.fontWeight = 'bold';
			container.style.padding = '5px';
			container.style.zIndex = '9999';
			container.style.fontSize = '10px';
			
			if (title) {
				if (!ariaLabel && !text) {
					container.style.color = color_yellow;
					container.style.borderColor = color_yellow;
					container.style.backgroundColor = bg_color_yellow;
					container.textContent = 'ONLY TITLE';
				} else if (ariaLabel && ariaLabel.trim() !== title.trim()) {
					container.style.color = color_yellow;
					container.style.borderColor = color_yellow;
					container.style.backgroundColor = bg_color_yellow;
					container.textContent = 'TITLE != ARIA';
				} else {
					container.style.color = color_green;
					container.style.borderColor = color_green;
					container.style.backgroundColor = bg_color_green;
					container.textContent = 'OK: TEXT/ARIA';
				}
			} else if (text || (ariaLabel && ariaLabel.trim() !== '')) {
				container.style.color = color_green;
				container.style.borderColor = color_green;
				container.style.backgroundColor = bg_color_green;
				container.textContent = 'OK: TEXT/ARIA';
			} else if (img && imgAlt && imgAlt.trim() !== '') {
				container.style.color = color_green;
				container.style.borderColor = color_green;
				container.style.backgroundColor = bg_color_green;
				container.textContent = 'OK: ALT OF IMG';
			} else {
				container.style.color = color_red;
				container.style.borderColor = color_red;
				container.style.backgroundColor = bg_color_red;
				container.textContent = 'BAD: NO TEXT';
			}
			
			let rect = link.getBoundingClientRect();
			container.style.top = `${window.scrollY + rect.top - 16}px`;
			container.style.left = `${window.scrollX + rect.left}px`;
			container.style.pointerEvents = 'none';
			
			document.body.appendChild(container);
		});
	}
	
	setTimeout(function(){
		run_bm_links();
	}, 200);
})();