8000 Some dictionaries are unusable · Issue #581 · LuteOrg/lute-v3 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Some dictionaries are unusable #581

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

Open
Mycheze opened this issue Jan 30, 2025 · 2 comments
Open

Some dictionaries are unusable #581

Mycheze opened this issue Jan 30, 2025 · 2 comments

Comments

@Mycheze
Copy link
Mycheze commented Jan 30, 2025

Description

This isn't strictly a bug with Lute, but the way that it uses online dictionaries. Some dictionaries (like the only good one I've found for Czech) requires you to accept cookies when loading the site. And since Lute always makes a "new request" (or something), there's a giant cookies popup on EVERY SINGLE LOOKUP.

To Reproduce

Steps to reproduce the behavior, e.g.:

  1. Use a dictionary with this kind of popup (like this: https://slovniky.lingea.cz/Anglicko-cesky/###)
  2. Look up any word

Screenshots

Image

Extra software info, if not already included in the Description:

  • OS (e.g., iOS, windows): Linux
  • Browser (e.g., chrome, safari): Chromium
  • How you've installed Lute (Docker, python, source: pip
  • Version: 3.9.4

Another tip: it'd be nice if in the "about Lute" page, there was a simple copy/paste which could fill out this bottom section with OS browser install method and version.

@jzohrab jzohrab added this to Lute-v3 Jan 30, 2025
@jzohrab
Copy link
Collaborator
jzohrab commented Jan 30, 2025

Thanks. Right, since the page is opened anew on each term lookup, it's a full reload ... this one will be tough to handle well.

Cookies and iframes have some security issues or notes: https://intercom.help/progressier/en/articles/6894845-why-aren-t-cookies-working-inside-an-iframe

I don't know offhand if there's a way to force the iframe to use the cookies. A possible workaround would be to have lute update the call via javascript, but that's a completely new method of handling dictionary lookups and would need a investigation (and a bunch of work to implement).

@imamcr
Copy link
Contributor
imamcr commented Feb 28, 2025

Install uBlock Origin and add this to your filters:

slovniky.lingea.cz###cookiescript_injected_wrapper
slovniky.lingea.cz##.navbar-inverse.navbar
slovniky.lingea.cz##.menu
slovniky.lingea.cz##.nphi.colr-xs-2.col-sm-3.col-md-3
slovniky.lingea.cz##.f2

After you do this, your dictionary will look like this every time:

Image

For other dictionaries:
Right click on your dictionary, click on "uBlock Origin", then click on "Block element in frame..." and block everything that bothers you. This is useful not only for popups but also for blocking everything unnecessary in the dictionary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

3 participants
0