{"id":18248925,"url":"https://github.com/css-tricks/view-source-button","last_synced_at":"2025-08-13T14:16:29.817Z","repository":{"id":4210356,"uuid":"5330859","full_name":"CSS-Tricks/View-Source-Button","owner":"CSS-Tricks","description":"Using jQuery, Code Prettify, and CSS3 :target, we can make a button that pops up a nice looking view of the current pages source code.","archived":false,"fork":false,"pushed_at":"2012-08-07T17:20:17.000Z","size":145,"stargazers_count":10,"open_issues_count":0,"forks_count":5,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-04T15:40:14.545Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/CSS-Tricks.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":"2012-08-07T17:13:44.000Z","updated_at":"2021-11-24T05:43:51.000Z","dependencies_parsed_at":"2022-08-24T21:51:33.896Z","dependency_job_id":null,"html_url":"https://github.com/CSS-Tricks/View-Source-Button","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/CSS-Tricks/View-Source-Button","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CSS-Tricks%2FView-Source-Button","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CSS-Tricks%2FView-Source-Button/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CSS-Tricks%2FView-Source-Button/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CSS-Tricks%2FView-Source-Button/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CSS-Tricks","download_url":"https://codeload.github.com/CSS-Tricks/View-Source-Button/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CSS-Tricks%2FView-Source-Button/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270254240,"owners_count":24553010,"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","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"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":[],"created_at":"2024-11-05T09:38:43.814Z","updated_at":"2025-08-13T14:16:29.746Z","avatar_url":"https://github.com/CSS-Tricks.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# View-Source-Button ([Article](http://css-tricks.com/make-a-view-source-button/) / [Demo](http://css-tricks.com/examples/ViewSourceButton/))\n\nThe idea that first came to mind was to use CSS3's :target pseudo class. We talked about these a while back while exporting CSS3 tabs. The idea is to have a link that links to the #source-code hash tag. That puts #source-code at the end of the URL, and allows the :target selector to match and apply styling.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcss-tricks%2Fview-source-button","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcss-tricks%2Fview-source-button","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcss-tricks%2Fview-source-button/lists"}