{"id":24152291,"url":"https://github.com/nfreear/scroll-to-text","last_synced_at":"2026-02-02T14:06:49.460Z","repository":{"id":40951735,"uuid":"169408965","full_name":"nfreear/scroll-to-text","owner":"nfreear","description":"Javascript proxy to serve a web-page and scroll to an arbitrary text. [WIP]","archived":false,"fork":false,"pushed_at":"2022-12-03T10:09:36.000Z","size":435,"stargazers_count":1,"open_issues_count":11,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-17T16:50:31.465Z","etag":null,"topics":["fetch","highlight","proxy","scrollto"],"latest_commit_sha":null,"homepage":"https://scrolltotext.github.io","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nfreear.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-06T13:18:51.000Z","updated_at":"2021-03-09T09:14:47.000Z","dependencies_parsed_at":"2023-01-23T22:45:52.108Z","dependency_job_id":null,"html_url":"https://github.com/nfreear/scroll-to-text","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nfreear/scroll-to-text","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfreear%2Fscroll-to-text","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfreear%2Fscroll-to-text/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfreear%2Fscroll-to-text/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfreear%2Fscroll-to-text/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nfreear","download_url":"https://codeload.github.com/nfreear/scroll-to-text/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfreear%2Fscroll-to-text/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29012711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T12:48:30.580Z","status":"ssl_error","status_checked_at":"2026-02-02T12:46:38.384Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fetch","highlight","proxy","scrollto"],"created_at":"2025-01-12T10:15:39.540Z","updated_at":"2026-02-02T14:06:49.434Z","avatar_url":"https://github.com/nfreear.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n[![Build \u0026 test status — Travis-CI][travis-icon]][travis]\n\n# scroll-to-text #\n\nA Javascript-based proxy to serve a web-page, and highlight and scroll to an arbitrary text.\n\n * [scrolltotext.github.io][]\n\nRead the [blog post][].\n\nFeatures:\n\n * Supports single or multiple words;\n * Scrolls to the _Nth_ occurrence of the word/phrase;\n * Supports non-Latin characters (_e.g. accent characters ..._) (_multi-lingual?_);\n * URL parameter to modify the highlight background colour;\n * [Smooth-scrolling][js-scroll] implemented;\n\n## Install .. build .. test .. serve\n\n```sh\nnpm install\nnpm build\nnpm test\nnpm start\n```\n\n## Web API\n\nWith minimal parameters in the request URL:\n\n * `/?url={URL}\u0026text={MY TEXT}`\n\nWith optional occurrence number:\n\n * `/?url={URL}\u0026text={MY TEXT}\u0026occurrence={N}`\n\nWith optional highlight background [colour keywords][col]:\n\n * `/?url={URL}\u0026text={MY TEXT}\u0026bg={BACKGROUND COLOUR NAME}`\n\nAPI examples:\n\n * `/?url=http://kiplingsociety.co.uk/poems_if.htm\u0026text=Kings`\n * `/?url=http://kiplingsociety.co.uk/poems_if.htm\u0026text=Kings\u0026bg=pink`\n\n## Examples\n\n * [Example 1: '_If_' by Rudyard Kipling (text: '_Kings_')][ex1-r]\n * [Example 2: '_I have a dream_' by Martin Luther King (text: '_creed_')][ex2-r]\n * [Example 3: '_Les Principes de la Philosophie_' by Descartes (text: '_très_')][fr]\n\n## Limitations\n\n * Not supported in [MS Internet Explorer][fetch] (_works in Chrome, Firefox; other browsers not yet tested_)\n * `highlight-phrase.js` can sometimes corrupt the proxied HTML page(!)\n * Case-sensitive text '_searching_';\n * Need to wire in the form;\n * Need a _loading_ spinner;\n * _... ?_\n\n## Included\n\nThe following are included and extended as part of `scroll-to-text`:\n\n * [pure-scrollto][] ([js][])\n * [highlight-word][]\n\n## Disclaimer\n\nI claim no ownership over the web-content presented _[below]_ via the '_scroll-to-text_' proxy service,\nand accept no responsibility for it.\nImages and other resources may be missing from proxied content (_browser security restrictions?_)\nThis is prototype software which may contain bugs!\n\n---\n© 2018-2019 [Nick Freear][n] \u0026 contributors | License: [MIT][].\n\n[gh]: https://github.com/scrolltotext/scrolltotext.github.io\n[gh-orig]: https://github.com/nfreear/scroll-to-text\n[scrolltotext.github.io]: https://scrolltotext.github.io/\n[blog post]: https://nick.freear.org.uk/2019/02/21/scroll-to-text.html?utm_source=readme\n[n]: https://twitter.com/nfreear\n[mit]: https://nfreear.mit-license.org/#!-2019-scroll-to-text \"© Nick Freear \u0026 contributors | MIT License\"\n[ex1-d]: http://127.0.0.1:9001/?cp=0\u0026url=/test/if.html\u0026text=dream\u0026occurrence=2\n  \"Dev/ Localhost\"\n[ex1-r]: https://scrolltotext.github.io/?url=https://scrolltotext.github.io/test/if.html\u0026text=Kings\u0026occurrence=1\n  \"Scrolltotext.github.io\"\n[ex1b]: https://scrolltotext.github.io/?url=https://poetryfoundation.org/poems/46473/if---\u0026text=Kings\n[ex2-d]: http://127.0.0.1:9001/?url=http://americanrhetoric.com/speeches/mlkihaveadream.htm\u0026text=Its%20creed\n  \"Dev/ Localhost\"\n[ex2-r]: https://scrolltotext.github.io/?url=http://americanrhetoric.com/speeches/mlkihaveadream.htm\u0026text=its%20creed\n  \"Scrolltotext.github.io\"\n[ex3]: https://scrolltotext.github.io/?url=https://example.org\u0026text=More\n[fr]:  https://scrolltotext.github.io/?url=https://scrolltotext.github.io/test/descartes.fr.html\u0026text=tr%C3%A8s\u0026occurrence=2\n  \"Les Principes de la Philosophie by Descartes (Français/French) (text: très)\"\n[col]: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Color_keywords\n[travis]: https://travis-ci.org/nfreear/scroll-to-text\n[travis-icon]: https://travis-ci.org/nfreear/scroll-to-text.svg?branch=master\n[pure-scrollto]: https://npmjs.com/package/pure-scrollto/v/1.0.4\n  \"Author: diqye \u003c262666212@qq.com\u003e | MIT License\"\n[js]: https://unpkg.com/pure-scrollto@1.0.4/src/index.js \"Javascript: 'index.js'\"\n[highlight-word]: https://github.com/DaveBitter/highlight_word/tree/1.0.0\n  \"Copyright (c) 2018 Dave Bitter | MIT License\"\n\n[css-scroll]: https://caniuse.com/#feat=css-scroll-behavior \"css-scroll :~ Chrome, Firefox, Opera only.\"\n[js-scroll]: https://caniuse.com/#feat=scrollintoview \"scrollIntoView :~ Most current browsers, incl. MSIE 11 (92%)\"\n[fetch]: https://caniuse.com/#feat=fetch \"Fetch API :~ most current browsers, except MSIE.\"\n[qs]: https://caniuse.com/#feat=queryselector \"All current browsers.\"\n[arrow]: https://caniuse.com/#feat=arrow-functions \"Arrow functions :~ most current browsers, except MSIE\"\n[iwtu]: http://iwanttouse.com/#fetch,arrow-functions,queryselector,css-scroll-behavior,scrollintoview\n  \"I want to use :~ fetch, arrow-func, querySelector, css-scroll, js-scroll\"\n[iwtu-2]: http://iwanttouse.com/#fetch,arrow-functions,queryselector\n  \"I want to use :~ fetch, arrow-func, querySelector (55%)\"\n\n[ch-stt]: https://chromeunboxed.com/chromes-scroll-to-text-looks-to-anchor-tag-the-web/\n  \"Chrome's “SCROLL TO TEXT” looks to anchor tag the web, February 16, 2019 By GABRIEL BRANGERS\"\n[ch-stt-gh]: https://github.com/bokand/ScrollToTextFragment\n  \"Proposal: Scroll-To-Text using a URL fragment\"\n[ch-stt-news]: https://m.dailyhunt.in/news/india/english/91mobiles-epaper-mobiles/google+chrome+testing+scroll+to+text+feature+to+allow+users+to+share+link+to+specific+section+on+a+page-newsid-108928476\n  \"Google Chrome testing 'Scroll to Text' feature to allow users to share link to specific section on a page, 16 Feb 2019, by 91 Mobiles.\"\n\n[End]: //\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnfreear%2Fscroll-to-text","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnfreear%2Fscroll-to-text","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnfreear%2Fscroll-to-text/lists"}