Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name thumbzillaShortMovieRemover
// @namespace https://gist.github.com/botmtl
// @author botmtl
// @description remove movies under 10 minutes long
// @include http://thumbzilla.com/*
// @include http://www.thumbzilla.com/*
// icon http://i.imgur.com/dwqh8wl.png
// @license http://www.gnu.org/licenses/gpl-2.0.txt
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js
@botmtl
botmtl / ChromeAppDownloader.py
Created April 8, 2016 07:07 — forked from arulrajnet/ChromeAppDownloader.py
Python Script to download the Chrome Extensions (CRX) file directly from the google chrome web store.
# -*- coding: utf-8 -*-
"""
Python Script to download the Chrome Extensions (CRX) file directly from the google chrome web store.
Referred from http://chrome-extension-downloader.com/how-does-it-work.php
"""
from __future__ import division
import argparse
import requests
@botmtl
botmtl / GCP - Register
Created April 17, 2016 18:56 — forked from mimeoconnect/GCP - Register
Registers a new cloud printer with the Google Cloud Print (GCP) registry using PHP and Zend Framework.
<?php
require_once 'Zend/Loader.php';
Zend_Loader::loadClass('Zend_Http_Client');
Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
// Name of Cloud Printer
$Printer_Name = "";
// Description of Cloud Printer
// ==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?*
using System.Collections.Generic;
using System.Linq;
using System.Management.Automation;
using DeviceManagementLib;
using DeviceManagementLib.Win32;
namespace DeviceManagementModule
{
public class DeviceCmdletBase : PSCmdlet
{
using System;
namespace DeviceManagementModule
{
public class DeviceNotFoundException : Exception
{
public DeviceNotFoundException()
{
}
@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'
});
});
@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 / 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.
// ==UserScript==
// @author botmtl
// @namespace https://github.com/botmtl
// @name Auto-Copy-Links
// @version 0.04
// @description Auto-Copy-Links
// @icon https://forum.mobilism.org/favicon.ico
// @downloadurl https://gist.github.com/botmtl/a529785a665b134dadbbd961ee64a5ef/raw/32f53284df41a4ae75aab2a3aef08de588f34423/Mobilism-AutoCopyUrl.user.js
// @match https://forum.mobilism.org/*
// @grant GM_setClipboard