Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Outlook email integration #258

Open
diogosfs opened this issue Jan 7, 2024 · 0 comments
Open

Outlook email integration #258

diogosfs opened this issue Jan 7, 2024 · 0 comments

Comments

@diogosfs
Copy link

diogosfs commented Jan 7, 2024

Would be really useful to have a Outlook integration similar to Gmail's. The outlook.js does not seem to work. At least not for the most recent outlook. I was able to get something with the following additions:

integrations.json:

	"outlook.office365.com": {
		"name": "Outlook Mail",
		"link": "*://outlook.office365.com/*",
		"script": "outlook-mail.js"
	},

outlook-mail.js:

// Inbox emails
clockifyButton.render(
	'div[class="MByod XxeQL"]:not(.clockify)',
	{ observe: true },
	function (elem) {
		const description = $('[aria-label="Reading Pane"] [role="heading"]')
		link = clockifyButton.createButton(description.textContent);
		link.style.marginLeft = '20px';
		link.style.fontSize = '14px';
		elem.appendChild(link);
	}
);

This is not pretty but worked for me. I imagine 'div[class="MByod XxeQL"]:not(.clockify)' is not the best, seems like this could change.

I imagine one of you guys could implement a better solution within minutes. I would appreciate that and I am sure many others would to!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant