Skip to content

Instantly share code, notes, and snippets.

@botmtl
botmtl / vk.js
Last active July 8, 2018 06:41 — forked from mir4a/vk.js
Quickly remove all -deactivated - friends from VK
// Run from console on developers tools (chrome dev tools)
// Go to friends page from your profile and open console F12 or alt+cmd+I
Array.from(document.querySelectorAll('[src*="images/deactivated_100"]')).forEach(function(e){
e.parentNode.parentNode.nextElementSibling.querySelector("a[onclick*='delete']").onclick();
});
@botmtl
botmtl / StackOverflow.user.js
Last active April 9, 2018 16:28 — forked from abhitalks/so-hide-jobs.user.js
Hides Stack Overflow Jobs Ad
// ==UserScript==
// @name Stackoverflow Hide Annoying Stuff
// @namespace http://gist.github.com/botmtl
// @version 1.2
// @description Stack Overflow Annoying Stuff
// @downloadURL https://gist.github.com/botmtl/9056edaf149579f0c9514adaac241c72/raw/4024fc85fb21ddfd377deca1ab110fbde4f44385/StackOverflow.user.js
// @author @botmtl
// @match http://*.stackoverflow.com/*
// @match https://*.stackoverflow.com/*
// @icon https://cdn.sstatic.net/Sites/stackoverflow/img/favicon.ico
@botmtl
botmtl / vk.user.css
Last active April 21, 2018 06:03
vk wide
@-moz-document domain("vk.com") {
#page_layout {
width: 1600px !important;
}
#page_body {
width: 1600px !important;
/*font-size: 11px !important;*/
}
"""
Pocket Calibre Recipe v1.4
"""
from calibre import strftime
from calibre.web.feeds.news import BasicNewsRecipe
from string import Template
import json
import operator
import re
import tempfile
@botmtl
botmtl / hide-blogger-warning.user.js
Created July 14, 2017 15:23 — forked from weedy/hide-blogger-warning.user.js
Automatically skips the obnoxious "Content warning" on Blogger sites (only those with blogspot.com domains).
// ==UserScript==
// @name Blogger Content Warning Skip
// @description Automatically skips the content warning on blogspot.com sites without reloading the page
// @grant none
// @match http://*.blogspot.ca/*
// @match http://*.blogspot.com/*
// ==/UserScript==
var fireEvent = function(obj,evt){
var fireOnThis = obj;
@botmtl
botmtl / html5reset.css
Created July 5, 2017 10:30 — forked from mhawksey/html5reset.css
Instant Google Custom Search Engine
<!DOCTYPE html>
<html lang="en">
<head>
<title>Instant Google Custom Search Engine (CSE)</title>
<meta charset="utf-8">
<meta name="description" content="Google Custom Instant">
<link href="http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="html5reset.css" type="text/css" media="screen">
<link rel="stylesheet" href="style.css" type="text/css" media="screen">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
@botmtl
botmtl / associate-powershell.ps1
Last active October 31, 2016 07:02 — forked from fearthecowboy/associate-powershell.ps1
Make PowerShell scripts runnable from anywhere ( ie, CMD.EXE, Explorer, Run Dialog, etc)
#==============================================================================
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@botmtl
botmtl / hide-blogger-warning.user.js
Last active August 20, 2017 23:02 — forked from obeattie/hide-blogger-warning.user.js
Automatically skips the obnoxious "Content warning" on Blogger sites (only those with blogspot.com domains) — and doesn't require a page reload to do so. Winnah. To install using Google Chrome or Grasemonkey, click raw and you'll be prompted to install th
// ==UserScript==
// @name Blogger Content Warning Skip
// @description Automatically skips the content warning on blogspot.com sites without reloading the page
// @updateURL https://gist.github.com/botmtl/a59d6d1ffc0cfebb728c5640c5ee5293/raw/b6051fea9e418e4538b3565d32117f4fee77f98f/hide-blogger-warning.user.js
// @match http://*.blogspot.com/*
// ==/UserScript==
var fireEvent = function(obj,evt){
var fireOnThis = obj;
if (document.createEvent) {
@botmtl
botmtl / background.js
Last active September 27, 2016 06:38 — forked from danharper/background.js
Bare minimum Chrome extension to inject a JS file into the given page when you click on the browser action icon. The script then inserts a new div into the DOM.
// this is the background code...
// listen for our browerAction to be clicked
chrome.browserAction.onClicked.addListener(function (tab) {
// for the current tab, inject the "inject.js" file & execute it
chrome.tabs.executeScript(tab.ib, {
file: 'inject.js'
});
});
// ==UserScript==
// @name Google Search Filter Plus
// @description Filters google search results
// @namespace smk
// @license MPL 1.1; http://www.mozilla.org/MPL/MPL-1.1.html
// @include http://www.google.tld/
// @include http://www.google.tld/?*
// @include http://www.google.tld/#*&q=*
// @include http://www.google.tld/#q=*
// @include http://www.google.tld/cse?*