{"id":7980,"date":"2016-11-22T03:44:36","date_gmt":"2016-11-22T11:44:36","guid":{"rendered":"http:\/\/blog.mozilla.org\/addons\/?p=7980"},"modified":"2016-11-21T15:45:33","modified_gmt":"2016-11-21T23:45:33","slug":"webextensions-examples-and-hacktoberfest","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/addons\/2016\/11\/22\/webextensions-examples-and-hacktoberfest\/","title":{"rendered":"webextensions-examples and Hacktoberfest"},"content":{"rendered":"<p><a href=\"https:\/\/hacktoberfest.digitalocean.com\/\">Hacktoberfest<\/a> is an event organized by DigitalOcean in partnership with GitHub. It encourages contributions to open source projects during the month of October. This year the <a href=\"https:\/\/github.com\/mdn\/webextensions-examples\">webextensions-examples<\/a> project participated.<\/p>\n<p>&#8220;webextensions-examples&#8221; is a collection of simple but complete and installable <a href=\"https:\/\/developer.mozilla.org\/en-US\/Add-ons\/WebExtensions\">WebExtensions<\/a>, that demonstrate how to use the APIs and provide a starting point for people writing their own WebExtensions.<\/p>\n<p>We had a great response: contributions from 8 new volunteers in October. Contributions included 4 brand-new complete examples:<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/mdn\/webextensions-examples\/tree\/master\/emoji-substitution\">emoji-substitution<\/a>: shows how to use a <a href=\"https:\/\/developer.mozilla.org\/en-US\/Add-ons\/WebExtensions\/Content_scripts\">content script<\/a> to modify web pages. &#8220;emoji-substitution&#8221; replaces text in web pages with the corresponding emoji.<\/li>\n<li><a href=\"https:\/\/github.com\/mdn\/webextensions-examples\/tree\/master\/list-cookies\">list-cookies<\/a>: shows how to use the <a href=\"https:\/\/developer.mozilla.org\/en-US\/Add-ons\/WebExtensions\/API\/cookies\">cookies<\/a> API, by showing a popup that lists all the cookies in the active tab.<\/li>\n<li><a href=\"https:\/\/github.com\/mdn\/webextensions-examples\/tree\/master\/selection-to-clipboard\">selection-to-clipboard<\/a>: shows how to <a href=\"https:\/\/developer.mozilla.org\/en-US\/Add-ons\/WebExtensions\/Interact_with_the_clipboard\">copy text to the system clipboard<\/a>, by injecting a content script into pages that copies the selection to the clipboard on mouse-up events.<\/li>\n<li><a href=\"https:\/\/github.com\/mdn\/webextensions-examples\/tree\/master\/window-manipulator\">window-manipulator<\/a>: shows how to use the <a href=\"https:\/\/developer.mozilla.org\/en-US\/Add-ons\/WebExtensions\/API\/windows\">windows<\/a> API to manipulate browser windows. It adds options to resize, open, close, and minimize windows.<\/li>\n<\/ul>\n<p>So thanks to DigitalOcean, to the add-ons team for helping me review PRs, and most of all, to our new contributors:<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/DarKFlameS\">DarKFlameS<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/nistath\">nistath<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/kartik95\">kartik95<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/iampeterbanjo\">iampeterbanjo<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/rahulyesantharao\">rahulyesantharao<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/aterranova-bv\">aterranova-bv<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/Hrily\">Hrily<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/capaci\">capaci<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Hacktoberfest is an event organized by DigitalOcean in partnership with GitHub. It encourages contributions to open source projects during the month of October. This year the webextensions-examples project participated. &#8220;webextensions-examples&#8221; &hellip; <a class=\"go\" href=\"https:\/\/blog.mozilla.org\/addons\/2016\/11\/22\/webextensions-examples-and-hacktoberfest\/\">Read more<\/a><\/p>\n","protected":false},"author":303,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[44,295,278886],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>webextensions-examples and Hacktoberfest - Mozilla Add-ons Community Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.mozilla.org\/addons\/2016\/11\/22\/webextensions-examples-and-hacktoberfest\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Will Bamberg\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.mozilla.org\/addons\/2016\/11\/22\/webextensions-examples-and-hacktoberfest\/\",\"url\":\"https:\/\/blog.mozilla.org\/addons\/2016\/11\/22\/webextensions-examples-and-hacktoberfest\/\",\"name\":\"webextensions-examples and Hacktoberfest - Mozilla Add-ons Community Blog\",\"isPartOf\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/#website\"},\"datePublished\":\"2016-11-22T11:44:36+00:00\",\"dateModified\":\"2016-11-21T23:45:33+00:00\",\"author\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/bb34f381b59245c1d814a91bb4d3c73f\"},\"breadcrumb\":{\"@id\":\"https:\/\/blog.mozilla.org\/addons\/2016\/11\/22\/webextensions-examples-and-hacktoberfest\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.mozilla.org\/addons\/2016\/11\/22\/webextensions-examples-and-hacktoberfest\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.mozilla.org\/addons\/2016\/11\/22\/webextensions-examples-and-hacktoberfest\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/blog.mozilla.org\/addons\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"webextensions-examples and Hacktoberfest\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.mozilla.org\/addons\/#website\",\"url\":\"https:\/\/blog.mozilla.org\/addons\/\",\"name\":\"Mozilla Add-ons Community Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.mozilla.org\/addons\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/bb34f381b59245c1d814a91bb4d3c73f\",\"name\":\"Will Bamberg\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/576b94c81f8ad97e58d63f12e5fdb00c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/576b94c81f8ad97e58d63f12e5fdb00c?s=96&d=mm&r=g\",\"caption\":\"Will Bamberg\"},\"description\":\"Will is a technical writer working on MDN.\",\"url\":\"https:\/\/blog.mozilla.org\/addons\/author\/wbambergmozilla-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"webextensions-examples and Hacktoberfest - Mozilla Add-ons Community Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.mozilla.org\/addons\/2016\/11\/22\/webextensions-examples-and-hacktoberfest\/","twitter_misc":{"Written by":"Will Bamberg","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/blog.mozilla.org\/addons\/2016\/11\/22\/webextensions-examples-and-hacktoberfest\/","url":"https:\/\/blog.mozilla.org\/addons\/2016\/11\/22\/webextensions-examples-and-hacktoberfest\/","name":"webextensions-examples and Hacktoberfest - Mozilla Add-ons Community Blog","isPartOf":{"@id":"https:\/\/blog.mozilla.org\/addons\/#website"},"datePublished":"2016-11-22T11:44:36+00:00","dateModified":"2016-11-21T23:45:33+00:00","author":{"@id":"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/bb34f381b59245c1d814a91bb4d3c73f"},"breadcrumb":{"@id":"https:\/\/blog.mozilla.org\/addons\/2016\/11\/22\/webextensions-examples-and-hacktoberfest\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.mozilla.org\/addons\/2016\/11\/22\/webextensions-examples-and-hacktoberfest\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.mozilla.org\/addons\/2016\/11\/22\/webextensions-examples-and-hacktoberfest\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.mozilla.org\/addons\/"},{"@type":"ListItem","position":2,"name":"webextensions-examples and Hacktoberfest"}]},{"@type":"WebSite","@id":"https:\/\/blog.mozilla.org\/addons\/#website","url":"https:\/\/blog.mozilla.org\/addons\/","name":"Mozilla Add-ons Community Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.mozilla.org\/addons\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/bb34f381b59245c1d814a91bb4d3c73f","name":"Will Bamberg","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.mozilla.org\/addons\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/576b94c81f8ad97e58d63f12e5fdb00c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/576b94c81f8ad97e58d63f12e5fdb00c?s=96&d=mm&r=g","caption":"Will Bamberg"},"description":"Will is a technical writer working on MDN.","url":"https:\/\/blog.mozilla.org\/addons\/author\/wbambergmozilla-com\/"}]}},"_links":{"self":[{"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/posts\/7980"}],"collection":[{"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/users\/303"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/comments?post=7980"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/posts\/7980\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/media?parent=7980"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/categories?post=7980"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/addons\/wp-json\/wp\/v2\/tags?post=7980"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}