{"id":17138039,"url":"https://github.com/moagrius/copycss","last_synced_at":"2025-04-13T09:51:42.770Z","repository":{"id":4333073,"uuid":"5468644","full_name":"moagrius/copyCss","owner":"moagrius","description":"jQuery plugin to copy all styles (inline, inherited, etc) from one DOM element to another.","archived":false,"fork":false,"pushed_at":"2014-09-21T04:36:46.000Z","size":171,"stargazers_count":74,"open_issues_count":1,"forks_count":24,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-10T13:36:30.380Z","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/moagrius.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":"2012-08-19T05:28:42.000Z","updated_at":"2024-02-29T08:28:50.000Z","dependencies_parsed_at":"2022-09-17T22:51:14.471Z","dependency_job_id":null,"html_url":"https://github.com/moagrius/copyCss","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/moagrius%2FcopyCss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moagrius%2FcopyCss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moagrius%2FcopyCss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moagrius%2FcopyCss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moagrius","download_url":"https://codeload.github.com/moagrius/copyCss/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248695301,"owners_count":21146952,"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-14T20:08:37.001Z","updated_at":"2025-04-13T09:51:42.739Z","avatar_url":"https://github.com/moagrius.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003ejQuery.copyCSS\u003c/h1\u003e\n\n\u003cp\u003eQuick, simple jQuery extension to retrieve or copy all styles (with optional whitelist and blacklist) from an HTML element.\u003c/p\u003e\n\n\u003cp\u003eTested in Chrome, FireFox, Safari, IE6-9.  Thanks to Vincent (link unknown) who tested and provided a fix for Opera.\u003c/p\u003e\n\n\u003cp\u003eUsage:\u003c/p\u003e\n\n```\n$('#some-element').copyCSS('#another-element');  // copy all styles\n$('#some-element').copyCSS('#another-element', ['top', 'left']);  // copy just top and left\n$('#some-element').copyCSS('#another-element', null, ['top', 'left']);  // copy everything except top and left\n```\n\n\u003cp\u003eThis method can be a resource hog.  Try to use the whitelist parameter if possible.\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoagrius%2Fcopycss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoagrius%2Fcopycss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoagrius%2Fcopycss/lists"}