{"id":15959143,"url":"https://github.com/nickstenning/framelocation","last_synced_at":"2025-08-25T05:14:48.103Z","repository":{"id":66096405,"uuid":"572658","full_name":"nickstenning/framelocation","owner":"nickstenning","description":"A tiny snippet of javascript to make more useful URLs for pages stuck in \u003cframeset\u003es.","archived":false,"fork":false,"pushed_at":"2010-03-22T19:16:01.000Z","size":96,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T21:12:39.358Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/nickstenning.png","metadata":{"files":{"readme":"README.markdown","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":"2010-03-21T15:17:05.000Z","updated_at":"2013-10-06T14:26:36.000Z","dependencies_parsed_at":"2023-02-19T22:25:15.857Z","dependency_job_id":null,"html_url":"https://github.com/nickstenning/framelocation","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickstenning%2Fframelocation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickstenning%2Fframelocation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickstenning%2Fframelocation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickstenning%2Fframelocation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nickstenning","download_url":"https://codeload.github.com/nickstenning/framelocation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247166156,"owners_count":20894652,"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-07T14:40:29.592Z","updated_at":"2025-04-04T10:59:04.911Z","avatar_url":"https://github.com/nickstenning.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# framelocation.js\n\nframelocation.js is a tiny script with no external dependencies that makes it possible to display useful (if slightly ugly) URLs when loading a website within a frame from another website.\n\nSay your website lives at http://my.cheap.host/~user/, but you also own http://snazzydomain.com/. \n\n1. Edit framelocation.js and update frameRoot to be \"http://my.cheap.host/~user\" (NB: no trailing slash).\n2. Update framesetDomain to be \"http://snazzydomain.com\".\n3. Put your edited version of framelocation.js somewhere web-accessible.\n4. Add `\u003cscript src=\"/path/to/framelocation.js\"\u003e\u003c/script\u003e` to the bottom of each framed page's `\u003cbody\u003e` tag.\n  \nAt this point, when you visit a page on your site through a frame at http://snazzydomain.com/, the hash part of the URL will update to reflect your location.\n\ni.e. If you are looking at http://my.cheap.host/~user/some/page.html, the URL in the address bar will be http://snazzydomain.com/#/some/page.html.\n\nIf you also have access to the frameset page at http://snazzydomain.com, you can also have the URLs serve as permanent links to particular framed locations. Add `\u003cscript src=\"/path/to/framelocation.js\"\u003e\u003c/script\u003e` to the `\u003chead\u003e` of the frameset page, and someone directly visiting http://snazzydomain.com/#/some/page.html will immediately see http://my.cheap.host/~user/some/page.html.\n  ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickstenning%2Fframelocation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnickstenning%2Fframelocation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickstenning%2Fframelocation/lists"}