waybetter-for-x/apps/desktop/src-tauri/example.plugin.js
2026-09-30 23:01:13 +00:00

19 lines
579 B
JavaScript

/**
* @name Hide Trends
* @description Example plugin: hides "What's happening" and "Who to follow" in the right column. Enable it from wayBetter → Plugins.
* @version 1.0.0
* @author wayBetter
* @permissions network:none
*/
module.exports = class HideTrends {
start() {
window.wayBetter.api.injectCSS('hide-trends', `
[data-testid="sidebarColumn"] section[aria-labelledby^="accessible-list"],
[data-testid="sidebarColumn"] aside[aria-label] { display: none !important; }
`);
}
stop() {
window.wayBetter.api.clearCSS('hide-trends');
}
};