Skip to content

Instantly share code, notes, and snippets.

View yume-chan's full-sized avatar
⌨️
Generating bugs...

Simon Chan yume-chan

⌨️
Generating bugs...
View GitHub Profile
// ==UserScript==
// @name AHUB
// @author simon
// @desc auto hide your url-bar
// @compatibility Fx4+
// @include chrome://browser/content/browser.xul
// ==/UserScript==
var navbar = document.getElementById('nav-bar');
navbar.style.position = 'fixed';
// ==UserScript==
// @id pixivSharePage
// @name Share Pixiv to Google+ for Page
// @version 0.1.177.9
// @namespace simon
// @author Simon Chan
// @description Share pictures from Pixiv to Google+ by just one-click.(for 见图思萌)
// @include http://www.pixiv.net/member_illust.php?*
// @run-at document-end
// ==/UserScript==
@yume-chan
yume-chan / copyDownloadLink.uc.js
Created April 27, 2013 11:38
Copy Download link
// ==UserScript==
// @id copyBookmark
// @name Enhanced Bookmark Copy
// @version 0.9.2
// @namespace simon
// @author Simon Chan
// @description Let you copy title or both title and url of bookmark(s) easier.
// @include chrome://browser/content/browser.xul
// @include chrome://browser/content/places/places.xul
// @include chrome://browser/content/bookmarks/bookmarksPanel.xul
#include <tchar.h>
#include <iostream>
#include <list>
#include <string>
#include <sstream>
#include <Windows.h>
using namespace std;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SudokuSolver
{
class Program
{
゚ω゚ノ= /‘m´)ノ ~┻━┻ //*´∇‘*/ ['_']; o=(゚ー゚) =_=3; c=(゚Θ゚) =(゚ー゚)-(゚ー゚); (゚Д゚) =(゚Θ゚)= (o^_^o)/ (o^_^o);(゚Д゚)={゚Θ゚: '_' ,゚ω゚ノ : ((゚ω゚ノ==3) +'_') [゚Θ゚] ,゚ー゚ノ :(゚ω゚ノ+ '_')[o^_^o -(゚Θ゚)] ,゚Д゚ノ:((゚ー゚==3) +'_')[゚ー゚] }; (゚Д゚) [゚Θ゚] =((゚ω゚ノ==3) +'_') [c^_^o];(゚Д゚) ['c'] = ((゚Д゚)+'_') [ (゚ー゚)+(゚ー゚)-(゚Θ゚) ];(゚Д゚) ['o'] = ((゚Д゚)+'_') [゚Θ゚];(゚o゚)=(゚Д゚) ['c']+(゚Д゚) ['o']+(゚ω゚ノ +'_')[゚Θ゚]+ ((゚ω゚ノ==3) +'_') [゚ー゚] + ((゚Д゚) +'_') [(゚ー゚)+(゚ー゚)]+ ((゚ー゚==3) +'_') [゚Θ゚]+((゚ー゚==3) +'_') [(゚ー゚) - (゚Θ゚)]+(゚Д゚) ['c']+((゚Д゚)+'_') [(゚ー゚)+(゚ー゚)]+ (゚Д゚) ['o']+((゚ー゚==3) +'_') [゚Θ゚];(゚Д゚) ['_'] =(o^_^o) [゚o゚] [゚o゚];(゚ε゚)=((゚ー゚==3) +'_') [゚Θ゚]+ (゚Д゚) .゚Д゚ノ+((゚Д゚)+'_') [(゚ー゚) + (゚ー゚)]+((゚ー゚==3) +'_') [o^_^o -゚Θ゚]+((゚ー゚==3) +'_') [゚Θ゚]+ (゚ω゚ノ +'_') [゚Θ゚]; (゚ー゚)+=(゚Θ゚); (゚Д゚)[゚ε゚]='\\'; (゚Д゚).゚Θ゚ノ=(゚Д゚+ ゚ー゚)[o^_^o -(゚Θ゚)];(o゚ー゚o)=(゚ω゚ノ +'_')[c^_^o];(゚Д゚) [゚o゚]='\"';(゚Д゚) ['_'] ( (゚Д゚) ['_'] (゚ε゚+(゚Д゚)[゚o゚]+ (゚Д゚)[゚ε゚]+(゚Θ゚)+ (゚ー゚)+ (゚Θ゚)+ (゚Д゚)[゚ε゚]+(゚Θ゚)+ ((゚ー゚) + (゚Θ゚))+ (゚ー゚)+ (゚Д゚)[゚ε゚]+(゚Θ゚)+ (゚ー゚)+ ((゚ー゚) + (゚Θ゚))+ (゚Д゚)[゚ε゚]+(゚Θ゚)+ ((o^_^
// ==UserScript==
// @id tiebaRecentImages
// @name Tieba Recent Images
// @version 1.0
// @namespace simon
// @author Simon Chan
// @description Show recent used images when hover on Emoji button.
// @include http://tieba.baidu.com/*
// @run-at document-end
// @grant GM_getValue
// ==UserScript==
// @id downloadEnhancer
// @name Download Dialog Enhancer
// @version 1.6.8
// @namespace simon
// @author Simon Chan
// @description Add copying link, saving as, encoding conversion and renaming functions to download dialog.
// @include chrome://browser/content/browser.xul
// @include chrome://mozapps/content/downloads/unknownContentType.xul
// @run-at document-end
using Microsoft.Graphics.Canvas;
using Microsoft.Graphics.Canvas.Brushes;
using Microsoft.Graphics.Canvas.Effects;
using Microsoft.Graphics.Canvas.Text;
using Microsoft.Graphics.Canvas.UI;
using Microsoft.Graphics.Canvas.UI.Xaml;
using System;
using System.Collections.Generic;
using Windows.Foundation;
using Windows.Graphics.Display;