youtube cgi: disable showing pagination - frontends - front-ends for some sites (experiment)
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 1ed634d2500469ba288a12b6f0ae917a6b45734c
(DIR) parent f5ff0bca3e15337500f66278f8cdb03fe8242c3f
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Tue, 6 Jul 2021 10:15:50 +0200
youtube cgi: disable showing pagination
Reminded by Paul W. Rankin, thanks!
Diffstat:
M youtube/cgi.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
(DIR) diff --git a/youtube/cgi.c b/youtube/cgi.c
@@ -226,27 +226,27 @@ render(struct search_response *r)
"<tr>\n"
"\t<td align=\"left\" class=\"nowrap\" nowrap>\n");
if (curpage > 1) {
- OUT("\t\t<a href=\"?q=");
+ OUT("\t\t<!--<a href=\"?q=");
xmlencode(search);
OUT("&page=");
snprintf(tmp, sizeof(tmp), "%d", curpage - 1);
xmlencode(tmp);
OUT("&o=");
xmlencode(order);
- OUT("\" rel=\"prev\" accesskey=\"p\">← prev</a>\n");
+ OUT("\" rel=\"prev\" accesskey=\"p\">← prev</a>-->\n");
}
OUT(
"\t</td>\n\t<td></td>\n"
"\t<td align=\"right\" class=\"a-r nowrap\" nowrap>\n");
- OUT("\t\t<a href=\"?q=");
+ OUT("\t\t<!--<a href=\"?q=");
xmlencode(search);
OUT("&page=");
snprintf(tmp, sizeof(tmp), "%d", curpage + 1);
xmlencode(tmp);
OUT("&o=");
xmlencode(order);
- OUT("\" rel=\"next\" accesskey=\"n\">next →</a>\n"
+ OUT("\" rel=\"next\" accesskey=\"n\">next →</a>-->\n"
"\t</td>\n"
"</tr>\n"
"</tfoot>\n"