{"id":19050545,"url":"https://github.com/blakek/addtopage","last_synced_at":"2026-06-23T11:31:58.247Z","repository":{"id":38272154,"uuid":"61157211","full_name":"blakek/addtopage","owner":"blakek","description":"Inject content to your page how you want—using JavaScript","archived":false,"fork":false,"pushed_at":"2022-12-07T04:11:58.000Z","size":1445,"stargazers_count":0,"open_issues_count":44,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-12T11:32:12.455Z","etag":null,"topics":["addtopage","injector","javascript","resource","resource-injector","tiny"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blakek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-14T21:33:56.000Z","updated_at":"2021-01-05T16:46:19.000Z","dependencies_parsed_at":"2023-01-24T13:16:24.118Z","dependency_job_id":null,"html_url":"https://github.com/blakek/addtopage","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/blakek/addtopage","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blakek%2Faddtopage","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blakek%2Faddtopage/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blakek%2Faddtopage/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blakek%2Faddtopage/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blakek","download_url":"https://codeload.github.com/blakek/addtopage/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blakek%2Faddtopage/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34686727,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["addtopage","injector","javascript","resource","resource-injector","tiny"],"created_at":"2024-11-08T23:15:17.307Z","updated_at":"2026-06-23T11:31:58.228Z","avatar_url":"https://github.com/blakek.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# addtopage\n\n\u003e a tiny resource injector\n\n[![Travis](https://img.shields.io/travis/blakek/addtopage.svg)](https://travis-ci.org/blakek/addtopage)\n[![Dependencies](https://img.shields.io/david/blakek/addtopage.svg)](https://www.npmjs.com/package/addtopage)\n![MIT Licensed](https://img.shields.io/npm/l/addtopage.svg)\n[![Version](https://img.shields.io/npm/v/addtopage.svg)](https://www.npmjs.com/package/addtopage)\n\n## What's it do?\n\nThis helps add content to a web page using one line of code when all you remember is the URI.  For example, if you want to add Moment.js to a page, you can just:\n\n```javascript\naddtopage('http://momentjs.com/downloads/moment.min.js')\n```\n\nBut it doesn't just load JavaScript.  You can load images and stylesheets now, and lots more is planned.\n\n```javascript\n// add an image\naddtopage('/path/to/an/image')\n\n// add a stylesheet\naddtopage('//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css')\n```\n\n\n\n\n## What's the point in using this?\n\nIt's original purpose was so I could inject stuff into a page without having to actually edit the page — anything I needed could be added from the browser console.\nHowever, it can also be used to asynchronously load site assets using one line of code.\n\nEven though this is currently a tiny, simple asset-loading library (if it can even be called a \"library\"), lots of awesome stuff is planned in the near future!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblakek%2Faddtopage","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblakek%2Faddtopage","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblakek%2Faddtopage/lists"}