This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Disable Reddit Lightbox | |
// @namespace http://naatan.com/ | |
// @version 0.1 | |
// @description Disable the damn lightbox on the reddit redesign | |
// @author Nathan Rijksen | |
// @match https://www.reddit.com/* | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Original macro: http://community.activestate.com/forum/macro-quick-find-highlight | |
* Forked to fix API's for Komodo 7 and beyond | |
* | |
* Copyright (c) 2009 Stan Angeloff http://blog.angeloff.name | |
* | |
* Permission is hereby granted, free of charge, to any person | |
* obtaining a copy of this software and associated documentation | |
* files (the "Software"), to deal in the Software without | |
* restriction, including without limitation the rights to use, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var notify = require("notify/notify"); | |
var editor = require("ko/editor"); | |
/* Quickly thrown together, only supports Komodo 9 and GitHub */ | |
var koDoc = ko.views.manager.currentView.koDoc; | |
if ( ! koDoc || ! koDoc.file) return; | |
var uri = koDoc.file.URI; | |
var sccSvc = ko.scc.getServiceForUrl(uri); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var view = ko.views.manager.currentView; | |
var tabbox = view.parentNode; | |
while (tabbox && tabbox.nodeName != "tabbox" && tabbox.nodeName != "xul:tabbox") { | |
tabbox = tabbox.parentNode; | |
} | |
// Vertical tabs | |
tabbox.setAttribute("orient", "horizontal"); | |
tabbox.setAttribute("dir", "reverse"); | |
tabbox.tabs.setAttribute("orient", "vertical"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var sm = ko.views.manager.currentView.scimoz; | |
function selBraceContents() | |
{ | |
ko.commands.doCommand('cmd_selectToMatchingBrace'); | |
var selText = sm.selText; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @fileoverview Auto completes curly braces to start on a new line - experimental | |
* @author Nathan Rijksen | |
* @version 0.1 | |
*/ | |
/** | |
* Komodo Extensions Namespace. | |
* This namespace was suggested by JeffG. More information is available at: | |
* {@link http://community.activestate.com/forum-topic/extension-s-namespace} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tmp = require('tmp'); | |
var fs = require('fs'); | |
var exec = require("child_process").exec; | |
tmp.file({postfix: ".md"}, function(err, path, fd) { | |
fs.writeFile(path, "* One\n* Two", function(err) { | |
if(err) return; | |
exec('github-markup ' + path, function (err, stdout, stderr) { | |
console.log(stdout); | |
console.log(path); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ko.openfiles.groupers.byPattern.patterns = [ | |
{ | |
name: 'Plat - %match% - config', | |
pattern: /\/skin\/plat\/([a-z0-9_-]*)\/_config\//i | |
}, | |
{ | |
name: 'Plat - %match%', | |
pattern: /\/skin\/plat\/([a-z0-9_-]*)\//i | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ko.openfiles.groupers.byPattern.patterns = [ | |
{ | |
name: 'Databases', | |
pattern: /\/databases(?:\/|$)/i | |
}, | |
{ | |
name: 'Scripts', | |
pattern: /\/scripts(?:\/|$)/i | |
}, | |
{ |
NewerOlder