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() {
// ==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\\"');
using System.Linq;
using System.Text;
using System.Diagnostics;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
// ==UserScript==
// @name Booooooooogle
// @include http://www.google.co.jp/*
// @include http://www.google.com/*
// ==/UserScript==
(function() {
opera.addEventListener('BeforeEvent', function(e) {
if (e.event.type == 'keypress' && e.event.keyCode == 13) {
e.preventDefault();
}
// ==UserScript==
// @name jQuery - fix window height (for jQuery version 1.2.x.)
// ==/UserScript==
(function() {
function main() {
if (typeof jQuery == 'undefined') return;
if (!/^1\.2\./.test(jQuery.fn.jquery)) return;
var height_ = jQuery.fn.height;
jQuery.fn.height = function() {
if ( this[0] == window && jQuery.browser.opera && jQuery.browser.version >= 9.50)