- Remove desktop background (if your company enforces one)
- If you search in the start menu for Ease of Access, you'll see a result for Ease of Access brightness setting.
- Once that settings page has been opened, if you scroll down to the bottom, you’ll see an option to Show desktop background image. If you toggle this to off, it will set the background to the default black.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function htmlToElement(htmlString: string): HTMLElement { | |
const wrapper = document.createElement('div'); | |
wrapper.innerHTML = htmlString; | |
document.body.appendChild(wrapper); | |
const el = wrapper.firstChild; | |
if (el && wrapper.parentNode) { | |
const elClone = el.cloneNode(true); | |
wrapper.parentNode.removeChild(wrapper); | |
return elClone as HTMLElement; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function waitForAddedNode(params: { | |
query: string; | |
parent: HTMLElement; | |
recursive: boolean; | |
done: (el: HTMLElement) => void; | |
}): void { | |
if (!window.MutationObserver) { | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var iframeMouseOver = false; | |
window.addEventListener('blur',function(){ | |
if(iframeMouseOver){ | |
console.log('Wow! Iframe Click!'); | |
} | |
}); | |
document.getElementById('YOUR_CONTAINER_ID').addEventListener('mouseover',function(){ | |
iframeMouseOver = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function injectScriptTag(src: string, id: string): Promise<boolean> { | |
// eslint-disable-next-line consistent-return | |
return new Promise((resolve, reject) => { | |
if (document.getElementById(id)) { | |
// Already exists | |
return resolve(true); | |
} | |
const allScripts = document.getElementsByTagName('script'); | |
const lastScriptTag = document.getElementsByTagName('script')[ | |
allScripts.length - 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Use IntelliSense to learn about possible Node.js debug attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Debug Jest Tests", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(d, s, id){ | |
var js, fjs = d.getElementsByTagName(s)[0]; | |
if (d.getElementById(id)){ return; } | |
js = d.createElement(s); js.id = id; | |
js.onload = function(){ | |
// remote script has loaded | |
}; | |
js.src = "//domain.com/index.js"; | |
fjs.parentNode.insertBefore(js, fjs); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tell Mercurial you're renaming (not deleting) a file so it keeps the history | |
If you've already moved/renamed the file: | |
$ hg rename --after old-file.txt new-file.tx | |
$ hg rename --after olddir newdir | |
If you'd like Mercurial to rename the file for you | |
$ hg rename old-file.txt new-file.tx | |
$ hg rename olddir newdir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
**/node_modules | |
**/bower_components | |
./public | |
./coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://stackoverflow.com/questions/50976979/output-2-or-more-css-files-with-mini-css-extract-plugin-in-webpack |