wayBetter for X
This commit is contained in:
commit
ae6ed24700
720 changed files with 147465 additions and 0 deletions
19
apps/desktop/src-tauri/example.plugin.js
Normal file
19
apps/desktop/src-tauri/example.plugin.js
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/**
|
||||
* @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');
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue