Release: Alpha v0.4.0

pull/8/head
Oj 4 years ago
parent f37a33cb41
commit e04c4ab511

@ -9,6 +9,22 @@ GooseMod follows semantic versioning, somewhat. However there are 4 release stag
- **Release** - Completely stable and recommended, etc. (probably unreachable)
## Alpha v0.4.0
- ### Features
- #### Injector
- Modules now have remove handler
- No longer uses global window variable, much more hidden now
- Added uninstall option to end of settings which uninstalls / removes GooseMod without reloading / refresh (leaves some small amounts of code but no visual or noticable changes remain, small traces can be removed by refreshing / reloading)
- #### Module: Visual Tweaks (v1.1.0)
- Now disables all tweaks on remove handler
- #### Module: Fucklytics (v1.1.0)
- Reverts proxy function remove handler
## Alpha v0.3.0 (Bump from Pre-alpha to Alpha!)
- ### Features

@ -1,8 +1,6 @@
window.GooseMod = {};
(async function() {
this.version = '0.3.0';
this.versionIteration = 31;
this.version = '0.4.0';
this.versionIteration = 33;
const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms));
@ -218,10 +216,6 @@ window.GooseMod = {};
contentEl.appendChild(el);
if (e.type === 'toggle') {
}
i++;
}
@ -236,6 +230,14 @@ window.GooseMod = {};
el.innerText = panelName;
el.onclick = () => {
if (panelName === 'Uninstall') {
this.remove();
document.querySelector('div[aria-label="Close"]').click(); // Close settings via clicking the close settings button
return;
}
setTimeout(() => {
settingsMainEl.firstChild.innerHTML = '';
settingsMainEl.firstChild.appendChild(parentEl);
@ -253,6 +255,8 @@ window.GooseMod = {};
};
settingsSidebarEl.addEventListener('click', () => {
if (this.removed === true) return;
el.classList.remove(settingsClasses['selected']);
});
@ -280,6 +284,8 @@ window.GooseMod = {};
};
settingsButtonEl.addEventListener('click', async () => {
if (this.removed) return;
await sleep(10);
settingsLayerEl = document.querySelector('div[aria-label="USER_SETTINGS"]');
@ -322,4 +328,16 @@ window.GooseMod = {};
this.logger.debug(`import.module.runOnLoadingFinishedHandler.${p}`, 'Ran onLoadingFinished()');
}
}
}).bind(window.GooseMod)();
this.settings.createItem('Uninstall', ['']);
this.remove = () => {
this.removed = true;
for (let p in this.modules) {
if (this.modules.hasOwnProperty(p) && this.modules[p].remove !== undefined) {
this.modules[p].remove();
}
}
};
}).bind({})();

@ -23,7 +23,11 @@ let obj = {
this.logger.debug('devMode', 'Enabling Developer Mode');
newDev();
},
},
remove: async function() {
},
logRegionColor: 'darkgreen'
};

@ -1,4 +1,4 @@
let version = '1.0.1';
let version = '1.1.0';
let enabled = true;
@ -7,14 +7,14 @@ let blocking = {
'sentry': true
};
let _XMLHttpRequest = XMLHttpRequest;
let obj = {
onImport: async function() {
let gooseModScope = this;
this.logger.debug('fucklytics', 'Overriding XMLHTTPRequest with a proxy function');
let _XMLHttpRequest = XMLHttpRequest;
window.XMLHttpRequest = function() {
var xhr = new _XMLHttpRequest();
@ -73,6 +73,12 @@ let obj = {
]);
},
remove: async function() {
enabled = false;
window.XMLHttpRequest = _XMLHttpRequest;
},
logRegionColor: 'darkblue'
};

@ -1,4 +1,4 @@
let version = '1.0.1';
let version = '1.1.0';
let obj = {
onImport: async function() {
@ -119,6 +119,12 @@ let obj = {
}
]);
},
remove: async function() {
for (let t in this.tweaks) {
if (this.tweaks[t] === true) this.disableTweak(t);
}
},
logRegionColor: 'darkred'
};

Loading…
Cancel
Save