Greasy Fork is available in English.

게시판 » 개발

Advise on an alternative to GET queries for revoking a setting

§
작성: 2024-05-19

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

§
작성: 2024-05-22

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.

댓글 남기기

댓글을 남기려면 로그인하세요.