Skip to content

Instantly share code, notes, and snippets.

View atakangktepe's full-sized avatar

Atakan Goktepe atakangktepe

View GitHub Profile
import React from 'react';
import ReactDOM from 'react-dom';
class App extends React.Component {
render() {
return (
<div> Your App injected to DOM correctly! </div>
)
}
}
window.onload = () => {
const $startButton = document.querySelector('.start');
$startButton.onclick = () => {
// Get active tab
chrome.tabs.query({
active: true,
currentWindow: true,
}, (tabs) => {
// Send message to script file
<!doctype html>
<!--
This page is shown when the extension button is clicked, because the
"browser_action" field in manifest.json contains the "default_popup" key with
value "popup.html".
-->
<html>
<head>
<title>Getting Started Extension's Popup</title>
<style type="text/css">
@atakangktepe
atakangktepe / package.json
Last active March 24, 2018 12:31
Chrome extension package.json
{
"name": "extension-name",
"version": "0.1.0",
"description": "Description",
"main": "src/js/main.js",
"scripts": {
"build": "parcel build src/js/main.js -d src/build/ -o main.js",
"watch": "parcel watch src/js/main.js -d src/build/ -o main.js"
},
"author": "Atakan Goktepe",
@atakangktepe
atakangktepe / manifest.json
Last active March 25, 2018 11:42
Chrome Extension files of Medium post
{
"manifest_version": 2,
"name": "Name of your chrome extension",
"description": "Description of your chrome extension.",
"version": "1.0",
"browser_action": {
"default_icon": "icon.png",
"default_popup": "src/popup.html"

Keybase proof

I hereby claim:

  • I am atakangktepe on github.
  • I am atakan (https://keybase.io/atakan) on keybase.
  • I have a public key ASD75SRlh4v6zZlcP2L6tAc2TCbUMipz7DdhqypI-eWMogo

To claim this, I am signing this object:

@atakangktepe
atakangktepe / ati.zsh-theme
Created November 1, 2016 08:03
My own oh-my-zsh theme
PROMPT='$fg_bold[yellow]($fg[yellow]%t$fg_bold[yellow])$fg_bold[blue] [$fg[red]%n@%m:%~$(git_prompt_info)$fg[yellow]$(rvm_prompt_info)$fg_bold[blue]]$reset_color
$ '
# git theming
ZSH_THEME_GIT_PROMPT_PREFIX="$fg_bold[green]("
ZSH_THEME_GIT_PROMPT_SUFFIX=")"
ZSH_THEME_GIT_PROMPT_CLEAN="✔"
ZSH_THEME_GIT_PROMPT_DIRTY="✗"
@atakangktepe
atakangktepe / .zshrc
Created October 26, 2016 11:43
My Zsh Config
# Path to your oh-my-zsh installation.
export ZSH=/Users/atakan/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="agnoster"
# Plugins Directory