{"id":24329489,"url":"https://github.com/believer-ufa/clever-scrollbar","last_synced_at":"2025-09-27T15:31:37.962Z","repository":{"id":57199902,"uuid":"73654006","full_name":"believer-ufa/clever-scrollbar","owner":"believer-ufa","description":"UI Addition to browser scrollbar ","archived":false,"fork":false,"pushed_at":"2016-11-16T08:07:29.000Z","size":31,"stargazers_count":27,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-13T09:57:13.146Z","etag":null,"topics":["browser-scrollbar","javascript","scrollbar-plugin"],"latest_commit_sha":null,"homepage":"https://believer-ufa.github.io/clever-scrollbar/","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/believer-ufa.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":"2016-11-14T01:02:55.000Z","updated_at":"2020-10-15T18:03:37.000Z","dependencies_parsed_at":"2022-09-16T15:00:57.368Z","dependency_job_id":null,"html_url":"https://github.com/believer-ufa/clever-scrollbar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/believer-ufa%2Fclever-scrollbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/believer-ufa%2Fclever-scrollbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/believer-ufa%2Fclever-scrollbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/believer-ufa%2Fclever-scrollbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/believer-ufa","download_url":"https://codeload.github.com/believer-ufa/clever-scrollbar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234444614,"owners_count":18833658,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["browser-scrollbar","javascript","scrollbar-plugin"],"created_at":"2025-01-18T00:16:00.200Z","updated_at":"2025-09-27T15:31:32.698Z","avatar_url":"https://github.com/believer-ufa.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Clever Scrollbar\n\nIts simple sidebar which helps to navigate on web page.\n\nIt is not a replacement of Default Browser Scrollbar. It's an addition to it.\n\nCheck example on [believer-ufa.github.io/clever-scrollbar/](https://believer-ufa.github.io/clever-scrollbar/)\n\n## Setup\n\nAdd library script\n\n```html\n\u003cscript src=\"dist/clever-scrollbar.js\"\u003e\u003c/script\u003e\n```\n\nOr install from NPM as module:\n\n```bash\nnpm i clever-scrollbar\n```\n\nAdd additional attributes to main sections on you page\n\n```html\n\u003cbody\u003e\n\n    \u003cdiv class='head' data-content-block=\"Header\"\u003e...\u003c/div\u003e\n\n    \u003cdiv class='article-content' data-content-block=\"Article text\"\u003e...\u003c/div\u003e\n\n    \u003cdiv class='comments' data-content-block=\"Users's comments\"\u003e...\u003c/div\u003e\n\n\u003c/body\u003e\n\n```\n\nAnd execute `CleverScrollbar.load()` method after loading all content!\n\n```js\nwindow.addEventListener(\"load\", function() {\n    CleverScrollbar.load()\n})\n```\n\nThis is all of you need.\n\n## Options\n\n#### Load default stylesheets?\n\nIf you want to prevent loading default styles of library, you can use this approach:\n\n```js\nCleverScrollbar.load({\n  loadStyles : false\n})\n```\n\n## Additional classes\n\nIf you need to set some additional classes to one of blocks of sidebar, you can do this with additional attribute:\n\n```\n\u003cdiv\n    class='article-content'\n    data-content-block=\"Article text\"\n    data-content-block-classes='main-content-block other-class'\n\u003e...\u003c/div\u003e\n```\n\n## Ajax and SPA applications\n\nIf you webpage content changed withoud full reload, you can use method `CleverScrollbar.reload()`\nto update you sidebar.\n\n## Stopping\n\nRun `CleverScrollbar.stop()` to disable library. You can load it again later.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeliever-ufa%2Fclever-scrollbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbeliever-ufa%2Fclever-scrollbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbeliever-ufa%2Fclever-scrollbar/lists"}