Working Docker setup

This commit is contained in:
Kuba Orlik 2022-02-24 00:24:13 +01:00
parent ffe1fd2b74
commit f6f2d713db
80 changed files with 557 additions and 39 deletions

7
Dockerfile Normal file
View File

@ -0,0 +1,7 @@
FROM alpine:3.15
RUN apk add firefox xvfb scrot vips-tools xterm xdotool fluxbox xprop imagemagick bash tesseract-ocr
RUN apk add terminus-font ttf-inconsolata ttf-dejavu font-noto font-noto ttf-font-awesome font-noto-extra
WORKDIR /opt

View File

@ -6,6 +6,14 @@
- `fluxbox` - `fluxbox`
- `firefox-beta` - `firefox-beta`
## Building
```sh
docker image build -t headless-fox .
```
## Running ## Running
`./script3.sh` ```
docker run -ti -v $PWD:/opt -v $PWD/mozilla:/root/.mozilla/ headless-fox ./script3.sh
```

View File

@ -6,7 +6,8 @@
# process. When that process exits, the X server will be killed. # process. When that process exits, the X server will be killed.
# #
XSERVER="Xvfb -screen 0 1920x1080x24" XSERVER="Xvfb -dpi 600 -screen 0 2880x1620x24" # 1080p * 1.5 for tesseract readability. Assuming x1.5 scale set up in Firefox
WINMGR=fluxbox WINMGR=fluxbox
prog=$0 prog=$0

View File

@ -0,0 +1 @@
https:www.google.com:443:.:^firstPartyDomain=google-b-d.search.suggestions.mozilla:3 0 19046 https:www.google.com:443:www.google.com:443::n:1648247296:h3:y:1645655291:n:^firstPartyDomain=google-b-d.search.suggestions.mozilla:|n:y:

View File

