Adds browser overides directory for gnu stow

This commit is contained in:
Jonathan Hodgson 2019-07-30 15:36:41 +01:00
parent 0e021ede55
commit 0b01994780
27 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,21 @@
((() => {
const domLoaded = function domLoaded(){
document.removeEventListener("readystatechange",domLoaded);
document.querySelectorAll("li").forEach(li => {
if( li.innerHTML.indexOf( '[' ) !== -1 ){
li.innerHTML = li.innerHTML.replace(/\[ \]/g, '☐');
li.innerHTML = li.innerHTML.replace(/\[x\]/g, '☒');
}
} );
}
if(document.readyState == "loading"){
//If the dom hasn't loaded, wait until it is
document.addEventListener("readystatechange",domLoaded);
return;
} else {
//If it has, run the domLoaded function
domLoaded();
}
}))();

View file

@ -0,0 +1,7 @@
window.addEventListener( "beforeunload", (event)=>{
// Cancel the event as stated by the standard.
event.preventDefault();
// Chrome requires returnValue to be set.
event.returnValue = 'This is invision, not the site. Are you sure?';
return 'This is invision, not the site. Are you sure?';
} );