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
property NetworkName : "" | |
property NetworkPassword : "" | |
try | |
do shell script "/usr/sbin/scselect " & NetworkName | |
delay 2 | |
end try | |
tell application "System Events" |
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
int cellSize = 16; | |
int defaultJumpLimit = 10; | |
int readyState = 0; | |
int gameState = 1; | |
int clearedState = 2; | |
int emptyCell = 0; |
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
# -*- coding: utf-8 -*- | |
require 'uri' | |
class WebBrowser | |
def self.open(uri) | |
uri = URI.parse(uri.to_s) | |
unless %w[ http https ftp file ].include?(uri.scheme) | |
raise ArgumentError | |
end |
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
# -*- coding: utf-8 -*- | |
require 'nicoalert' | |
require 'ruby_gntp' | |
#require_relative 'webbrowser' | |
MAIL = '' | |
PASSWORD = '' |
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 LiSA Official Blog Reader | |
// @namespace http://monoweb.info/ | |
// @include http://ameblo.jp/lxixsxa/* | |
// @version 1.0.0 | |
// ==/UserScript== | |
Array.prototype.forEach.call(document.querySelectorAll('.subContents'), function(content) { | |
var html = content.innerHTML; | |
html = html.replace(/([^>])<br><br>([^<])/g, '$1$2'); | |
html = html.replace(/<br>(\s*<br>)+/g, '<br>'); |
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 Fix CiNii Links | |
// @namespace http://monoweb.info/ | |
// @description Remove the onclick attribute from links | |
// @include http://ci.nii.ac.jp/search?* | |
// ==/UserScript== | |
document.addEventListener('AutoPatchWork.DOMNodeInserted', function(e) { | |
Array.prototype.forEach.call(e.target.querySelectorAll('.taggedlink'), function(link) { | |
link.onclick = null; | |
}); |
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
call nvmw use v0.8.8 | |
node pixivcache.js |
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
# -*- coding: utf-8 -*- | |
class Expression | |
attr_reader :value | |
def initialize(tokens) | |
left = Term.new(tokens) | |
@value = left.value | |
until tokens.empty? | |
op = tokens.first |
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 Hide cumbersome message from Evernote | |
// @namespace http://monoweb.info/ | |
// @include https://www.evernote.com/pub/* | |
// ==/UserScript== | |
function close() { | |
var element = document.querySelector('.GCSKHGDCIX'); | |
if(element !== null) { | |
element.click(); | |
return true; |
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 hatena-star-user-icon | |
// @namespace http://www.hatena.ne.jp/hitode909 | |
// @include * | |
// ==/UserScript== | |
(function(){ | |
var user_icon = function(name) { | |
return "http://www.st-hatena.com/users/" + name.slice(0, 2) + "/" + name + "/profile_s.gif"; | |
}; |
OlderNewer