Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Set default extraction methods #1435

Open
4 of 9 tasks
aes opened this issue May 22, 2024 · 0 comments
Open
4 of 9 tasks

Feature Request: Set default extraction methods #1435

aes opened this issue May 22, 2024 · 0 comments

Comments

@aes
Copy link

aes commented May 22, 2024

Type

  • General question or discussion
  • Propose a brand new feature
  • Request modification of existing behavior or design

What is the problem that your feature request solves

It's annoying to have to click the select/option list every time. Friend computer deals with this, please.

Describe the ideal specific solution you'd want, and whether it fits into any broader scope of changes

Global defaults, user override, applied when presenting the UI, so as to not have any effect on API / mechanized use.

What hacks or alternative solutions have you tried to solve the problem?

Here's a Violentmonkey script that seems to work.

// ==UserScript==
// @name        Default Archivebox methods
// @namespace   Violentmonkey Scripts
// @match       https://archivebox.example.com/add/*
// @grant       none
// @version     1.0
// @author      -
// @description 2024-05-22 09:18:57
// ==/UserScript==
default_methods = [
  "favicon",
  "singlefile",
  "readability",
  "title",
]

node = document.querySelector('#id_archive_methods');
if (node) {
  [...node.children].forEach(
    o => o.selected = default_methods.find(x => x == o.value)
  )
}

How badly do you want this new feature?

  • It's an urgent deal-breaker, I can't live without it
  • It's important to add it in the near-mid term future
  • It would be nice to have eventually

  • I'm willing to contribute dev time
  • I like ArchiveBox so far / would recommend it to a friend
  • I've had a lot of difficulty getting ArchiveBox set up
    (nitpick: I would've liked the choice of public archive vs. login-to-see-anything more upfront. Idc if it's a bit involved to set up, (it's not) but the remark that it can be deployed in 'private mode' should be easier to find)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant