Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Allow cursored context menu
// @description Allow script to receive right clicks only if the right clicked element's cursor is "context-menu".
// @include http://*
// == usage ==
// set true: opera:config#UserPrefs|Allowscripttoreceiverightclicks
// ==/UserScript==
(function() {
@miya2000
miya2000 / nicovideo_q.js
Created December 2, 2012 03:39
nicovideo - Q for Opera10.10
// ==UserScript==
// @name nicovideo - Q for Opera10.10
// @include http://www.nicovideo.jp/watch/*
// ==/UserScript==
(function() {
opera.addEventListener('BeforeScript', function(e) {
if (/EmbededWatchData\.js/.test(e.element.src)) {
document.body.constructor = HTMLBodyElement;
}
}, false);
// ==UserScript==
// @name jQuery1.9.1 for Opera10.10
// @include *
// ==/UserScript==
(function() {
opera.addEventListener('BeforeScript', function(e) {
// div#click is "undefined". a#click, input#click is "Function".
if (e.element.src == 'http://code.jquery.com/jquery-1.9.1.js') {
e.element.text = e.element.text.replace('div.cloneNode( true ).click();', '');
}
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace QueryTest
{
[TestClass]
public class QueryTest
{
[TestMethod]
public void Test1()
// ==UserScript==
// @name jQuery2.0.0 for Opera10.10
// @include *
// ==/UserScript==
(function() {
if (typeof Date.now == 'undefined') {
Date.now = function() { return new Date() };
}
if (typeof Array.isArray == 'undefined') {
// https://developer.mozilla.org/ja/docs/JavaScript/Reference/Global_Objects/Array/isArray
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
namespace UnitTestProject1
{
[TestClass]
public class CsvConvertUsingAnonymousTypeTest
@miya2000
miya2000 / nicovideo_wnp.user.js
Created December 23, 2013 23:54
nicovideo - wnp (Ginza Preview)
// ==UserScript==
// @name nicovideo - wnp (Ginza Preview)
// @description windowised nicovideo player.
// @author miya2000
// @namespace http://d.hatena.ne.jp/miya2000/
// @version Ginza Preview
// @include http://*.nicovideo.jp/*
// @exclude http://www.nicovideo.jp/watch/*
// @exclude http://*http*
// @exclude http://ads.nicovideo.jp/*
// ==UserScript==
// @name Amanzon immersiveView for Opera10.10
// @include http://www.amazon.co.jp/exec/obidos/ASIN/*
// ==/UserScript==
(function() {
opera.addEventListener('BeforeScript', function(e) {
if (e.element.src.indexOf('immersiveView') >= 0) {
e.element.text = e.element.text.replace('jQuery("<img>").attr("src",currentDetailImageUrl);', 'jQuery("<img>").load(function(){}).attr("src",currentDetailImageUrl)');
}
}, false);
@miya2000
miya2000 / test
Created April 15, 2014 23:00
Excel2013: Odd FormulaR1C1 When Activating Graph sheet.
Sub Test()
Sheet1.Activate
ShowR1C1ToA1 ("=RC[-1]") ' [=A1]
Graph1.Activate
ShowR1C1ToA1 ("=RC[-1]") ' [=XFD1]
End Sub
if (x < 0) { /**/ }
else if (x === 0) { /**/ }
else if (x > 0) { /**/ }
else { /**/ }