{"id":15629695,"url":"https://github.com/anko/uzbl-smoothscroll","last_synced_at":"2026-01-07T09:34:25.012Z","repository":{"id":18651862,"uuid":"21858863","full_name":"anko/uzbl-smoothscroll","owner":"anko","description":"uzbl-browser smooth scrolling script","archived":false,"fork":false,"pushed_at":"2014-07-16T19:40:01.000Z","size":152,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-04T19:14:42.572Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"LiveScript","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/anko.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":"2014-07-15T12:34:20.000Z","updated_at":"2022-04-30T01:12:03.000Z","dependencies_parsed_at":"2022-08-05T00:16:09.970Z","dependency_job_id":null,"html_url":"https://github.com/anko/uzbl-smoothscroll","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anko%2Fuzbl-smoothscroll","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anko%2Fuzbl-smoothscroll/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anko%2Fuzbl-smoothscroll/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anko%2Fuzbl-smoothscroll/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anko","download_url":"https://codeload.github.com/anko/uzbl-smoothscroll/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246223325,"owners_count":20743168,"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":[],"created_at":"2024-10-03T10:28:11.686Z","updated_at":"2026-01-07T09:34:24.979Z","avatar_url":"https://github.com/anko.png","language":"LiveScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# uzbl-smoothscroll\n\nSmooth scrolling script for [`uzbl-browser`][uzbl].\n\n## Install\n\n### Plain JS file\n\n    cd \"${XDG_CONFIG_HOME:-$HOME/.config}/uzbl/scripts\"\n    wget \"https://github.com/c39/uzbl-smoothscroll/releases/download/v1.0.0/smoothscroll.js\"\n\nOr just download it from the [release page][release].\n\nEdit your `config` to load on each page:\n\n    @on_event   LOAD_COMMIT    script @scripts_dir/smoothscroll.js\n\n### Compile from source\n\nYou'll need [`npm`][npm], because I'm way too serious about dependency\nmanagement. Basically just `git clone` and run `npm install` in the root dir:\n\n    cd \"${XDG_CONFIG_HOME:-$HOME/.config}/uzbl/scripts\"\n    git clone https://github.com/c39/uzbl-smoothscroll smoothscroll\n    npm install\n\nEdit your `config` to load it on each page:\n\n    @on_event   LOAD_COMMIT    script @scripts_dir/smoothscroll/bundle.js\n\n## Use\n\nEdit your `config` to bind whatever keys you like:\n\n    # Smooth scroll by absolute amounts\n    @cbind  j = js uzbl.scrollPixels(\"vertical\", 50)\n    @cbind  k = js uzbl.scrollPixels(\"vertical\", -50)\n    @cbind  h = js.uzbl.scrollPixels(\"horizontal\", -50)\n    @cbind  l = js.uzbl.scrollPixels(\"horizontal\", 50)\n\n    # Smooth scroll by a percentage of the view\n    @cbind  \u003cCtrl\u003ed = js uzbl.scrollPercent(\"vertical\", 50)\n    @cbind  \u003cCtrl\u003eu = js uzbl.scrollPercent(\"vertical\", -50)\n    @cbind  \u003cCtrl\u003ef = js uzbl.scrollPercent(\"vertical\", 100)\n    @cbind  \u003cCtrl\u003eb = js uzbl.scrollPercent(\"vertical\", -100)\n\n    # Smooth scroll by a percentage of the entire page\n    @cbind  gg      = js uzbl.scrollPercent(\"vertical\", 0)\n    @cbind  G       = js uzbl.scrollPercent(\"vertical\", 100)\n\n## Known bugs\n\n - Only works for the keyboard. `uzbl` doesn't let scripts bind to scrollwheel\n   events.\n - Occasionally drifts horizontally a little when scrolling vertically (or vice\n   versa). WebKit might be rounding floating point `pageXOffset`/`pageYOffset`\n   values?\n - Bigger than it needs to be. I got lazy and included all of D3, because it's\n   coming from a local disk anyway and still pretty small compared to any image\n   file.\n\n\n [npm]: https://www.npmjs.org/ \"Node Package Manager\"\n [uzbl]: http://www.uzbl.org/\n [release]: https://github.com/c39/uzbl-smoothscroll/releases\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanko%2Fuzbl-smoothscroll","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanko%2Fuzbl-smoothscroll","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanko%2Fuzbl-smoothscroll/lists"}