Adds browser overides directory for gnu stow
This commit is contained in:
parent
0e021ede55
commit
0b01994780
27 changed files with 0 additions and 0 deletions
21
browserOverides/Sites/dotjs/public_html/bitbucket.org.js
Normal file
21
browserOverides/Sites/dotjs/public_html/bitbucket.org.js
Normal 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();
|
||||
}
|
||||
}))();
|
0
browserOverides/Sites/dotjs/public_html/default.js
Normal file
0
browserOverides/Sites/dotjs/public_html/default.js
Normal 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?';
|
||||
} );
|
Loading…
Add table
Add a link
Reference in a new issue