Skip to content

Instantly share code, notes, and snippets.

using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace QueryTest
{
[TestClass]
public class QueryTest
{
[TestMethod]
public void Test1()
// ==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();', '');
}
@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 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() {
// ==UserScript==
// @name Scrolloo
// @description Yet anther scrollbar and scroll utilities.
// @namespace http://www.hatena.ne.jp/miya2000/scrolloo
// @version 1.00 Beta
// @include http://*
// @exclude http://www.nicovideo.jp/watch/*
// @exclude http://miya2000.hatenablog.com/*
// ==/UserScript==
//*
// ==UserScript==
// @name nicovideo - zero for Opera10.10
// @include http://www.nicovideo.jp/watch/*
// ==/UserScript==
(function() {
opera.addEventListener('BeforeScript', function(e) {
// show comment panel.
if (/EmbededWatchData\.js/.test(e.element.src)) {
$('#playerCommentPanel').show();
}
// ==UserScript==
// @name del.icio.us - compat opera10.10
// @namespace http://d.hatena.ne.jp/miya2000/
// @include http://delicious.com/*
// ==/UserScript==
(function() {
if (!window.console) {
window.console = {
log : function() {},
Attribute VB_Name = "JavaModule"
Option Explicit
''' Java コンパイル
Public Sub JavaCompile()
CompileAndRun True
End Sub
# author: mizzy, yusukebe
use Plagger::Util qw( decode_content );
use JSON;
use URI::Escape;
sub handle {
my ($self, $url) = @_;
$url =~ qr!http://(?:(?:au|br|ca|fr|de|us|hk|ie|it|jp|mx|nl|nz|pl|es|tw|gb|www)\.)?youtube\.
com/(?:watch(?:\.php)?)?\?v=.+!;
}
// ==UserScript==
// @name Google Web Fonts - for Opera12
// @author miya2000
// @include http://www.google.com/webfonts
// ==/UserScript==
(function(){
opera.addEventListener('BeforeScript', function(e) {
var script = e.element;
if (/\.cache\.js$/.test(script.src)) {
script.text = script.text.replace(/"keypress"/g, '\\"keypress\\"');