Skip to content

Instantly share code, notes, and snippets.

View RobotRogue's full-sized avatar
🤪
...

Nelson RobotRogue

🤪
...
  • Vancouver, BC
View GitHub Profile
// The below code when inserted into the URL field of a bookmark, will
// turn your Google Hangouts into a dark mode view when the bookmark is clicked
javascript: (function() {
var background = document.querySelector('div[style*="background-image:url"]');
if (background) {
background.remove();
}
var callToAction = document.querySelector(".g-Ue-T-J");
// The below code is to be copied/pasted into a bookmarklet URL field (remove the comments or it won't work)
// When viewing a Jira ticket, post to a Slack channel that you have completed the ticket
// Requires you have a Slack Incoming webhook configured + the webhook URL
// That can be set up here: https://slack.com/apps/A0F7XDUAZ-incoming-webhooks
javascript: (function() {
const desc = document.getElementById("summary-val").innerText;
const ticketURL = document.URL;
const slackMsgStr =
":comet: *Finished testing:* :comet:\n- " + ticketURL + "\n- " + desc + "\n\n:white_check_mark: _Ready to Deploy!_";
@RobotRogue
RobotRogue / resizePlayer.js
Last active June 13, 2019 15:59
I use this bookmarklet code to resize the webplayer on Tested.com
javascript: (function() {
var playerContainer = document.querySelector("div.l-col-fluid");
if (playerContainer) {
playerContainer.setAttribute("style", "width: 1050px; height: 610px;");
}
var textBlurb = document.querySelector("aside.l-col-fixed");
if (textBlurb) {
textBlurb.className = "l-col-fluid";
}
var background = document.querySelector("#panel");
// Sends text to clipboard to be pasted into slack -- after finishing testing a ticket
javascript: (function () {
var desc = document.getElementById("summary-val").innerText;
var str = "*Finished testing:*\n- " + document.URL + "\n- " + desc + "\n\n:small_orange_diamond: _Pending PR Approval Still...\n:white_check_mark: _Ready to Deploy!_";
if (str) {
var el = document.createElement('textarea');
el.value = str;
el.setAttribute('readonly', '');
@RobotRogue
RobotRogue / kbd75.json
Created October 12, 2017 16:08
JSON for KBD75 including LED control on Layer 1
{
"version": 1,
"keyboard": {
"keys": [{
"id": 0,
"legend": "Esc",
"state": {
"x": 0,
"y": 0,
"r": 0,