Обговорення » Розробка

Advise on an alternative to GET queries for revoking a setting

§
Опубліковано: 19.05.2024

Good day!

Newspaper is an HTML feed renderer. By default it displays maximum 5 entries. Upon clicking on "See more news" it displays all entries. It does so by adding streamburner_active=0 query to the URL.

I would be glad to receive an advise about a different mean to ignore a setting.

I was thinking on changing a setting with GM.getValue/GM.setValue (e.g. "load all" = true) and to revoke that setting (i.e. false) upon click/mouse event - after rendering task is done.

Please advise,

Schimon

§
Опубліковано: 22.05.2024

Done.

See https://greasyfork.org/en/scripts/465932-newspaper-html-feed-reader/diff?v1=1380661&v2=1379278

No need for GM.getValue/GM.setValue.

A boolean variable was enough.

Опублікувати відповідь

Sign in to post a reply.