Skip to content

Commit

Permalink
Spokeo optout fix (#2506)
Browse files Browse the repository at this point in the history
Task/Issue URL:
https://app.asana.com/0/1204167627774280/1206930395092327/f
Tech Design URL:
CC:

**Description**:
Fix issue with spokeo opt-out
  • Loading branch information
Bunn authored Mar 26, 2024
1 parent c0a64ff commit e8c8d80
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 22 deletions.
2 changes: 1 addition & 1 deletion DuckDuckGo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -14167,7 +14167,7 @@
repositoryURL = "https://github.com/duckduckgo/BrowserServicesKit";
requirement = {
kind = exactVersion;
version = 131.0.0;
version = 131.1.0;
};
};
AA06B6B52672AF8100F541C5 /* XCRemoteSwiftPackageReference "Sparkle" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/duckduckgo/BrowserServicesKit",
"state" : {
"revision" : "fa15af7be8ed109a31dd7554ab570ad556687998",
"version" : "131.0.0"
"revision" : "00d3a6f0040479e1d814a3ae02d1a1dea8225bed",
"version" : "131.1.0"
}
},
{
"identity" : "content-scope-scripts",
"kind" : "remoteSourceControl",
"location" : "https://github.com/duckduckgo/content-scope-scripts",
"state" : {
"revision" : "2f44185cca2edefbae7557393a61a23c282abbf8",
"version" : "5.7.0"
"revision" : "62d5dc3d02f6a8347dc5f0b52162a0107d38b74c",
"version" : "5.8.0"
}
},
{
Expand Down Expand Up @@ -165,7 +165,7 @@
{
"identity" : "trackerradarkit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/duckduckgo/TrackerRadarKit",
"location" : "https://github.com/duckduckgo/TrackerRadarKit.git",
"state" : {
"revision" : "a6b7ba151d9dc6684484f3785293875ec01cc1ff",
"version" : "1.2.2"
Expand Down
2 changes: 1 addition & 1 deletion LocalPackages/DataBrokerProtection/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ let package = Package(
targets: ["DataBrokerProtection"])
],
dependencies: [
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "131.0.0"),
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "131.1.0"),
.package(path: "../PixelKit"),
.package(path: "../SwiftUIExtensions"),
.package(path: "../XPCHelper"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ import Foundation
enum ItemType: String, Codable, Sendable {
case text
case url
case element = "elementExpectation"
case element
}

struct Item: Codable, Sendable {
let type: ItemType
let expect: String?
let selector: String?
let parent: String?
}

internal struct ExpectationAction: Action {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "Spokeo",
"url": "spokeo.com",
"version": "0.1.5",
"addedDatetime": 1692594000000,
"version": "0.1.6",
"addedDatetime": 1692572400000,
"mirrorSites": [
{
"name": "CallerSmart",
Expand Down Expand Up @@ -36,12 +36,12 @@
"actions": [
{
"actionType": "navigate",
"id": "02538105-0a5d-46f1-9edc-c643b3f87f20",
"id": "1dd21871-1eee-4b1a-8338-fefeab90687f",
"url": "https://www.spokeo.com/${firstName}-${lastName}/${state|stateFull}/${city}"
},
{
"actionType": "extract",
"id": "569c27a3-6116-4136-84e7-67af0e73fe97",
"id": "bd52ece4-55ba-4839-8360-a201c99d6ae6",
"selector": ".single-column-list-item",
"profile": {
"name": {
Expand Down Expand Up @@ -75,12 +75,23 @@
"actions": [
{
"actionType": "navigate",
"id": "4899529f-b55c-42ab-a91b-1a2abd91a369",
"id": "35347a66-bcc1-410d-b89b-dfe995603505",
"url": "https://www.spokeo.com/optout"
},
{
"actionType": "expectation",
"id": "9e58d407-0291-499f-8003-4a78c17773f1",
"expectations": [
{
"type": "element",
"selector": "#g-recaptcha",
"parent": ".optout_container"
}
]
},
{
"actionType": "fillForm",
"id": "eeb19a12-9664-45ae-9fbc-b961f0925ef0",
"id": "9690a6f5-d16f-4068-b4e8-4eac82165071",
"selector": ".optout_container",
"elements": [
{
Expand All @@ -95,17 +106,17 @@
},
{
"actionType": "getCaptchaInfo",
"id": "1de65c74-7d06-4ffe-b569-b4b0619e7f79",
"id": "442e6845-03f7-41d9-8a83-33b0133b882d",
"selector": "#g-recaptcha"
},
{
"actionType": "solveCaptcha",
"id": "fcdc9be7-ce35-479b-8f05-eb81a1d77d51",
"id": "c4abef86-72c3-43dd-99b6-c5f030b8b398",
"selector": "#g-recaptcha"
},
{
"actionType": "click",
"id": "5bccd84d-cda2-4b55-815f-e1ca18168cc4",
"id": "016e68ea-f862-4378-9d8f-ed4dfd329297",
"elements": [
{
"type": "button",
Expand All @@ -115,7 +126,7 @@
},
{
"actionType": "expectation",
"id": "adcf6b50-f894-4501-8cde-9ab40048c4b2",
"id": "cfd69cf0-1995-4df9-a957-3a230c0a21f5",
"expectations": [
{
"type": "text",
Expand All @@ -126,12 +137,12 @@
},
{
"actionType": "emailConfirmation",
"id": "4bbfb20c-dd3c-46a5-b198-3502f778f373",
"id": "576295bc-1534-4326-8683-5234bfc69499",
"pollingTime": 30
},
{
"actionType": "expectation",
"id": "11e8206f-5cbc-4e1a-89e1-67a57537e8a3",
"id": "7a5f4deb-6c15-4a6f-831c-49617721b465",
"expectations": [
{
"type": "text",
Expand Down
2 changes: 1 addition & 1 deletion LocalPackages/NetworkProtectionMac/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ let package = Package(
.library(name: "NetworkProtectionUI", targets: ["NetworkProtectionUI"]),
],
dependencies: [
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "131.0.0"),
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "131.1.0"),
.package(path: "../XPCHelper"),
.package(path: "../SwiftUIExtensions"),
.package(path: "../LoginItems"),
Expand Down
2 changes: 1 addition & 1 deletion LocalPackages/SubscriptionUI/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ let package = Package(
targets: ["SubscriptionUI"]),
],
dependencies: [
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "131.0.0"),
.package(url: "https://github.com/duckduckgo/BrowserServicesKit", exact: "131.1.0"),
.package(path: "../SwiftUIExtensions")
],
targets: [
Expand Down

0 comments on commit e8c8d80

Please sign in to comment.