mirror of
https://github.com/EndPwnArchive/endpwn3.2-lambda.git
synced 2024-08-14 23:49:56 +00:00
fix epapi to get a diff element to load from
This commit is contained in:
parent
d71cf3f140
commit
d182a7288d
4 changed files with 174 additions and 91 deletions
18
plugin/csp.js
Normal file
18
plugin/csp.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
exports.manifest = {
|
||||
author: "Cynosphere",
|
||||
name: "CSP",
|
||||
description: "heck off policies"
|
||||
};
|
||||
exports.preload = function() {
|
||||
require("electron").remote.session.defaultSession.webRequest.onHeadersReceived(
|
||||
function(details, callback) {
|
||||
details.responseHeaders["content-security-policy-report-only"] = "";
|
||||
details.responseHeaders["content-security-policy"] = "";
|
||||
delete details.responseHeaders[
|
||||
"content-security-policy-report-only"
|
||||
];
|
||||
|
||||
callback({ responseHeaders: details.responseHeaders });
|
||||
}
|
||||
);
|
||||
};
|
22
plugin/dnt.js
Normal file
22
plugin/dnt.js
Normal file
|
@ -0,0 +1,22 @@
|
|||
exports.manifest = {
|
||||
author: "Cynosphere",
|
||||
name: "DNT",
|
||||
description: "heck off trackers",
|
||||
replacements:[
|
||||
{
|
||||
signature:"t.default=o({},u.default,{track:_})}",
|
||||
payload:`t.default=o({},u.default,{track:function(){console.debug("[dnt] tracking: science")}})}`
|
||||
},
|
||||
{
|
||||
signature:/_postReports=function\([a-zA-Z]\){.+},([a-zA-Z])\.prototype\._sendQualityReports`/,
|
||||
payload:`_postReports=function(){console.debug("[dnt] rtc: quality report")},$1.prototype._sendQualityReports`
|
||||
}
|
||||
]
|
||||
}
|
||||
exports.start = function(){
|
||||
/*var sentry = wc.findFunc("_originalConsoleMethods")[0].exports;
|
||||
window.console = Object.assign(window.console, sentry._originalConsoleMethods); // console
|
||||
sentry._wrappedBuiltIns.forEach(x => x[0][x[1]] = x[2]); // other stuff
|
||||
sentry._breadcrumbEventHandler = () => () => { }; // break most event logging
|
||||
sentry.captureBreadcrumb = () => { }; // disable breadcrumb logging*/
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue