tosdr / edit.tosdr.org

👍👎 A new web app to rate services
https://edit.tosdr.org
GNU Affero General Public License v3.0
213 stars 37 forks source link

[WiP] Clickpath #956

Closed michielbdejong closed 3 years ago

michielbdejong commented 3 years ago

I want to add the ability to specify a document for a service in terms of link anchor texts to click from the main page.

Work in progress. So far on https://duckduckgo.com it recognises: Available: ["⇶"],["<div class=\"woman-icon\">

"],["<h1 class=\"showcaseheading\">Get Our App & Extension<p class=\"showcasesubheading\">Protect your data on every device.

"],["<div class=\"mailbox-icon\">
"],["<h1 class=\"showcaseheading\">Privacy in Your Inbox<p class=\"showcasesubheading\">Stay protected and informed with our privacy newsletters.

"],["<div class=\"privacy-simplified-icon\">"],["<h1 class=\"showcaseheading\">Protect Your Devices<p class=\"showcasesubheading\">Check out our privacy device guides.

"],["<div class=\"spread-icon\">"],["<h1 class=\"showcaseheading\">Spread DuckDuckGo<p class=\"showcasesubheading\">Help your friends and family join the Duck Side!

"],["<div class=\"donations-icon\">"],["$2,650,000 in privacy donations!"],["<div class=\"traffic-icon\">"],["Over 61 Billion anonymous searches."],["<div class=\"privacy-tips-icon\">"],["Learn why reducing tracking is important."],["<img class=\"socialicon js-lazysvg\" data-src=\"/assets/icons/header/twitter.svg\">Twitter"],["<img class=\"socialicon js-lazysvg\" data-src=\"/assets/icons/header/reddit.svg\">Reddit"],["<img class=\"socialicon js-lazysvg\" data-src=\"/assets/icons/header/blog.svg\">Blog"],["<img class=\"socialicon js-lazysvg\" data-src=\"/assets/icons/header/newsletter.svg\">Newsletter"],["Learn More"],["Help Spread DuckDuckGo!"],[""],["major browsers"],["iOS & Android"],["Themes"],["Other Settings"],["!Bang Search Shortcuts"],["Private Search"],["App and Extension"],["Privacy Blog"],["Privacy Crash Course"],["Help Spread Privacy"],["About Us"],["Privacy Policy"],["Careers"],["Press Kit"],["Twitter"],["Store"],["Reddit"],["Help"],["<img src=\"/assets/onboarding/arrow.svg\" loading=\"lazy\" width=\"24\" height=\"24\">"],["Add DuckDuckGo to Firefox"],["Add DuckDuckGo to Firefox"],["Add DuckDuckGo to Firefox"],["Add DuckDuckGo to Firefox"],["Tweet #ComeToTheDuckSide"],["<h2 property=\"name\" class=\"faqtitle\">Frequently Asked Questions<div class=\"faqcontent\"><section class=\"js-faq-section faqsection\" property=\"mainEntity\" typeof=\"Question\"><header class=\"js-faq-header faqheader\" data-disabled=\"true\"><button class=\"faqbutton\" aria-expanded=\"true\" aria-disabled=\"true\" aria-controls=\"faq-answer-0\" id=\"faq-btn-0\"><svg width=\"20\" height=\"21\" viewBox=\"0 0 20 21\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><circle cx=\"10\" cy=\"10.5\" r=\"10\" transform=\"rotate(-180 10 10.5)\" fill=\"#E5E5E5\"><path d=\"M9.94454 12.8483L13.5355 9.25736C13.7308 9.0621 14.0474 9.0621 14.2426 9.25736C14.4379 9.45262 14.4379 9.7692 14.2426 9.96447L10.3536 13.8536C10.2418 13.9653 10.0903 14.0131 9.94454 13.9969C9.79879 14.0131 9.64729 13.9653 9.53553 13.8536L5.64645 9.96447C5.45118 9.7692 5.45118 9.45262 5.64645 9.25736C5.84171 9.0621 6.15829 9.0621 6.35355 9.25736L9.94454 12.8483Z\" fill=\"#353748\"><h3 class=\"faqquestion\" property=\"name\">How does DuckDuckGo make money?<div id=\"faq-answer-0\" role=\"region\" aria-labelledby=\"faq-btn-0\" class=\"js-faq-collapsible faqcollapsible\" data-collapsed=\"false\" property=\"acceptedAnswer\" typeof=\"Answer\"><div class=\"faqanswer\"><p property=\"text\">We make our money from private ads on our search engine. On other search engines, ads are based on profiles compiled about you using your personal information like search, browsing, and purchase history. Since we don’t collect that information, search ads on DuckDuckGo are based on the search results page you are viewing, not on you as a person. For example, if you search for cars, we’ll show you ads about cars.

 <a property=\"url\" href=\"https://spreadprivacy.com/duckduckgo-revenue-model/\" target=\"_blank\" data-id=\"6-l\">Learn more"],["Learn more"],["DuckDuckGo browser extension and mobile app"],["Learn more"],["bonus features"],["Learn more"],["Learn more"],["which we make public"],["Learn more"],["Learn more"],["Add DuckDuckGo to Firefox"]

michielbdejong commented 3 years ago

Hm, it would be useful to show not only the anchor text but also the href of the <a>. And let the user click on the one they want to use. Maybe just populate a select input.