Skip to content

Instantly share code, notes, and snippets.

@decatur
Last active April 1, 2021 21:25
Show Gist options
  • Save decatur/a4f309217558d40699f664ffb083d71e to your computer and use it in GitHub Desktop.
Save decatur/a4f309217558d40699f664ffb083d71e to your computer and use it in GitHub Desktop.
Chrome extension to make yammer feed pages more user friendly.

This a Chrome extension to make yammer feed pages more user friendly. As I personally do not trust extensions from the Chrome Web Store, this extension is only offered through this gist and must be installed in Developer Mode.

Setup

  1. Download this gist to some folder my_yammer_extension_folder
  2. Add this Chrome Extension according to Getting started - Chrome Developers:
    1. Open the Extension Management page by navigating to chrome://extensions.
    2. Enable Developer Mode by clicking the toggle switch next to Developer mode.
    3. Click the LOAD UNPACKED button and select the my_yammer_extension_folder

Usage

Navigate to https://web.yammer.com/main/feed. You may need to reload the page (F5)

Alternatives

We can do this with injected css only, using the !important rule:

.contentColumn-52 {
    max-width: 100% !important;
    font-size: larger;
}
console.log('####### pimp_yammer');
setTimeout(() => {
const elem = document.querySelector('.contentColumn-52');
if (elem) { // This avoids an error message when reloading the extension
elem.style.maxWidth = '100%';
elem.style.fontSize = 'larger';
}
}, 2000);
{
"name": "pimp_yammer",
"description": "Make yammer user friendly",
"version": "0.1",
"manifest_version": 3,
"permissions": ["scripting"],
"content_scripts": [
{
"matches": ["https://web.yammer.com/*"],
"js": ["contentScript.js"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment