Skip to content

Instantly share code, notes, and snippets.

(function() {
const copyToClipboard = str => {
const el = document.createElement('textarea');
el.value = str;
el.setAttribute('readonly', '');
el.style.position = 'absolute';
el.style.left = '-9999px';
document.body.appendChild(el);
el.select();
document.execCommand('copy');

Keybase proof

I hereby claim:

  • I am aricih on github.
  • I am aricih (https://keybase.io/aricih) on keybase.
  • I have a public key whose fingerprint is 4398 82FA 03F8 3390 D067 7A77 180D C427 5511 E68D

To claim this, I am signing this object:

$(function() {
var caseSet = [];
$(".vb,.uvb").each(function(i, o) {
var content = $(o).html();
var splitIndex = content.indexOf("-");
var caseNumber = content.substr(0, splitIndex).trim();
if(caseSet.indexOf(caseNumber) >= 0) {
return;
}
@aricih
aricih / Colorized Slack.user.js
Last active April 17, 2018 07:12
Colorized Slack Threads and more
// ==UserScript==
// @name Colorized Slack
// @namespace https://www.netsparker.com/
// @version 1.4.1
// @description Colorizes the message threads.
// @author Hakan Arıcı
// @include *.slack.com*
// ==/UserScript==
(function() {