Skip to content

Instantly share code, notes, and snippets.

View verpag's full-sized avatar
🌗
Lighty Shadowy

Burak Tokgöz verpag

🌗
Lighty Shadowy
View GitHub Profile
@verpag
verpag / followredirect
Created August 24, 2017 10:46
following an 301
class SheetsController < ApplicationController
before_action :check_redirect
def show
@sheet = Sheet.find(sheet_params[:id])
end
private
def sheet_params
@verpag
verpag / custom.css
Last active August 22, 2017 06:22 — forked from widget-/custom.css
:root {
--primary: #FFF2EF;
--accent: #E7D27C;
--background: #4A5664;
--background-elevated: #3F4955;
--background-hover: #AAA388;
--sidebar-background: #1a2129;
--border-dim: #666;
@verpag
verpag / slack index dark
Last active August 21, 2017 07:42
Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/index.js
document.addEventListener("DOMContentLoaded", function() { // eslint-disable-line
// Then get its webviews
let webviews = document.querySelectorAll(".TeamView webview");
// Fetch our CSS in parallel ahead of time
const cssURI = 'https://gist.githubusercontent.com/verpag/57572596dbe50f042bf3551752bd46d7/raw/c3118d62df13653c08af550a8a2d7a4152e659d8/custom.css';
let cssPromise = fetch(cssURI).then(response => response.text());
// Then wait for the views to load
webviews.forEach(webview => {