docs: explain $INIT_CWD on using scripts page - #4436

Merged
lukekarrys merged 1 commit into
release-nextfrom
gar/init-cwd
Feb 22, 2022
Merged

docs: explain $INIT_CWD on using scripts page#4436
lukekarrys merged 1 commit into
release-nextfrom
gar/init-cwd

Conversation

@wraithgar

@wraithgarwraithgar commented Feb 18, 2022

Copy link
Copy Markdown
Contributor

Closes#3123

@npm-robot

npm-robot commented Feb 18, 2022

Copy link
Copy Markdown
Contributor

found 20 benchmarks with statistically significant performance improvements

  • app-large: clean, lock-only, cache-only, cache-only:peer-deps, modules-only, no-lock, no-cache, no-modules, no-clean, no-clean:audit
  • app-medium: clean, lock-only, cache-only, cache-only:peer-deps, modules-only, no-lock, no-cache, no-modules, no-clean, no-clean:audit
timing results
app-largecleanlock-onlycache-onlycache-only
peer-deps
modules-onlyno-lockno-cacheno-modulesno-cleanno-clean
audit
npm@847.801 ±0.5729.605 ±0.2434.170 ±23.9519.689 ±0.442.826 ±0.022.865 ±0.032.337 ±0.0411.468 ±0.122.268 ±0.013.289 ±0.03
#44360.399 ±0.010.418 ±0.020.402 ±0.000.402 ±0.000.402 ±0.000.401 ±0.000.397 ±0.000.403 ±0.000.396 ±0.000.401 ±0.00
app-mediumcleanlock-onlycache-onlycache-only
peer-deps
modules-onlyno-lockno-cacheno-modulesno-cleanno-clean
audit
npm@835.387 ±1.1523.002 ±0.0712.604 ±0.0713.553 ±0.042.569 ±0.022.587 ±0.012.274 ±0.018.262 ±0.012.135 ±0.012.918 ±0.08
#44360.402 ±0.000.400 ±0.000.407 ±0.020.401 ±0.000.404 ±0.000.400 ±0.000.426 ±0.010.400 ±0.000.399 ±0.000.403 ±0.00

@lukekarrys
lukekarrys merged commit d8fa9fa into release-nextFeb 22, 2022
@lukekarrys
lukekarrys deleted the gar/init-cwd branch February 22, 2022 19:58
@lukekarryslukekarrys mentioned this pull request Feb 24, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@wraithgar@npm-robot@lukekarrys
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

docs: explain $INIT_CWD on using scripts page - #4436

Merged
lukekarrys merged 1 commit into
release-nextfrom
gar/init-cwd
Feb 22, 2022
Merged

docs: explain $INIT_CWD on using scripts page#4436
lukekarrys merged 1 commit into
release-nextfrom
gar/init-cwd

Conversation

@wraithgar

@wraithgarwraithgar commented Feb 18, 2022

Copy link
Copy Markdown
Contributor

Closes#3123

@npm-robot

npm-robot commented Feb 18, 2022

Copy link
Copy Markdown
Contributor

found 20 benchmarks with statistically significant performance improvements

  • app-large: clean, lock-only, cache-only, cache-only:peer-deps, modules-only, no-lock, no-cache, no-modules, no-clean, no-clean:audit
  • app-medium: clean, lock-only, cache-only, cache-only:peer-deps, modules-only, no-lock, no-cache, no-modules, no-clean, no-clean:audit
timing results
app-largecleanlock-onlycache-onlycache-only
peer-deps
modules-onlyno-lockno-cacheno-modulesno-cleanno-clean
audit
npm@847.801 ±0.5729.605 ±0.2434.170 ±23.9519.689 ±0.442.826 ±0.022.865 ±0.032.337 ±0.0411.468 ±0.122.268 ±0.013.289 ±0.03
#44360.399 ±0.010.418 ±0.020.402 ±0.000.402 ±0.000.402 ±0.000.401 ±0.000.397 ±0.000.403 ±0.000.396 ±0.000.401 ±0.00
app-mediumcleanlock-onlycache-onlycache-only
peer-deps
modules-onlyno-lockno-cacheno-modulesno-cleanno-clean
audit
npm@835.387 ±1.1523.002 ±0.0712.604 ±0.0713.553 ±0.042.569 ±0.022.587 ±0.012.274 ±0.018.262 ±0.012.135 ±0.012.918 ±0.08
#44360.402 ±0.000.400 ±0.000.407 ±0.020.401 ±0.000.404 ±0.000.400 ±0.000.426 ±0.010.400 ±0.000.399 ±0.000.403 ±0.00

@lukekarrys
lukekarrys merged commit d8fa9fa into release-nextFeb 22, 2022
@lukekarrys
lukekarrys deleted the gar/init-cwd branch February 22, 2022 19:58
@lukekarryslukekarrys mentioned this pull request Feb 24, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@wraithgar@npm-robot@lukekarrys
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

docs: explain $INIT_CWD on using scripts page - #4436

Merged
lukekarrys merged 1 commit into
release-nextfrom
gar/init-cwd
Feb 22, 2022
Merged

docs: explain $INIT_CWD on using scripts page#4436
lukekarrys merged 1 commit into
release-nextfrom
gar/init-cwd

Conversation

@wraithgar

@wraithgarwraithgar commented Feb 18, 2022

Copy link
Copy Markdown
Contributor

Closes#3123

@npm-robot

npm-robot commented Feb 18, 2022

Copy link
Copy Markdown
Contributor

found 20 benchmarks with statistically significant performance improvements

  • app-large: clean, lock-only, cache-only, cache-only:peer-deps, modules-only, no-lock, no-cache, no-modules, no-clean, no-clean:audit
  • app-medium: clean, lock-only, cache-only, cache-only:peer-deps, modules-only, no-lock, no-cache, no-modules, no-clean, no-clean:audit
timing results
app-largecleanlock-onlycache-onlycache-only
peer-deps
modules-onlyno-lockno-cacheno-modulesno-cleanno-clean
audit
npm@847.801 ±0.5729.605 ±0.2434.170 ±23.9519.689 ±0.442.826 ±0.022.865 ±0.032.337 ±0.0411.468 ±0.122.268 ±0.013.289 ±0.03
#44360.399 ±0.010.418 ±0.020.402 ±0.000.402 ±0.000.402 ±0.000.401 ±0.000.397 ±0.000.403 ±0.000.396 ±0.000.401 ±0.00
app-mediumcleanlock-onlycache-onlycache-only
peer-deps
modules-onlyno-lockno-cacheno-modulesno-cleanno-clean
audit
npm@835.387 ±1.1523.002 ±0.0712.604 ±0.0713.553 ±0.042.569 ±0.022.587 ±0.012.274 ±0.018.262 ±0.012.135 ±0.012.918 ±0.08
#44360.402 ±0.000.400 ±0.000.407 ±0.020.401 ±0.000.404 ±0.000.400 ±0.000.426 ±0.010.400 ±0.000.399 ±0.000.403 ±0.00

@lukekarrys
lukekarrys merged commit d8fa9fa into release-nextFeb 22, 2022
@lukekarrys
lukekarrys deleted the gar/init-cwd branch February 22, 2022 19:58
@lukekarryslukekarrys mentioned this pull request Feb 24, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@wraithgar@npm-robot@lukekarrys