Add automatic staining - Closes #5
This commit is contained in:
parent
4059c6c6c6
commit
1f9654bae6
|
@ -47,6 +47,7 @@ RUN apk add clang
|
||||||
RUN apk add freetype-dev
|
RUN apk add freetype-dev
|
||||||
RUN python3 -m pip install --upgrade Pillow
|
RUN python3 -m pip install --upgrade Pillow
|
||||||
RUN apk add zip
|
RUN apk add zip
|
||||||
|
RUN apk add xclip
|
||||||
|
|
||||||
COPY . /opt
|
COPY . /opt
|
||||||
CMD /opt/prepare-firefox.sh
|
CMD /opt/prepare-firefox.sh
|
||||||
|
|
51
Docker/click-accept-all.js
Normal file
51
Docker/click-accept-all.js
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
regexes = ["allow", "accept", "akceptuj", /przejdź(?! do główn).*/];
|
||||||
|
avoid = ["dostosuj"];
|
||||||
|
|
||||||
|
buttons = Array.from(document.querySelectorAll("*")).filter(
|
||||||
|
(e) =>
|
||||||
|
e.textContent.length < 50 &&
|
||||||
|
regexes.some((regex) => e.textContent.toLowerCase().match(regex) !== null)
|
||||||
|
);
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
(buttons) =>
|
||||||
|
buttons.filter((button) => {
|
||||||
|
const rect = button.getBoundingClientRect();
|
||||||
|
return (
|
||||||
|
rect.top < window.innerHeight &&
|
||||||
|
rect.left < window.innerWidth &&
|
||||||
|
!(rect.width == 0 && rect.height == 0)
|
||||||
|
);
|
||||||
|
}),
|
||||||
|
(buttons) =>
|
||||||
|
buttons.filter((e) => !e.textContent.toLowerCase().includes("only")),
|
||||||
|
(buttons) => buttons.filter((e) => e.tagName.toLowerCase() === "button"),
|
||||||
|
(buttons) =>
|
||||||
|
buttons.filter((e) => !e.textContent.toLowerCase().includes("do not")),
|
||||||
|
(buttons) => buttons.filter((e) => e.tagName.toLowerCase() === "a"),
|
||||||
|
(buttons) =>
|
||||||
|
buttons.filter((e) =>
|
||||||
|
avoid.every((word) => !e.textContent.toLowerCase().includes(word))
|
||||||
|
),
|
||||||
|
(buttons) =>
|
||||||
|
buttons.filter(
|
||||||
|
(e) => e.tagName.toLowerCase() === "input" && e.type === "submit"
|
||||||
|
),
|
||||||
|
];
|
||||||
|
|
||||||
|
for (const operation of operations) {
|
||||||
|
if (buttons.length === 1) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
const result = operation(buttons);
|
||||||
|
if (result.length) {
|
||||||
|
buttons = result;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
buttons.forEach((button) => button.click());
|
||||||
|
buttons.forEach((button) => {
|
||||||
|
button.querySelectorAll("input").forEach((child) => child.click());
|
||||||
|
});
|
||||||
|
|
||||||
|
buttons;
|
|
@ -12,23 +12,35 @@
|
||||||
user_pref("accessibility.typeaheadfind.flashBar", 0);
|
user_pref("accessibility.typeaheadfind.flashBar", 0);
|
||||||
user_pref("app.normandy.first_run", false);
|
user_pref("app.normandy.first_run", false);
|
||||||
user_pref("app.normandy.migrationsApplied", 12);
|
user_pref("app.normandy.migrationsApplied", 12);
|
||||||
user_pref("app.normandy.startupRolloutPrefs.media.peerconnection.mtransport_process", true);
|
user_pref(
|
||||||
|
"app.normandy.startupRolloutPrefs.media.peerconnection.mtransport_process",
|
||||||
|
true
|
||||||
|
);
|
||||||
user_pref("app.normandy.startupRolloutPrefs.network.process.enabled", true);
|
user_pref("app.normandy.startupRolloutPrefs.network.process.enabled", true);
|
||||||
user_pref("app.normandy.user_id", "68c45dbc-3d36-4100-b9d6-051405e1970d");
|
user_pref("app.normandy.user_id", "68c45dbc-3d36-4100-b9d6-051405e1970d");
|
||||||
user_pref("app.update.lastUpdateTime.addon-background-update-timer", 1650803737);
|
user_pref(
|
||||||
|
"app.update.lastUpdateTime.addon-background-update-timer",
|
||||||
|
1650803737
|
||||||
|
);
|
||||||
user_pref("app.update.lastUpdateTime.browser-cleanup-thumbnails", 1650805013);
|
user_pref("app.update.lastUpdateTime.browser-cleanup-thumbnails", 1650805013);
|
||||||
user_pref("app.update.lastUpdateTime.recipe-client-addon-run", 1650804404);
|
user_pref("app.update.lastUpdateTime.recipe-client-addon-run", 1650804404);
|
||||||
user_pref("app.update.lastUpdateTime.region-update-timer", 1650487601);
|
user_pref("app.update.lastUpdateTime.region-update-timer", 1650487601);
|
||||||
user_pref("app.update.lastUpdateTime.rs-experiment-loader-timer", 1650806890);
|
user_pref("app.update.lastUpdateTime.rs-experiment-loader-timer", 1650806890);
|
||||||
user_pref("app.update.lastUpdateTime.search-engine-update-timer", 1650804480);
|
user_pref("app.update.lastUpdateTime.search-engine-update-timer", 1650804480);
|
||||||
user_pref("app.update.lastUpdateTime.services-settings-poll-changes", 1650804097);
|
user_pref(
|
||||||
|
"app.update.lastUpdateTime.services-settings-poll-changes",
|
||||||
|
1650804097
|
||||||
|
);
|
||||||
user_pref("app.update.lastUpdateTime.telemetry_modules_ping", 1650803857);
|
user_pref("app.update.lastUpdateTime.telemetry_modules_ping", 1650803857);
|
||||||
user_pref("app.update.lastUpdateTime.xpi-signature-verification", 1650803977);
|
user_pref("app.update.lastUpdateTime.xpi-signature-verification", 1650803977);
|
||||||
user_pref("browser.aboutConfig.showWarning", false);
|
user_pref("browser.aboutConfig.showWarning", false);
|
||||||
user_pref("browser.bookmarks.addedImportButton", true);
|
user_pref("browser.bookmarks.addedImportButton", true);
|
||||||
user_pref("browser.bookmarks.restore_default_bookmarks", false);
|
user_pref("browser.bookmarks.restore_default_bookmarks", false);
|
||||||
user_pref("browser.contentblocking.category", "standard");
|
user_pref("browser.contentblocking.category", "standard");
|
||||||
user_pref("browser.contextual-services.contextId", "{7d473de4-87e8-4819-838c-952223d8a8e2}");
|
user_pref(
|
||||||
|
"browser.contextual-services.contextId",
|
||||||
|
"{7d473de4-87e8-4819-838c-952223d8a8e2}"
|
||||||
|
);
|
||||||
user_pref("browser.download.viewableInternally.typeWasRegistered.avif", true);
|
user_pref("browser.download.viewableInternally.typeWasRegistered.avif", true);
|
||||||
user_pref("browser.download.viewableInternally.typeWasRegistered.svg", true);
|
user_pref("browser.download.viewableInternally.typeWasRegistered.svg", true);
|
||||||
user_pref("browser.download.viewableInternally.typeWasRegistered.webp", true);
|
user_pref("browser.download.viewableInternally.typeWasRegistered.webp", true);
|
||||||
|
@ -36,15 +48,27 @@ user_pref("browser.download.viewableInternally.typeWasRegistered.xml", true);
|
||||||
user_pref("browser.laterrun.bookkeeping.profileCreationTime", 1645654827);
|
user_pref("browser.laterrun.bookkeeping.profileCreationTime", 1645654827);
|
||||||
user_pref("browser.laterrun.bookkeeping.sessionCount", 51);
|
user_pref("browser.laterrun.bookkeeping.sessionCount", 51);
|
||||||
user_pref("browser.migration.version", 122);
|
user_pref("browser.migration.version", 122);
|
||||||
user_pref("browser.newtabpage.activity-stream.impressionId", "{cfe7beb2-e88b-450f-b3f8-e5b739d007bb}");
|
user_pref(
|
||||||
|
"browser.newtabpage.activity-stream.impressionId",
|
||||||
|
"{cfe7beb2-e88b-450f-b3f8-e5b739d007bb}"
|
||||||
|
);
|
||||||
user_pref("browser.newtabpage.storageVersion", 1);
|
user_pref("browser.newtabpage.storageVersion", 1);
|
||||||
user_pref("browser.pageActions.persistedActions", "{\"ids\":[\"bookmark\"],\"idsInUrlbar\":[\"bookmark\"],\"idsInUrlbarPreProton\":[],\"version\":1}");
|
user_pref(
|
||||||
|
"browser.pageActions.persistedActions",
|
||||||
|
'{"ids":["bookmark"],"idsInUrlbar":["bookmark"],"idsInUrlbarPreProton":[],"version":1}'
|
||||||
|
);
|
||||||
user_pref("browser.pagethumbnails.storage_version", 3);
|
user_pref("browser.pagethumbnails.storage_version", 3);
|
||||||
user_pref("browser.proton.toolbar.version", 3);
|
user_pref("browser.proton.toolbar.version", 3);
|
||||||
user_pref("browser.region.update.updated", 1650487602);
|
user_pref("browser.region.update.updated", 1650487602);
|
||||||
user_pref("browser.rights.3.shown", true);
|
user_pref("browser.rights.3.shown", true);
|
||||||
user_pref("browser.safebrowsing.provider.mozilla.lastupdatetime", "1650800239509");
|
user_pref(
|
||||||
user_pref("browser.safebrowsing.provider.mozilla.nextupdatetime", "1650821839509");
|
"browser.safebrowsing.provider.mozilla.lastupdatetime",
|
||||||
|
"1650800239509"
|
||||||
|
);
|
||||||
|
user_pref(
|
||||||
|
"browser.safebrowsing.provider.mozilla.nextupdatetime",
|
||||||
|
"1650821839509"
|
||||||
|
);
|
||||||
user_pref("browser.search.region", "PL");
|
user_pref("browser.search.region", "PL");
|
||||||
user_pref("browser.sessionstore.upgradeBackup.latestBuildID", "20211102211617");
|
user_pref("browser.sessionstore.upgradeBackup.latestBuildID", "20211102211617");
|
||||||
user_pref("browser.startup.couldRestoreSession.count", 2);
|
user_pref("browser.startup.couldRestoreSession.count", 2);
|
||||||
|
@ -52,15 +76,24 @@ user_pref("browser.startup.homepage_override.buildID", "20211102211617");
|
||||||
user_pref("browser.startup.homepage_override.mstone", "94.0");
|
user_pref("browser.startup.homepage_override.mstone", "94.0");
|
||||||
user_pref("browser.startup.lastColdStartupCheck", 1650806890);
|
user_pref("browser.startup.lastColdStartupCheck", 1650806890);
|
||||||
user_pref("browser.startup.upgradeDialog.version", 94);
|
user_pref("browser.startup.upgradeDialog.version", 94);
|
||||||
user_pref("browser.uiCustomization.state", "{\"placements\":{\"widget-overflow-fixed-list\":[],\"nav-bar\":[\"back-button\",\"forward-button\",\"stop-reload-button\",\"customizableui-special-spring1\",\"urlbar-container\",\"customizableui-special-spring2\",\"save-to-pocket-button\",\"downloads-button\",\"fxa-toolbar-menu-button\"],\"toolbar-menubar\":[\"menubar-items\"],\"TabsToolbar\":[\"tabbrowser-tabs\",\"new-tab-button\",\"alltabs-button\"],\"PersonalToolbar\":[\"import-button\",\"personal-bookmarks\"]},\"seen\":[\"save-to-pocket-button\",\"developer-button\"],\"dirtyAreaCache\":[\"nav-bar\",\"PersonalToolbar\",\"toolbar-menubar\",\"TabsToolbar\"],\"currentVersion\":17,\"newElementCount\":2}");
|
user_pref(
|
||||||
|
"browser.uiCustomization.state",
|
||||||
|
'{"placements":{"widget-overflow-fixed-list":[],"nav-bar":["back-button","forward-button","stop-reload-button","customizableui-special-spring1","urlbar-container","customizableui-special-spring2","save-to-pocket-button","downloads-button","fxa-toolbar-menu-button"],"toolbar-menubar":["menubar-items"],"TabsToolbar":["tabbrowser-tabs","new-tab-button","alltabs-button"],"PersonalToolbar":["import-button","personal-bookmarks"]},"seen":["save-to-pocket-button","developer-button"],"dirtyAreaCache":["nav-bar","PersonalToolbar","toolbar-menubar","TabsToolbar"],"currentVersion":17,"newElementCount":2}'
|
||||||
|
);
|
||||||
user_pref("browser.urlbar.placeholderName", "Google");
|
user_pref("browser.urlbar.placeholderName", "Google");
|
||||||
user_pref("browser.urlbar.quicksuggest.migrationVersion", 2);
|
user_pref("browser.urlbar.quicksuggest.migrationVersion", 2);
|
||||||
user_pref("browser.urlbar.tipShownCount.searchTip_onboard", 4);
|
user_pref("browser.urlbar.tipShownCount.searchTip_onboard", 4);
|
||||||
user_pref("datareporting.policy.dataSubmissionPolicyAcceptedVersion", 2);
|
user_pref("datareporting.policy.dataSubmissionPolicyAcceptedVersion", 2);
|
||||||
user_pref("datareporting.policy.dataSubmissionPolicyNotifiedTime", "1645654828835");
|
user_pref(
|
||||||
|
"datareporting.policy.dataSubmissionPolicyNotifiedTime",
|
||||||
|
"1645654828835"
|
||||||
|
);
|
||||||
user_pref("devtools.everOpened", true);
|
user_pref("devtools.everOpened", true);
|
||||||
user_pref("devtools.netmonitor.columnsData", "[{\"name\":\"status\",\"minWidth\":30,\"width\":6.59},{\"name\":\"method\",\"minWidth\":30,\"width\":6.59},{\"name\":\"domain\",\"minWidth\":30,\"width\":13.37},{\"name\":\"file\",\"minWidth\":30,\"width\":33.65},{\"name\":\"url\",\"minWidth\":30,\"width\":25},{\"name\":\"initiator\",\"minWidth\":30,\"width\":13.33},{\"name\":\"type\",\"minWidth\":30,\"width\":6.51},{\"name\":\"transferred\",\"minWidth\":30,\"width\":13.37},{\"name\":\"contentSize\",\"minWidth\":30,\"width\":6.59},{\"name\":\"waterfall\",\"minWidth\":150,\"width\":0.68}]");
|
user_pref(
|
||||||
user_pref("devtools.netmonitor.msg.visibleColumns", "[\"data\",\"time\"]");
|
"devtools.netmonitor.columnsData",
|
||||||
|
'[{"name":"status","minWidth":30,"width":6.59},{"name":"method","minWidth":30,"width":6.59},{"name":"domain","minWidth":30,"width":13.37},{"name":"file","minWidth":30,"width":33.65},{"name":"url","minWidth":30,"width":25},{"name":"initiator","minWidth":30,"width":13.33},{"name":"type","minWidth":30,"width":6.51},{"name":"transferred","minWidth":30,"width":13.37},{"name":"contentSize","minWidth":30,"width":6.59},{"name":"waterfall","minWidth":150,"width":0.68}]'
|
||||||
|
);
|
||||||
|
user_pref("devtools.netmonitor.msg.visibleColumns", '["data","time"]');
|
||||||
user_pref("devtools.selfxss.count", 1);
|
user_pref("devtools.selfxss.count", 1);
|
||||||
user_pref("devtools.toolbox.host", "right");
|
user_pref("devtools.toolbox.host", "right");
|
||||||
user_pref("devtools.toolbox.previousHost", "bottom");
|
user_pref("devtools.toolbox.previousHost", "bottom");
|
||||||
|
@ -86,28 +119,49 @@ user_pref("extensions.lastAppBuildId", "20211102211617");
|
||||||
user_pref("extensions.lastAppVersion", "94.0");
|
user_pref("extensions.lastAppVersion", "94.0");
|
||||||
user_pref("extensions.lastPlatformVersion", "94.0");
|
user_pref("extensions.lastPlatformVersion", "94.0");
|
||||||
user_pref("extensions.pendingOperations", false);
|
user_pref("extensions.pendingOperations", false);
|
||||||
user_pref("extensions.pictureinpicture.enable_picture_in_picture_overrides", true);
|
user_pref(
|
||||||
user_pref("extensions.systemAddonSet", "{\"schema\":1,\"addons\":{}}");
|
"extensions.pictureinpicture.enable_picture_in_picture_overrides",
|
||||||
|
true
|
||||||
|
);
|
||||||
|
user_pref("extensions.systemAddonSet", '{"schema":1,"addons":{}}');
|
||||||
user_pref("extensions.webcompat.enable_shims", true);
|
user_pref("extensions.webcompat.enable_shims", true);
|
||||||
user_pref("extensions.webcompat.perform_injections", true);
|
user_pref("extensions.webcompat.perform_injections", true);
|
||||||
user_pref("extensions.webcompat.perform_ua_overrides", true);
|
user_pref("extensions.webcompat.perform_ua_overrides", true);
|
||||||
user_pref("extensions.webextensions.ExtensionStorageIDB.migrated.screenshots@mozilla.org", true);
|
user_pref(
|
||||||
user_pref("extensions.webextensions.uuids", "{\"doh-rollout@mozilla.org\":\"d786c92b-3a2b-4cd7-8617-905b3b80bcb6\",\"formautofill@mozilla.org\":\"ef19bb71-c4c4-48e6-88ed-549c9d7f4a75\",\"pictureinpicture@mozilla.org\":\"9381190a-808d-4e5a-a95a-fb2db3ad20e2\",\"screenshots@mozilla.org\":\"c767dbd4-9862-4f54-a52c-83f18411f168\",\"webcompat-reporter@mozilla.org\":\"20d45367-f30c-449f-80a4-f982d868543f\",\"webcompat@mozilla.org\":\"cec7180c-4f59-4d93-9d78-dc812336e1d7\",\"default-theme@mozilla.org\":\"cf8c0ac7-db4e-4993-b8b7-f2f6d56a04c6\",\"addons-search-detection@mozilla.com\":\"6954a27b-4a59-4e26-be87-3f8d846d0d04\",\"google@search.mozilla.org\":\"ba6837b3-8b4b-4e5e-941b-4bb4939a04c2\",\"amazondotcom@search.mozilla.org\":\"9c031aa6-9bcf-43d7-a7c8-ea7f7bbbe72a\",\"wikipedia@search.mozilla.org\":\"5da03e04-e83a-48ff-91df-a35544b1b393\",\"bing@search.mozilla.org\":\"993b6cfb-f8a1-49c4-9d3a-42b86ba5e640\",\"ddg@search.mozilla.org\":\"aad54df8-c1cd-49fc-a553-fad602b3fd1f\",\"proxy-failover@mozilla.com\":\"f90a5878-ede4-414a-8eff-5935ba2c5b7f\",\"foto-soft-colorway@mozilla.org\":\"e85cafba-5e1d-41e6-8ecc-b1c2e96bff28\"}");
|
"extensions.webextensions.ExtensionStorageIDB.migrated.screenshots@mozilla.org",
|
||||||
|
true
|
||||||
|
);
|
||||||
|
user_pref(
|
||||||
|
"extensions.webextensions.uuids",
|
||||||
|
'{"doh-rollout@mozilla.org":"d786c92b-3a2b-4cd7-8617-905b3b80bcb6","formautofill@mozilla.org":"ef19bb71-c4c4-48e6-88ed-549c9d7f4a75","pictureinpicture@mozilla.org":"9381190a-808d-4e5a-a95a-fb2db3ad20e2","screenshots@mozilla.org":"c767dbd4-9862-4f54-a52c-83f18411f168","webcompat-reporter@mozilla.org":"20d45367-f30c-449f-80a4-f982d868543f","webcompat@mozilla.org":"cec7180c-4f59-4d93-9d78-dc812336e1d7","default-theme@mozilla.org":"cf8c0ac7-db4e-4993-b8b7-f2f6d56a04c6","addons-search-detection@mozilla.com":"6954a27b-4a59-4e26-be87-3f8d846d0d04","google@search.mozilla.org":"ba6837b3-8b4b-4e5e-941b-4bb4939a04c2","amazondotcom@search.mozilla.org":"9c031aa6-9bcf-43d7-a7c8-ea7f7bbbe72a","wikipedia@search.mozilla.org":"5da03e04-e83a-48ff-91df-a35544b1b393","bing@search.mozilla.org":"993b6cfb-f8a1-49c4-9d3a-42b86ba5e640","ddg@search.mozilla.org":"aad54df8-c1cd-49fc-a553-fad602b3fd1f","proxy-failover@mozilla.com":"f90a5878-ede4-414a-8eff-5935ba2c5b7f","foto-soft-colorway@mozilla.org":"e85cafba-5e1d-41e6-8ecc-b1c2e96bff28"}'
|
||||||
|
);
|
||||||
user_pref("fission.experiment.max-origins.last-disqualified", 0);
|
user_pref("fission.experiment.max-origins.last-disqualified", 0);
|
||||||
user_pref("fission.experiment.max-origins.last-qualified", 1645654828);
|
user_pref("fission.experiment.max-origins.last-qualified", 1645654828);
|
||||||
user_pref("fission.experiment.max-origins.qualified", true);
|
user_pref("fission.experiment.max-origins.qualified", true);
|
||||||
user_pref("gfx.blacklist.canvas2d.acceleration", 4);
|
user_pref("gfx.blacklist.canvas2d.acceleration", 4);
|
||||||
user_pref("gfx.blacklist.canvas2d.acceleration.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
user_pref(
|
||||||
|
"gfx.blacklist.canvas2d.acceleration.failureid",
|
||||||
|
"FEATURE_FAILURE_GLXTEST_FAILED"
|
||||||
|
);
|
||||||
user_pref("gfx.blacklist.d3d11.keyed.mutex", 4);
|
user_pref("gfx.blacklist.d3d11.keyed.mutex", 4);
|
||||||
user_pref("gfx.blacklist.d3d11.keyed.mutex.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
user_pref(
|
||||||
|
"gfx.blacklist.d3d11.keyed.mutex.failureid",
|
||||||
|
"FEATURE_FAILURE_GLXTEST_FAILED"
|
||||||
|
);
|
||||||
user_pref("gfx.blacklist.direct2d", 4);
|
user_pref("gfx.blacklist.direct2d", 4);
|
||||||
user_pref("gfx.blacklist.direct2d.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
user_pref("gfx.blacklist.direct2d.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
||||||
user_pref("gfx.blacklist.direct3d11angle", 4);
|
user_pref("gfx.blacklist.direct3d11angle", 4);
|
||||||
user_pref("gfx.blacklist.direct3d11angle.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
user_pref(
|
||||||
|
"gfx.blacklist.direct3d11angle.failureid",
|
||||||
|
"FEATURE_FAILURE_GLXTEST_FAILED"
|
||||||
|
);
|
||||||
user_pref("gfx.blacklist.dmabuf", 4);
|
user_pref("gfx.blacklist.dmabuf", 4);
|
||||||
user_pref("gfx.blacklist.dmabuf.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
user_pref("gfx.blacklist.dmabuf.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
||||||
user_pref("gfx.blacklist.dx.interop2", 4);
|
user_pref("gfx.blacklist.dx.interop2", 4);
|
||||||
user_pref("gfx.blacklist.dx.interop2.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
user_pref(
|
||||||
|
"gfx.blacklist.dx.interop2.failureid",
|
||||||
|
"FEATURE_FAILURE_GLXTEST_FAILED"
|
||||||
|
);
|
||||||
user_pref("gfx.blacklist.dx.nv12", 4);
|
user_pref("gfx.blacklist.dx.nv12", 4);
|
||||||
user_pref("gfx.blacklist.dx.nv12.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
user_pref("gfx.blacklist.dx.nv12.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
||||||
user_pref("gfx.blacklist.dx.p010", 4);
|
user_pref("gfx.blacklist.dx.p010", 4);
|
||||||
|
@ -115,43 +169,97 @@ user_pref("gfx.blacklist.dx.p010.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
||||||
user_pref("gfx.blacklist.dx.p016", 4);
|
user_pref("gfx.blacklist.dx.p016", 4);
|
||||||
user_pref("gfx.blacklist.dx.p016.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
user_pref("gfx.blacklist.dx.p016.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
||||||
user_pref("gfx.blacklist.gl.swizzle", 4);
|
user_pref("gfx.blacklist.gl.swizzle", 4);
|
||||||
user_pref("gfx.blacklist.gl.swizzle.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
user_pref(
|
||||||
|
"gfx.blacklist.gl.swizzle.failureid",
|
||||||
|
"FEATURE_FAILURE_GLXTEST_FAILED"
|
||||||
|
);
|
||||||
user_pref("gfx.blacklist.gpu.process", 4);
|
user_pref("gfx.blacklist.gpu.process", 4);
|
||||||
user_pref("gfx.blacklist.gpu.process.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
user_pref(
|
||||||
|
"gfx.blacklist.gpu.process.failureid",
|
||||||
|
"FEATURE_FAILURE_GLXTEST_FAILED"
|
||||||
|
);
|
||||||
user_pref("gfx.blacklist.hardwarevideodecoding", 4);
|
user_pref("gfx.blacklist.hardwarevideodecoding", 4);
|
||||||
user_pref("gfx.blacklist.hardwarevideodecoding.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
user_pref(
|
||||||
|
"gfx.blacklist.hardwarevideodecoding.failureid",
|
||||||
|
"FEATURE_FAILURE_GLXTEST_FAILED"
|
||||||
|
);
|
||||||
user_pref("gfx.blacklist.layers.direct3d10", 4);
|
user_pref("gfx.blacklist.layers.direct3d10", 4);
|
||||||
user_pref("gfx.blacklist.layers.direct3d10-1", 4);
|
user_pref("gfx.blacklist.layers.direct3d10-1", 4);
|
||||||
user_pref("gfx.blacklist.layers.direct3d10-1.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
user_pref(
|
||||||
user_pref("gfx.blacklist.layers.direct3d10.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
"gfx.blacklist.layers.direct3d10-1.failureid",
|
||||||
|
"FEATURE_FAILURE_GLXTEST_FAILED"
|
||||||
|
);
|
||||||
|
user_pref(
|
||||||
|
"gfx.blacklist.layers.direct3d10.failureid",
|
||||||
|
"FEATURE_FAILURE_GLXTEST_FAILED"
|
||||||
|
);
|
||||||
user_pref("gfx.blacklist.layers.direct3d11", 4);
|
user_pref("gfx.blacklist.layers.direct3d11", 4);
|
||||||
user_pref("gfx.blacklist.layers.direct3d11.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
user_pref(
|
||||||
|
"gfx.blacklist.layers.direct3d11.failureid",
|
||||||
|
"FEATURE_FAILURE_GLXTEST_FAILED"
|
||||||
|
);
|
||||||
user_pref("gfx.blacklist.layers.direct3d9", 4);
|
user_pref("gfx.blacklist.layers.direct3d9", 4);
|
||||||
user_pref("gfx.blacklist.layers.direct3d9.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
user_pref(
|
||||||
|
"gfx.blacklist.layers.direct3d9.failureid",
|
||||||
|
"FEATURE_FAILURE_GLXTEST_FAILED"
|
||||||
|
);
|
||||||
user_pref("gfx.blacklist.layers.opengl", 4);
|
user_pref("gfx.blacklist.layers.opengl", 4);
|
||||||
user_pref("gfx.blacklist.layers.opengl.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
user_pref(
|
||||||
|
"gfx.blacklist.layers.opengl.failureid",
|
||||||
|
"FEATURE_FAILURE_GLXTEST_FAILED"
|
||||||
|
);
|
||||||
user_pref("gfx.blacklist.stagefright", 4);
|
user_pref("gfx.blacklist.stagefright", 4);
|
||||||
user_pref("gfx.blacklist.stagefright.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
user_pref(
|
||||||
|
"gfx.blacklist.stagefright.failureid",
|
||||||
|
"FEATURE_FAILURE_GLXTEST_FAILED"
|
||||||
|
);
|
||||||
user_pref("gfx.blacklist.webgl.allow-oop", 4);
|
user_pref("gfx.blacklist.webgl.allow-oop", 4);
|
||||||
user_pref("gfx.blacklist.webgl.allow-oop.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
user_pref(
|
||||||
|
"gfx.blacklist.webgl.allow-oop.failureid",
|
||||||
|
"FEATURE_FAILURE_GLXTEST_FAILED"
|
||||||
|
);
|
||||||
user_pref("gfx.blacklist.webgl.angle", 4);
|
user_pref("gfx.blacklist.webgl.angle", 4);
|
||||||
user_pref("gfx.blacklist.webgl.angle.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
user_pref(
|
||||||
|
"gfx.blacklist.webgl.angle.failureid",
|
||||||
|
"FEATURE_FAILURE_GLXTEST_FAILED"
|
||||||
|
);
|
||||||
user_pref("gfx.blacklist.webgl.msaa", 4);
|
user_pref("gfx.blacklist.webgl.msaa", 4);
|
||||||
user_pref("gfx.blacklist.webgl.msaa.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
user_pref(
|
||||||
|
"gfx.blacklist.webgl.msaa.failureid",
|
||||||
|
"FEATURE_FAILURE_GLXTEST_FAILED"
|
||||||
|
);
|
||||||
user_pref("gfx.blacklist.webgl.opengl", 4);
|
user_pref("gfx.blacklist.webgl.opengl", 4);
|
||||||
user_pref("gfx.blacklist.webgl.opengl.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
user_pref(
|
||||||
|
"gfx.blacklist.webgl.opengl.failureid",
|
||||||
|
"FEATURE_FAILURE_GLXTEST_FAILED"
|
||||||
|
);
|
||||||
user_pref("gfx.blacklist.webgl2", 4);
|
user_pref("gfx.blacklist.webgl2", 4);
|
||||||
user_pref("gfx.blacklist.webgl2.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
user_pref("gfx.blacklist.webgl2.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
||||||
user_pref("gfx.blacklist.webrender", 4);
|
user_pref("gfx.blacklist.webrender", 4);
|
||||||
user_pref("gfx.blacklist.webrender.compositor", 4);
|
user_pref("gfx.blacklist.webrender.compositor", 4);
|
||||||
user_pref("gfx.blacklist.webrender.compositor.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
user_pref(
|
||||||
user_pref("gfx.blacklist.webrender.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
"gfx.blacklist.webrender.compositor.failureid",
|
||||||
|
"FEATURE_FAILURE_GLXTEST_FAILED"
|
||||||
|
);
|
||||||
|
user_pref(
|
||||||
|
"gfx.blacklist.webrender.failureid",
|
||||||
|
"FEATURE_FAILURE_GLXTEST_FAILED"
|
||||||
|
);
|
||||||
user_pref("gfx.blacklist.webrtc.hw.acceleration.decode", 4);
|
user_pref("gfx.blacklist.webrtc.hw.acceleration.decode", 4);
|
||||||
user_pref("gfx.blacklist.webrtc.hw.acceleration.decode.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
user_pref(
|
||||||
|
"gfx.blacklist.webrtc.hw.acceleration.decode.failureid",
|
||||||
|
"FEATURE_FAILURE_GLXTEST_FAILED"
|
||||||
|
);
|
||||||
user_pref("gfx.blacklist.webrtc.hw.acceleration.encode", 4);
|
user_pref("gfx.blacklist.webrtc.hw.acceleration.encode", 4);
|
||||||
user_pref("gfx.blacklist.webrtc.hw.acceleration.encode.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
user_pref(
|
||||||
|
"gfx.blacklist.webrtc.hw.acceleration.encode.failureid",
|
||||||
|
"FEATURE_FAILURE_GLXTEST_FAILED"
|
||||||
|
);
|
||||||
user_pref("gfx.blacklist.webrtc.hw.acceleration.h264", 4);
|
user_pref("gfx.blacklist.webrtc.hw.acceleration.h264", 4);
|
||||||
user_pref("gfx.blacklist.webrtc.hw.acceleration.h264.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
user_pref(
|
||||||
|
"gfx.blacklist.webrtc.hw.acceleration.h264.failureid",
|
||||||
|
"FEATURE_FAILURE_GLXTEST_FAILED"
|
||||||
|
);
|
||||||
user_pref("gfx.blacklist.x11.egl", 4);
|
user_pref("gfx.blacklist.x11.egl", 4);
|
||||||
user_pref("gfx.blacklist.x11.egl.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
user_pref("gfx.blacklist.x11.egl.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
|
||||||
user_pref("layout.css.devPixelsPerPx", "1.5");
|
user_pref("layout.css.devPixelsPerPx", "1.5");
|
||||||
|
@ -164,46 +272,87 @@ user_pref("media.gmp.storage.version.observed", 1);
|
||||||
user_pref("network.trr.blocklist_cleanup_done", true);
|
user_pref("network.trr.blocklist_cleanup_done", true);
|
||||||
user_pref("pdfjs.enabledCache.state", true);
|
user_pref("pdfjs.enabledCache.state", true);
|
||||||
user_pref("pdfjs.migrationVersion", 2);
|
user_pref("pdfjs.migrationVersion", 2);
|
||||||
user_pref("privacy.sanitize.pending", "[{\"id\":\"newtab-container\",\"itemsToClear\":[],\"options\":{}}]");
|
user_pref(
|
||||||
|
"privacy.sanitize.pending",
|
||||||
|
'[{"id":"newtab-container","itemsToClear":[],"options":{}}]'
|
||||||
|
);
|
||||||
user_pref("security.remote_settings.crlite_filters.checked", 1645658314);
|
user_pref("security.remote_settings.crlite_filters.checked", 1645658314);
|
||||||
user_pref("security.remote_settings.intermediates.checked", 1645658312);
|
user_pref("security.remote_settings.intermediates.checked", 1645658312);
|
||||||
user_pref("security.sandbox.content.tempDirSuffix", "dec3527f-d132-41f0-85d7-9e54edae6dc1");
|
user_pref(
|
||||||
|
"security.sandbox.content.tempDirSuffix",
|
||||||
|
"dec3527f-d132-41f0-85d7-9e54edae6dc1"
|
||||||
|
);
|
||||||
user_pref("services.blocklist.addons-mlbf.checked", 1650804087);
|
user_pref("services.blocklist.addons-mlbf.checked", 1650804087);
|
||||||
user_pref("services.blocklist.gfx.checked", 1650804087);
|
user_pref("services.blocklist.gfx.checked", 1650804087);
|
||||||
user_pref("services.settings.clock_skew_seconds", 10);
|
user_pref("services.settings.clock_skew_seconds", 10);
|
||||||
user_pref("services.settings.last_etag", "\"1650790672872\"");
|
user_pref("services.settings.last_etag", '"1650790672872"');
|
||||||
user_pref("services.settings.last_update_seconds", 1650804087);
|
user_pref("services.settings.last_update_seconds", 1650804087);
|
||||||
user_pref("services.settings.main.anti-tracking-url-decoration.last_check", 1650804087);
|
user_pref(
|
||||||
|
"services.settings.main.anti-tracking-url-decoration.last_check",
|
||||||
|
1650804087
|
||||||
|
);
|
||||||
user_pref("services.settings.main.cfr.last_check", 1650804087);
|
user_pref("services.settings.main.cfr.last_check", 1650804087);
|
||||||
user_pref("services.settings.main.doh-config.last_check", 1650804087);
|
user_pref("services.settings.main.doh-config.last_check", 1650804087);
|
||||||
user_pref("services.settings.main.doh-providers.last_check", 1650804087);
|
user_pref("services.settings.main.doh-providers.last_check", 1650804087);
|
||||||
user_pref("services.settings.main.fxmonitor-breaches.last_check", 1650804087);
|
user_pref("services.settings.main.fxmonitor-breaches.last_check", 1650804087);
|
||||||
user_pref("services.settings.main.hijack-blocklists.last_check", 1650804087);
|
user_pref("services.settings.main.hijack-blocklists.last_check", 1650804087);
|
||||||
user_pref("services.settings.main.language-dictionaries.last_check", 1650804087);
|
user_pref(
|
||||||
|
"services.settings.main.language-dictionaries.last_check",
|
||||||
|
1650804087
|
||||||
|
);
|
||||||
user_pref("services.settings.main.message-groups.last_check", 1650804087);
|
user_pref("services.settings.main.message-groups.last_check", 1650804087);
|
||||||
user_pref("services.settings.main.nimbus-desktop-defaults.last_check", 1650804087);
|
user_pref(
|
||||||
user_pref("services.settings.main.nimbus-desktop-experiments.last_check", 1650804087);
|
"services.settings.main.nimbus-desktop-defaults.last_check",
|
||||||
user_pref("services.settings.main.normandy-recipes-capabilities.last_check", 1650804087);
|
1650804087
|
||||||
user_pref("services.settings.main.partitioning-exempt-urls.last_check", 1650804087);
|
);
|
||||||
|
user_pref(
|
||||||
|
"services.settings.main.nimbus-desktop-experiments.last_check",
|
||||||
|
1650804087
|
||||||
|
);
|
||||||
|
user_pref(
|
||||||
|
"services.settings.main.normandy-recipes-capabilities.last_check",
|
||||||
|
1650804087
|
||||||
|
);
|
||||||
|
user_pref(
|
||||||
|
"services.settings.main.partitioning-exempt-urls.last_check",
|
||||||
|
1650804087
|
||||||
|
);
|
||||||
user_pref("services.settings.main.password-recipes.last_check", 1650804087);
|
user_pref("services.settings.main.password-recipes.last_check", 1650804087);
|
||||||
user_pref("services.settings.main.password-rules.last_check", 1650804087);
|
user_pref("services.settings.main.password-rules.last_check", 1650804087);
|
||||||
user_pref("services.settings.main.pioneer-study-addons-v1.last_check", 1650804087);
|
user_pref(
|
||||||
|
"services.settings.main.pioneer-study-addons-v1.last_check",
|
||||||
|
1650804087
|
||||||
|
);
|
||||||
user_pref("services.settings.main.public-suffix-list.last_check", 1650804087);
|
user_pref("services.settings.main.public-suffix-list.last_check", 1650804087);
|
||||||
user_pref("services.settings.main.query-stripping.last_check", 1650804087);
|
user_pref("services.settings.main.query-stripping.last_check", 1650804087);
|
||||||
user_pref("services.settings.main.search-config.last_check", 1650804087);
|
user_pref("services.settings.main.search-config.last_check", 1650804087);
|
||||||
user_pref("services.settings.main.search-default-override-allowlist.last_check", 1650804087);
|
user_pref(
|
||||||
|
"services.settings.main.search-default-override-allowlist.last_check",
|
||||||
|
1650804087
|
||||||
|
);
|
||||||
user_pref("services.settings.main.search-telemetry-v2.last_check", 1650804087);
|
user_pref("services.settings.main.search-telemetry-v2.last_check", 1650804087);
|
||||||
user_pref("services.settings.main.search-telemetry.last_check", 1650804087);
|
user_pref("services.settings.main.search-telemetry.last_check", 1650804087);
|
||||||
user_pref("services.settings.main.sites-classification.last_check", 1650804087);
|
user_pref("services.settings.main.sites-classification.last_check", 1650804087);
|
||||||
user_pref("services.settings.main.tippytop.last_check", 1650804087);
|
user_pref("services.settings.main.tippytop.last_check", 1650804087);
|
||||||
user_pref("services.settings.main.top-sites.last_check", 1650804087);
|
user_pref("services.settings.main.top-sites.last_check", 1650804087);
|
||||||
user_pref("services.settings.main.url-classifier-skip-urls.last_check", 1650804087);
|
user_pref(
|
||||||
user_pref("services.settings.main.websites-with-shared-credential-backends.last_check", 1650804087);
|
"services.settings.main.url-classifier-skip-urls.last_check",
|
||||||
|
1650804087
|
||||||
|
);
|
||||||
|
user_pref(
|
||||||
|
"services.settings.main.websites-with-shared-credential-backends.last_check",
|
||||||
|
1650804087
|
||||||
|
);
|
||||||
user_pref("services.settings.main.whats-new-panel.last_check", 1650804087);
|
user_pref("services.settings.main.whats-new-panel.last_check", 1650804087);
|
||||||
user_pref("services.settings.security.onecrl.checked", 1645658314);
|
user_pref("services.settings.security.onecrl.checked", 1645658314);
|
||||||
user_pref("toolkit.startup.last_success", 1650806889);
|
user_pref("toolkit.startup.last_success", 1650806889);
|
||||||
user_pref("toolkit.telemetry.cachedClientID", "72bc874e-855a-400e-a06d-a0d1eab9b435");
|
user_pref(
|
||||||
|
"toolkit.telemetry.cachedClientID",
|
||||||
|
"72bc874e-855a-400e-a06d-a0d1eab9b435"
|
||||||
|
);
|
||||||
user_pref("toolkit.telemetry.pioneer-new-studies-available", true);
|
user_pref("toolkit.telemetry.pioneer-new-studies-available", true);
|
||||||
user_pref("toolkit.telemetry.previousBuildID", "20211102211617");
|
user_pref("toolkit.telemetry.previousBuildID", "20211102211617");
|
||||||
user_pref("toolkit.telemetry.reportingpolicy.firstRun", false);
|
user_pref("toolkit.telemetry.reportingpolicy.firstRun", false);
|
||||||
user_pref("trailhead.firstrun.didSeeAboutWelcome", true);
|
user_pref("trailhead.firstrun.didSeeAboutWelcome", true);
|
||||||
|
user_pref("browser.disableResetPrompt", true);
|
||||||
|
user_pref("devtools.selfxss.count", 100);
|
||||||
|
|
|
@ -27,13 +27,25 @@ fi
|
||||||
|
|
||||||
ORIGIN_DOMAIN=$(sed -e 's/[^/]*\/\/\([^@]*@\)\?\([^:/]*\).*/\2/' <<< "$URL")
|
ORIGIN_DOMAIN=$(sed -e 's/[^/]*\/\/\([^@]*@\)\?\([^:/]*\).*/\2/' <<< "$URL")
|
||||||
|
|
||||||
|
echo "DOMAINS ARE $DOMAINS"
|
||||||
|
|
||||||
|
while IFS= read -r DOMAIN; do
|
||||||
|
load_website "$DOMAIN"
|
||||||
|
open_console
|
||||||
|
grab "$DOMAIN before"
|
||||||
|
(tr '\n' ' ' < click-accept-all.js) | xclip -sel clip
|
||||||
|
keycombo Control_L v
|
||||||
|
sleep 0.3
|
||||||
|
xdotool key Return
|
||||||
|
sleep 0.5
|
||||||
|
grab "$DOMAIN after"
|
||||||
|
done <<< "$DOMAINS"
|
||||||
|
|
||||||
load_website "$URL"
|
load_website "$URL"
|
||||||
grab load_website
|
grab load_website
|
||||||
open_network_inspector
|
open_network_inspector
|
||||||
grab open_network_inspector
|
grab open_network_inspector
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
declare -a pids;
|
declare -a pids;
|
||||||
pids=()
|
pids=()
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ grab(){
|
||||||
NOTE="$grab_no $@"
|
NOTE="$grab_no $@"
|
||||||
#echo $@
|
#echo $@
|
||||||
((grab_no++))
|
((grab_no++))
|
||||||
# scrot --note "-f '/usr/share/fonts/noto/NotoSansMono-Medium.ttf/40' -c 255,0,0,255 -t '$NOTE'" "/opt/static/$(date -Iminutes).png"
|
#scrot --note "-f '/usr/share/fonts/noto/NotoSansMono-Medium.ttf/40' -c 255,0,0,255 -t '$NOTE'" "/opt/static/$(date -Iminutes).png"
|
||||||
#echo "not grabbing"
|
#echo "not grabbing"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -152,15 +152,15 @@ wait_for_website_to_load(){
|
||||||
}
|
}
|
||||||
|
|
||||||
load_website(){
|
load_website(){
|
||||||
URL=$1
|
WEBSITE_URL=$1
|
||||||
keycombo Control_L l
|
keycombo Control_L l
|
||||||
grab ctrl+l
|
grab ctrl+l
|
||||||
xdotool type "$URL"
|
xdotool type "$WEBSITE_URL"
|
||||||
grab type url
|
grab type url
|
||||||
xdotool key Return
|
xdotool key Return
|
||||||
grab enter
|
grab enter
|
||||||
sleep 1
|
sleep 1
|
||||||
echo "{\"current_action\": \"waiting for $URL to load...\"}"
|
echo "{\"current_action\": \"waiting for $WEBSITE_URL to load...\"}"
|
||||||
wait_for_website_to_load
|
wait_for_website_to_load
|
||||||
sleep 0.3
|
sleep 0.3
|
||||||
wait_for_website_to_load
|
wait_for_website_to_load
|
||||||
|
@ -172,8 +172,16 @@ load_website(){
|
||||||
|
|
||||||
open_network_inspector(){
|
open_network_inspector(){
|
||||||
keycombo Shift_L F5 #profiler
|
keycombo Shift_L F5 #profiler
|
||||||
wait_for_pixel_color 1777 152 0a84ff 3
|
sleep 0.1
|
||||||
keycombo Control_L Shift_L e
|
keycombo Control_L Shift_L e
|
||||||
|
wait_for_pixel_color 1777 152 0a84ff 3
|
||||||
|
}
|
||||||
|
|
||||||
|
open_console(){
|
||||||
|
keycombo Shift_L F5 #profiler
|
||||||
|
sleep 0.1
|
||||||
|
keycombo Control_L Shift_L k
|
||||||
|
wait_for_pixel_color 1510 152 0a84ff 3
|
||||||
}
|
}
|
||||||
|
|
||||||
network_inspector_search(){
|
network_inspector_search(){
|
||||||
|
|
1
package-lock.json
generated
1
package-lock.json
generated
|
@ -5,7 +5,6 @@
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "screenshot-service",
|
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user