-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.user.js
More file actions
56 lines (48 loc) · 1.39 KB
/
main.user.js
File metadata and controls
56 lines (48 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// ==UserScript==
// @name Minds Limitlezz
// @version 1.0
// @updateURL https://raw.githubusercontent.com/lynxdingo/mindslimitlezz/main.user.js
// @description Upgrade your Minds experience
// @include https://www.minds.com/*
// @copyright 2022, lynxdingo (https://openuserjs.org/users/lynxdingo)
// @license MIT
// ==/UserScript==
function addCSS(){
// create style element
const style = document.createElement('style');
// add CSS styles
style.innerHTML = `
/* Newsfeed page */
m-newsfeed--boost-rotator,
m-featured-content,
.m-newsfeed--boost-sidebar,
.m-groupGrid__right.m-pageLayout__pane--right {
display:none
}
.m-newsfeed--feed.m-pageLayout__pane--main,
.m-pageLayout__pane--main.m-pageLayout__pane--main {
width: 100%;
max-width: 100%;
}
/* Keeps media only */
/* <user_name>?layout=grid */
m-feedgrid m-activity__minimalmetrics,
m-feedgrid m-activity__ownerblock,
m-feedgrid .m-activityContent__mediaDescription,
m-feedgrid .m-activityContent__message,
m-feedgrid .m-activity__remindDeletedNotice,
m-feedgrid .meta.m-rich-embed-has-thumbnail {
display:none;
}
`;
// append the style to the DOM in <head> section
document.head.appendChild(style);
}
function init(){
// listen for load event in the window
window.addEventListener("load", function () {
// do things after the DOM loads fully
addCSS();
});
}
init()