@ -0,0 +1,161 @@
// Mozilla User Preferences
// DO NOT EDIT THIS FILE.
//
// If you make changes to this file while the application is running,
// the changes will be overwritten when the application exits.
//
// To change a preference value, you can either:
// - modify it via the UI (e.g. via about:config in the browser); or
// - set it within a user.js file in your profile.
user_pref("accessibility.typeaheadfind.flashBar", 0);
user_pref("app.normandy.first_run", false);
user_pref("app.normandy.migrationsApplied", 12);
user_pref("app.normandy.startupRolloutPrefs.media.peerconnection.mtransport_process", true);
user_pref("app.normandy.startupRolloutPrefs.network.process.enabled", true);
user_pref("app.normandy.user_id", "68c45dbc-3d36-4100-b9d6-051405e1970d");
user_pref("app.update.lastUpdateTime.browser-cleanup-thumbnails", 0);
user_pref("app.update.lastUpdateTime.recipe-client-addon-run", 1645655418);
user_pref("app.update.lastUpdateTime.region-update-timer", 0);
user_pref("app.update.lastUpdateTime.rs-experiment-loader-timer", 1645657452);
user_pref("app.update.lastUpdateTime.xpi-signature-verification", 0);
user_pref("browser.aboutConfig.showWarning", false);
user_pref("browser.bookmarks.addedImportButton", true);
user_pref("browser.bookmarks.restore_default_bookmarks", false);
user_pref("browser.contentblocking.category", "standard");
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.svg", true);
user_pref("browser.download.viewableInternally.typeWasRegistered.webp", true);
user_pref("browser.download.viewableInternally.typeWasRegistered.xml", true);
user_pref("browser.laterrun.bookkeeping.profileCreationTime", 1645654827);
user_pref("browser.laterrun.bookkeeping.sessionCount", 21);
user_pref("browser.laterrun.enabled", true);
user_pref("browser.migration.version", 122);
user_pref("browser.newtabpage.activity-stream.impressionId", "{cfe7beb2-e88b-450f-b3f8-e5b739d007bb}");
user_pref("browser.newtabpage.storageVersion", 1);
user_pref("browser.pageActions.persistedActions", "{\"ids\":[\"bookmark\"],\"idsInUrlbar\":[\"bookmark\"],\"idsInUrlbarPreProton\":[],\"version\":1}");
user_pref("browser.pagethumbnails.storage_version", 3);
user_pref("browser.proton.toolbar.version", 3);
user_pref("browser.region.update.updated", 1645654829);
user_pref("browser.rights.3.shown", true);
user_pref("browser.safebrowsing.provider.mozilla.lastupdatetime", "1645654836497");
user_pref("browser.safebrowsing.provider.mozilla.nextupdatetime", "1645676436497");
user_pref("browser.search.region", "PL");
user_pref("browser.sessionstore.upgradeBackup.latestBuildID", "20211102211617");
user_pref("browser.startup.couldRestoreSession.count", 2);
user_pref("browser.startup.homepage_override.buildID", "20211102211617");
user_pref("browser.startup.homepage_override.mstone", "94.0");
user_pref("browser.startup.lastColdStartupCheck", 1645657452);
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.urlbar.placeholderName", "Google");
user_pref("browser.urlbar.quicksuggest.migrationVersion", 2);
user_pref("datareporting.policy.dataSubmissionPolicyAcceptedVersion", 2);
user_pref("datareporting.policy.dataSubmissionPolicyNotifiedTime", "1645654828835");
user_pref("devtools.everOpened", true);
user_pref("devtools.netmonitor.columnsData", "[{\"name\":\"status\",\"minWidth\":30,\"width\":6.67},{\"name\":\"method\",\"minWidth\":30,\"width\":6.67},{\"name\":\"domain\",\"minWidth\":30,\"width\":13.32},{\"name\":\"file\",\"minWidth\":30,\"width\":33.35},{\"name\":\"url\",\"minWidth\":30,\"width\":25},{\"name\":\"initiator\",\"minWidth\":30,\"width\":13.33},{\"name\":\"type\",\"minWidth\":30,\"width\":6.67},{\"name\":\"transferred\",\"minWidth\":30,\"width\":13.33},{\"name\":\"contentSize\",\"minWidth\":30,\"width\":6.67},{\"name\":\"waterfall\",\"minWidth\":150,\"width\":10.01}]");
user_pref("devtools.netmonitor.msg.visibleColumns", "[\"data\",\"time\"]");
user_pref("devtools.selfxss.count", 1);
user_pref("devtools.toolbox.host", "right");
user_pref("devtools.toolbox.previousHost", "bottom");
user_pref("devtools.toolbox.selectedTool", "netmonitor");
user_pref("devtools.toolbox.sidebar.width", 1089);
user_pref("distribution.archlinux.bookmarksProcessed", true);
user_pref("distribution.iniFile.exists.appversion", "94.0");
user_pref("distribution.iniFile.exists.value", false);
user_pref("doh-rollout.balrog-migration-done", true);
user_pref("doh-rollout.doneFirstRun", true);
user_pref("doh-rollout.home-region", "PL");
user_pref("dom.push.userAgentID", "3f90029e18d048cf9dac5c6cc12cb8f6");
user_pref("extensions.activeThemeID", "default-theme@mozilla.org");
user_pref("extensions.blocklist.pingCountVersion", -1);
user_pref("extensions.databaseSchema", 33);
user_pref("extensions.getAddons.databaseSchema", 6);
user_pref("extensions.incognito.migrated", true);
user_pref("extensions.lastAppBuildId", "20211102211617");
user_pref("extensions.lastAppVersion", "94.0");
user_pref("extensions.lastPlatformVersion", "94.0");
user_pref("extensions.pendingOperations", false);
user_pref("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.perform_injections", true);
user_pref("extensions.webcompat.perform_ua_overrides", true);
user_pref("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-qualified", 1645654828);
user_pref("fission.experiment.max-origins.qualified", true);
user_pref("gfx.blacklist.canvas2d.acceleration", 4);
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.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.direct2d", 4);
user_pref("gfx.blacklist.direct2d.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.direct3d11angle", 4);
user_pref("gfx.blacklist.direct3d11angle.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.dmabuf", 4);
user_pref("gfx.blacklist.dmabuf.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.dx.interop2", 4);
user_pref("gfx.blacklist.dx.interop2.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.dx.nv12", 4);
user_pref("gfx.blacklist.dx.nv12.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.dx.p010", 4);
user_pref("gfx.blacklist.dx.p010.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.dx.p016", 4);
user_pref("gfx.blacklist.dx.p016.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.gl.swizzle", 4);
user_pref("gfx.blacklist.gl.swizzle.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.gpu.process", 4);
user_pref("gfx.blacklist.gpu.process.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.hardwarevideodecoding", 4);
user_pref("gfx.blacklist.hardwarevideodecoding.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.layers.direct3d10", 4);
user_pref("gfx.blacklist.layers.direct3d10-1", 4);
user_pref("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.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.layers.direct3d9", 4);
user_pref("gfx.blacklist.layers.direct3d9.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.layers.opengl", 4);
user_pref("gfx.blacklist.layers.opengl.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.stagefright", 4);
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.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.webgl.angle", 4);
user_pref("gfx.blacklist.webgl.angle.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.webgl.msaa", 4);
user_pref("gfx.blacklist.webgl.msaa.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.webgl.opengl", 4);
user_pref("gfx.blacklist.webgl.opengl.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.webgl2", 4);
user_pref("gfx.blacklist.webgl2.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.webrender", 4);
user_pref("gfx.blacklist.webrender.compositor", 4);
user_pref("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.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
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.h264", 4);
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.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("media.gmp.storage.version.observed", 1);
user_pref("network.trr.blocklist_cleanup_done", true);
user_pref("pdfjs.enabledCache.state", true);
user_pref("pdfjs.migrationVersion", 2);
user_pref("privacy.sanitize.pending", "[{\"id\":\"newtab-container\",\"itemsToClear\":[],\"options\":{}}]");
user_pref("security.sandbox.content.tempDirSuffix", "dec3527f-d132-41f0-85d7-9e54edae6dc1");
user_pref("toolkit.startup.last_success", 1645655291);
user_pref("toolkit.startup.recent_crashes", 20);
user_pref("toolkit.telemetry.cachedClientID", "72bc874e-855a-400e-a06d-a0d1eab9b435");
user_pref("toolkit.telemetry.previousBuildID", "20211102211617");
user_pref("toolkit.telemetry.reportingpolicy.firstRun", false);
user_pref("trailhead.firstrun.didSeeAboutWelcome", true);
user_pref("layout.css.devPixelsPerPx", 1.5);

View File

@ -0,0 +1,9 @@
classify-client.services.mozilla.com:HSTS 0 19046 1677190829523,1,0,2
www.google.com^firstPartyDomain=google-b-d.search.suggestions.mozilla:HSTS 0 19046 1677191296893,1,0,2
firefox.settings.services.mozilla.com:HSTS 0 19046 1677191291842,1,0,2
incoming.telemetry.mozilla.org:HSTS 0 19046 1677191297995,1,0,2
contile.services.mozilla.com:HSTS 0 19046 1677191291926,1,0,2
shavar.services.mozilla.com^firstPartyDomain=safebrowsing.86868755-6b82-4842-b301-72671a0db32e.mozilla:HSTS 0 19046 1677190829250,1,1,2
www.mozilla.org^partitionKey=%28http%2Cmozilla.org%29:HSTS 0 19046 1661379628420,1,1,2
normandy.cdn.mozilla.net:HSTS 0 19046 1677190828867,1,0,2
location.services.mozilla.com:HSTS 0 19046 1677190829036,1,1,2

View File

@ -0,0 +1 @@
14

Binary file not shown.

View File

@ -0,0 +1 @@
{"schema":6,"addons":[]}

View File

@ -0,0 +1 @@
{"version":1,"listeners":{"remote-settings/monitor_changes":{"version":"\"1645649840527\"","sourceInfo":{"moduleURI":"resource://services-settings/remote-settings.js","symbolName":"remoteSettingsBroadcastHandler"}}}}

Binary file not shown.

View File

@ -0,0 +1,5 @@
[Compatibility]
LastVersion=94.0_20211102211617/20211102211617
LastOSABI=Linux_x86_64-gcc3
LastPlatformDir=/usr/lib/firefox
LastAppDir=/usr/lib/firefox/browser

View File

@ -0,0 +1 @@
{"version":4,"lastUserContextId":5,"identities":[{"userContextId":1,"public":true,"icon":"fingerprint","color":"blue","l10nID":"userContextPersonal.label","accessKey":"userContextPersonal.accesskey","telemetryId":1},{"userContextId":2,"public":true,"icon":"briefcase","color":"orange","l10nID":"userContextWork.label","accessKey":"userContextWork.accesskey","telemetryId":2},{"userContextId":3,"public":true,"icon":"dollar","color":"green","l10nID":"userContextBanking.label","accessKey":"userContextBanking.accesskey","telemetryId":3},{"userContextId":4,"public":true,"icon":"cart","color":"pink","l10nID":"userContextShopping.label","accessKey":"userContextShopping.accesskey","telemetryId":4},{"userContextId":5,"public":false,"icon":"","color":"","name":"userContextIdInternal.thumbnail","accessKey":""},{"userContextId":4294967295,"public":false,"icon":"","color":"","name":"userContextIdInternal.webextStorageLocal","accessKey":""}]}

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
{"sessionId":"190c6482-51a9-4cc4-9f85-4df293e461f8","subsessionId":"f8b419c5-49c0-448b-8861-81d7e5461e1d","profileSubsessionCounter":4,"newProfilePingSent":true}

View File

@ -0,0 +1 @@
{"clientID":"72bc874e-855a-400e-a06d-a0d1eab9b435"}

View File

@ -0,0 +1 @@
{"doh-rollout@mozilla.org":{"permissions":["internal:svgContextPropertiesAllowed","internal:privateBrowsingAllowed"],"origins":[]},"formautofill@mozilla.org":{"permissions":["internal:svgContextPropertiesAllowed","internal:privateBrowsingAllowed"],"origins":[]},"pictureinpicture@mozilla.org":{"permissions":["internal:svgContextPropertiesAllowed","internal:privateBrowsingAllowed"],"origins":[]},"webcompat@mozilla.org":{"permissions":["internal:svgContextPropertiesAllowed","internal:privateBrowsingAllowed"],"origins":[]},"screenshots@mozilla.org":{"permissions":["internal:svgContextPropertiesAllowed","internal:privateBrowsingAllowed"],"origins":[]},"default-theme@mozilla.org":{"permissions":["internal:svgContextPropertiesAllowed","internal:privateBrowsingAllowed"],"origins":[]},"addons-search-detection@mozilla.com":{"permissions":["internal:svgContextPropertiesAllowed"],"origins":[]},"google@search.mozilla.org":{"permissions":["internal:svgContextPropertiesAllowed","internal:privateBrowsingAllowed"],"origins":[]},"amazondotcom@search.mozilla.org":{"permissions":["internal:svgContextPropertiesAllowed","internal:privateBrowsingAllowed"],"origins":[]},"wikipedia@search.mozilla.org":{"permissions":["internal:svgContextPropertiesAllowed","internal:privateBrowsingAllowed"],"origins":[]},"bing@search.mozilla.org":{"permissions":["internal:svgContextPropertiesAllowed","internal:privateBrowsingAllowed"],"origins":[]},"ddg@search.mozilla.org":{"permissions":["internal:svgContextPropertiesAllowed","internal:privateBrowsingAllowed"],"origins":[]},"webcompat-reporter@mozilla.org":{"permissions":["internal:privateBrowsingAllowed"],"origins":[]},"proxy-failover@mozilla.com":{"permissions":["internal:privateBrowsingAllowed","internal:svgContextPropertiesAllowed"],"origins":[]},"foto-soft-colorway@mozilla.org":{"permissions":["internal:privateBrowsingAllowed"],"origins":[]}}

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,4 @@
Name: gmpopenh264
Description: GMP Plugin for OpenH264.
Version: 1.8.1
APIs: encode-video[h264], decode-video[h264]

View File

@ -0,0 +1 @@
{"defaultHandlersVersion":{"en-US":4},"mimeTypes":{"application/pdf":{"action":3,"extensions":["pdf"]},"text/xml":{"action":3,"extensions":["xml"]},"image/svg+xml":{"action":3,"extensions":["svg"]},"image/webp":{"action":3,"extensions":["webp"]},"image/avif":{"action":3,"extensions":["avif"]}},"schemes":{"irc":{"stubEntry":true,"handlers":[null,{"name":"Mibbit","uriTemplate":"https://www.mibbit.com/?url=%s"}]},"ircs":{"stubEntry":true,"handlers":[null,{"name":"Mibbit","uriTemplate":"https://www.mibbit.com/?url=%s"}]},"mailto":{"stubEntry":true,"handlers":[null,{"name":"Yahoo! Mail","uriTemplate":"https://compose.mail.yahoo.com/?To=%s"},{"name":"Gmail","uriTemplate":"https://mail.google.com/mail/?extsrc=mailto&url=%s"}]}},"isDownloadsImprovementsAlreadyMigrated":false}

Binary file not shown.

View File

@ -0,0 +1 @@
172.17.0.2:+32

Binary file not shown.

View File

@ -0,0 +1,5 @@
library=
name=NSS Internal PKCS #11 Module
parameters=configdir='sql:/home/kuba/.mozilla/firefox/bifup8k5.docker' certPrefix='' keyPrefix='' secmod='secmod.db' flags=optimizeSpace updatedir='' updateCertPrefix='' updateKeyPrefix='' updateid='' updateTokenDescription=''
NSS=Flags=internal,critical trustOrder=75 cipherOrder=100 slotParams=(1={slotFlags=[ECC,RSA,DSA,DH,RC2,RC4,DES,RANDOM,SHA1,MD5,MD2,SSL,TLS,AES,Camellia,SEED,SHA256,SHA512] askpw=any timeout=30})

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,207 @@
// Mozilla User Preferences
// DO NOT EDIT THIS FILE.
//
// If you make changes to this file while the application is running,
// the changes will be overwritten when the application exits.
//
// To change a preference value, you can either:
// - modify it via the UI (e.g. via about:config in the browser); or
// - set it within a user.js file in your profile.
user_pref("accessibility.typeaheadfind.flashBar", 0);
user_pref("app.normandy.first_run", false);
user_pref("app.normandy.migrationsApplied", 12);
user_pref("app.normandy.startupRolloutPrefs.media.peerconnection.mtransport_process", true);
user_pref("app.normandy.startupRolloutPrefs.network.process.enabled", true);
user_pref("app.normandy.user_id", "68c45dbc-3d36-4100-b9d6-051405e1970d");
user_pref("app.update.lastUpdateTime.addon-background-update-timer", 1645658396);
user_pref("app.update.lastUpdateTime.browser-cleanup-thumbnails", 1645657846);
user_pref("app.update.lastUpdateTime.recipe-client-addon-run", 1645655418);
user_pref("app.update.lastUpdateTime.region-update-timer", 0);
user_pref("app.update.lastUpdateTime.rs-experiment-loader-timer", 1645658529);
user_pref("app.update.lastUpdateTime.search-engine-update-timer", 1645657966);
user_pref("app.update.lastUpdateTime.services-settings-poll-changes", 1645658314);
user_pref("app.update.lastUpdateTime.telemetry_modules_ping", 1645657876);
user_pref("app.update.lastUpdateTime.xpi-signature-verification", 0);
user_pref("browser.aboutConfig.showWarning", false);
user_pref("browser.bookmarks.addedImportButton", true);
user_pref("browser.bookmarks.restore_default_bookmarks", false);
user_pref("browser.contentblocking.category", "standard");
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.svg", true);
user_pref("browser.download.viewableInternally.typeWasRegistered.webp", true);
user_pref("browser.download.viewableInternally.typeWasRegistered.xml", true);
user_pref("browser.laterrun.bookkeeping.profileCreationTime", 1645654827);
user_pref("browser.laterrun.bookkeeping.sessionCount", 30);
user_pref("browser.laterrun.enabled", true);
user_pref("browser.migration.version", 122);
user_pref("browser.newtabpage.activity-stream.impressionId", "{cfe7beb2-e88b-450f-b3f8-e5b739d007bb}");
user_pref("browser.newtabpage.storageVersion", 1);
user_pref("browser.pageActions.persistedActions", "{\"ids\":[\"bookmark\"],\"idsInUrlbar\":[\"bookmark\"],\"idsInUrlbarPreProton\":[],\"version\":1}");
user_pref("browser.pagethumbnails.storage_version", 3);
user_pref("browser.proton.toolbar.version", 3);
user_pref("browser.region.update.updated", 1645654829);
user_pref("browser.rights.3.shown", true);
user_pref("browser.safebrowsing.provider.mozilla.lastupdatetime", "1645654836497");
user_pref("browser.safebrowsing.provider.mozilla.nextupdatetime", "1645676436497");
user_pref("browser.search.region", "PL");
user_pref("browser.sessionstore.upgradeBackup.latestBuildID", "20211102211617");
user_pref("browser.startup.couldRestoreSession.count", 2);
user_pref("browser.startup.homepage_override.buildID", "20211102211617");
user_pref("browser.startup.homepage_override.mstone", "94.0");
user_pref("browser.startup.lastColdStartupCheck", 1645658530);
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.urlbar.placeholderName", "Google");
user_pref("browser.urlbar.quicksuggest.migrationVersion", 2);
user_pref("datareporting.policy.dataSubmissionPolicyAcceptedVersion", 2);
user_pref("datareporting.policy.dataSubmissionPolicyNotifiedTime", "1645654828835");
user_pref("devtools.everOpened", true);
user_pref("devtools.netmonitor.columnsData", "[{\"name\":\"status\",\"minWidth\":30,\"width\":6.67},{\"name\":\"method\",\"minWidth\":30,\"width\":6.65},{\"name\":\"domain\",\"minWidth\":30,\"width\":13.32},{\"name\":\"file\",\"minWidth\":30,\"width\":33.37},{\"name\":\"url\",\"minWidth\":30,\"width\":25},{\"name\":\"initiator\",\"minWidth\":30,\"width\":13.33},{\"name\":\"type\",\"minWidth\":30,\"width\":6.65},{\"name\":\"transferred\",\"minWidth\":30,\"width\":13.33},{\"name\":\"contentSize\",\"minWidth\":30,\"width\":6.67},{\"name\":\"waterfall\",\"minWidth\":150,\"width\":6.68}]");
user_pref("devtools.netmonitor.msg.visibleColumns", "[\"data\",\"time\"]");
user_pref("devtools.selfxss.count", 1);
user_pref("devtools.toolbox.host", "right");
user_pref("devtools.toolbox.previousHost", "bottom");
user_pref("devtools.toolbox.selectedTool", "netmonitor");
user_pref("devtools.toolbox.sidebar.width", 1089);
user_pref("distribution.archlinux.bookmarksProcessed", true);
user_pref("distribution.iniFile.exists.appversion", "94.0");
user_pref("distribution.iniFile.exists.value", false);
user_pref("doh-rollout.balrog-migration-done", true);
user_pref("doh-rollout.doneFirstRun", true);
user_pref("doh-rollout.home-region", "PL");
user_pref("dom.push.userAgentID", "7d274ec1fa454758914303e009c2209b");
user_pref("extensions.activeThemeID", "default-theme@mozilla.org");
user_pref("extensions.blocklist.pingCountVersion", -1);
user_pref("extensions.databaseSchema", 33);
user_pref("extensions.getAddons.cache.lastUpdate", 1645658397);
user_pref("extensions.getAddons.databaseSchema", 6);
user_pref("extensions.incognito.migrated", true);
user_pref("extensions.lastAppBuildId", "20211102211617");
user_pref("extensions.lastAppVersion", "94.0");
user_pref("extensions.lastPlatformVersion", "94.0");
user_pref("extensions.pendingOperations", false);
user_pref("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.perform_injections", true);
user_pref("extensions.webcompat.perform_ua_overrides", true);
user_pref("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-qualified", 1645654828);
user_pref("fission.experiment.max-origins.qualified", true);
user_pref("gfx.blacklist.canvas2d.acceleration", 4);
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.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.direct2d", 4);
user_pref("gfx.blacklist.direct2d.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.direct3d11angle", 4);
user_pref("gfx.blacklist.direct3d11angle.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.dmabuf", 4);
user_pref("gfx.blacklist.dmabuf.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.dx.interop2", 4);
user_pref("gfx.blacklist.dx.interop2.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.dx.nv12", 4);
user_pref("gfx.blacklist.dx.nv12.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.dx.p010", 4);
user_pref("gfx.blacklist.dx.p010.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.dx.p016", 4);
user_pref("gfx.blacklist.dx.p016.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.gl.swizzle", 4);
user_pref("gfx.blacklist.gl.swizzle.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.gpu.process", 4);
user_pref("gfx.blacklist.gpu.process.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.hardwarevideodecoding", 4);
user_pref("gfx.blacklist.hardwarevideodecoding.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.layers.direct3d10", 4);
user_pref("gfx.blacklist.layers.direct3d10-1", 4);
user_pref("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.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.layers.direct3d9", 4);
user_pref("gfx.blacklist.layers.direct3d9.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.layers.opengl", 4);
user_pref("gfx.blacklist.layers.opengl.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.stagefright", 4);
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.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.webgl.angle", 4);
user_pref("gfx.blacklist.webgl.angle.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.webgl.msaa", 4);
user_pref("gfx.blacklist.webgl.msaa.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.webgl.opengl", 4);
user_pref("gfx.blacklist.webgl.opengl.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.webgl2", 4);
user_pref("gfx.blacklist.webgl2.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("gfx.blacklist.webrender", 4);
user_pref("gfx.blacklist.webrender.compositor", 4);
user_pref("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.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
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.h264", 4);
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.failureid", "FEATURE_FAILURE_GLXTEST_FAILED");
user_pref("layout.css.devPixelsPerPx", "1.5");
user_pref("media.gmp-gmpopenh264.abi", "x86_64-gcc3");
user_pref("media.gmp-gmpopenh264.lastUpdate", 1645658313);
user_pref("media.gmp-gmpopenh264.version", "1.8.1.1");
user_pref("media.gmp-manager.buildID", "20211102211617");
user_pref("media.gmp-manager.lastCheck", 1645658312);
user_pref("media.gmp.storage.version.observed", 1);
user_pref("network.trr.blocklist_cleanup_done", true);
user_pref("pdfjs.enabledCache.state", true);
user_pref("pdfjs.migrationVersion", 2);
user_pref("privacy.sanitize.pending", "[{\"id\":\"newtab-container\",\"itemsToClear\":[],\"options\":{}}]");
user_pref("security.remote_settings.crlite_filters.checked", 1645658314);
user_pref("security.remote_settings.intermediates.checked", 1645658312);
user_pref("security.sandbox.content.tempDirSuffix", "dec3527f-d132-41f0-85d7-9e54edae6dc1");
user_pref("services.blocklist.addons-mlbf.checked", 1645658314);
user_pref("services.blocklist.gfx.checked", 1645658314);
user_pref("services.settings.clock_skew_seconds", -1);
user_pref("services.settings.last_etag", "\"1645649840527\"");
user_pref("services.settings.last_update_seconds", 1645658314);
user_pref("services.settings.main.anti-tracking-url-decoration.last_check", 1645658314);
user_pref("services.settings.main.cfr.last_check", 1645658314);
user_pref("services.settings.main.doh-config.last_check", 1645658314);
user_pref("services.settings.main.doh-providers.last_check", 1645658314);
user_pref("services.settings.main.fxmonitor-breaches.last_check", 1645658314);
user_pref("services.settings.main.hijack-blocklists.last_check", 1645658314);
user_pref("services.settings.main.language-dictionaries.last_check", 1645658314);
user_pref("services.settings.main.message-groups.last_check", 1645658314);
user_pref("services.settings.main.nimbus-desktop-defaults.last_check", 1645658314);
user_pref("services.settings.main.nimbus-desktop-experiments.last_check", 1645658314);
user_pref("services.settings.main.normandy-recipes-capabilities.last_check", 1645658314);
user_pref("services.settings.main.partitioning-exempt-urls.last_check", 1645658314);
user_pref("services.settings.main.password-recipes.last_check", 1645658314);
user_pref("services.settings.main.password-rules.last_check", 1645658314);
user_pref("services.settings.main.pioneer-study-addons-v1.last_check", 1645658314);
user_pref("services.settings.main.public-suffix-list.last_check", 1645658314);
user_pref("services.settings.main.query-stripping.last_check", 1645658314);
user_pref("services.settings.main.search-config.last_check", 1645658314);
user_pref("services.settings.main.search-default-override-allowlist.last_check", 1645658314);
user_pref("services.settings.main.search-telemetry-v2.last_check", 1645658314);
user_pref("services.settings.main.search-telemetry.last_check", 1645658314);
user_pref("services.settings.main.sites-classification.last_check", 1645658314);
user_pref("services.settings.main.tippytop.last_check", 1645658314);
user_pref("services.settings.main.top-sites.last_check", 1645658314);
user_pref("services.settings.main.url-classifier-skip-urls.last_check", 1645658314);
user_pref("services.settings.main.websites-with-shared-credential-backends.last_check", 1645658314);
user_pref("services.settings.main.whats-new-panel.last_check", 1645658314);
user_pref("services.settings.security.onecrl.checked", 1645658314);
user_pref("toolkit.startup.last_success", 1645658366);
user_pref("toolkit.startup.recent_crashes", 1);
user_pref("toolkit.telemetry.cachedClientID", "72bc874e-855a-400e-a06d-a0d1eab9b435");
user_pref("toolkit.telemetry.pioneer-new-studies-available", true);
user_pref("toolkit.telemetry.previousBuildID", "20211102211617");
user_pref("toolkit.telemetry.reportingpolicy.firstRun", false);
user_pref("trailhead.firstrun.didSeeAboutWelcome", true);

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -0,0 +1 @@
{"profile-after-change":true,"final-ui-startup":true,"sessionstore-windows-restored":true}

View File

@ -0,0 +1 @@
{"experiments":{}}

Binary file not shown.

View File

@ -0,0 +1 @@
{"created":1645654821802,"firstUse":1645654827912}

Binary file not shown.

View File

@ -0,0 +1 @@
{"chrome://browser/content/browser.xhtml":{"main-window":{"screenX":"100","screenY":"132","width":"1280","height":"943","sizemode":"maximized"}}}

View File

@ -0,0 +1,4 @@
[4F96D1932A9F858E]
Default=bifup8k5.docker
Locked=1

View File

@ -0,0 +1,8 @@
[Install4F96D1932A9F858E]
Default=bifup8k5.docker
Locked=1
[Profile0]
Name=docker
IsRelative=1
Path=bifup8k5.docker

View File

@ -1,64 +1,146 @@
#!/bin/sh #!/bin/bash
source ./ephemeral-x.sh source ./ephemeral-x.sh
firefox-beta --devtools -P xorg --setDefaultBrowser & get_pixel_color(){
x=$1;
y=$2;
output_path="/tmp/$(mktemp -u XXXXXX).png"
scrot $output_path
magick $output_path -format "%[hex:p{$x,$y}]" info:
}
extract_text(){
output_path="/tmp/$(mktemp -u XXXXXX).png"
cropped_path=$output_path--cropped.png
scrot $output_path
left=$1
top=$2
width=$3
height=$4
# https://www.libvips.org/API/current/libvips-conversion.html#vips-extract-area
vips extract_area "$output_path" "$cropped_path" $left $top $width $height
tesseract "$cropped_path" stdout -l eng
}
click (){
xdotool mousemove $1 $2
xdotool click 1
}
grab (){
NOTE="$@"
echo $@
scrot --note "-f '/usr/share/fonts/noto/NotoSansMono-Medium.ttf/40' -c 255,0,0,255 -t '$NOTE'"
}
keycombo(){
for key in "$@"
do
xdotool keydown $key
sleep 0.01
done
for key in "$@"
do
xdotool keyup $key
sleep 0.01
done
sleep 0.5
}
rm -rf /root/.mozilla/firefox/bifup8k5.docker/sessionstore-backups
#echo 'user_pref("layout.css.devPixelsPerPx", "1.5");' >> /root/.mozilla/firefox/bifup8k5.docker/prefs.js
firefox --devtools &
FIREFOX_PID=$! FIREFOX_PID=$!
sleep 3 sleep 3
xdotool mousemove 1228 24 xdotool key Return # in case there's a "firefox closed unexpectedly" button
xdotool click 1
sleep 1 sleep 1
# click 1424 628
xdotool keydown Control_L grab before maximize
scrot
xdotool keydown l click 1886 13 #maximize button
scrot
xdotool keyup l sleep 1
scrot
xdotool keyup Control_L #grab after maximize before control shift E
scrot
#keycombo Control_L Shift_L e
#sleep 1
grab before escape
xdotool key Escape
sleep 0.1
grab after escape
grab after control shift e before ctrl L
keycombo Control_L l
grab after control L
xdotool type "biedronka.pl" xdotool type "biedronka.pl"
scrot
xdotool key Return xdotool key Return
scrot
grab after return
sleep 1 sleep 1
xdotool keydown Control_L
sleep 0.2
scrot scrot
xdotool keydown Shift_L
sleep 0.2 echo "waiting for the website to load..."
scrot while [ $(get_pixel_color 143 122) = "2E3436" ] # the center of the X icon that becomes a "refresh" icon once the website is finished loading
xdotool key c do
sleep 0.2 sleep 0.5
scrot printf "."
xdotool key e grab loading
sleep 0.2 done
scrot
xdotool keyup Shift_L
sleep 0.2
scrot
xdotool key f
sleep 0.2
scrot
xdotool keyup Control_L
sleep 0.2
scrot
xdotool type "adnxs.com"
scrot scrot
sleep 3 keycombo Control_L Shift_L c
keycombo Control_L Shift_L e
keycombo Control_L f
sleep 0.2
xdotool type "method:GET domain:adocean.pl" # can filter with more granularity: https://developer.mozilla.org/en-US/docs/Tools/Network_Monitor/request_list#filtering_by_properties
xdotool key Escape
sleep 0.3
scrot scrot
seq 28 | xargs -I {} xdotool key Tab
xdotool key Down
sleep 0.1
xdotool key Up
sleep 0.1
scrot
while [ $(get_pixel_color 1267 1572) = "F9F9FA" ]
do
xdotool key Tab
sleep 0.05
xdotool key Down
sleep 0.1
scrot
echo "########## EXTRACTED TEXT: "
extract_text 2056 330 824 1260 | grep cookie
done
kill -2 %%; kill -2 %%;
cleanup cleanup