MCPcopy Create free account
hub / github.com/ChinaGodMan/UserScripts / compactView

Function compactView

github-gist-copier/github-gist-copier.user.js:302–318  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

300 }
301 }
302 function compactView() {
303 //! https://greasyfork.org/es/scripts/529737
304 GM_addStyle(`
305 /* main container */
306 .gist-snippet {margin-bottom: 2px !important;}
307 /* icon */
308 .gist-snippet-meta .d-lg-inline-block.d-none.v-align-top.mt-1 > a {display: none !important;}
309 /* code */
310 .gist-snippet .js-gist-file-update-container {display: none;}
311 /* links */
312 .gist-snippet-meta .px-lg-2.px-0 > span:nth-child(1) {display: none;}
313 /* date */
314 .gist-snippet-meta .px-lg-2.px-0 > div {display: none;}
315 /* font size */
316 .gist-snippet-meta .color-fg-muted {font-size: 14px !important;}
317 `)
318 }
319 if (compactGist) {
320 compactView()
321 }

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected