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
Hello, gist |
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 移動させない | |
// @namespace lv7777 | |
// @description せっかくMdNで翻訳したのにミスって移動してしまう悲しみを君はもう背負わなくていいんだよ | |
// @include https://developer.mozilla.org/ja/*$edit | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
window.onbeforeunload = function(event){ | |
event = event || window.event; |
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
chrome.runtime.onMessage.addListener(notify); | |
console.log("background") | |
function notify(message) { | |
console.log("background script received message"); | |
/* chrome.notifications.create({ | |
"type": "basic", | |
"iconUrl": chrome.extension.getURL("link.png"), | |
"title": "You clicked a link!", | |
"message": message.url | |
}); |
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
window.addEventListener("click", notifyExtension); | |
console.log("init"); | |
function notifyExtension(e) { | |
console.log("content script sending message"); | |
if (e.target.tagName != "A") { | |
return; | |
} | |
chrome.runtime.sendMessage({"url": e.target.href}); | |
} |
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 保存 | |
// @namespace lv7777 | |
// @description document.designmode="on"のhtmlを保存する(予定 | |
// @include https://* | |
// @include http://* | |
// @version 1 | |
// @grant none | |
// @require https://cdnjs.cloudflare.com/ajax/libs/dexie/1.2.0/Dexie.js | |
// ==/UserScript== |
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
/* | |
manifest.json | |
MSGの後には好きな名前を入れる。 | |
*/ | |
"name": "__MSG_extensionName__", | |
"description": "__MSG_extensionDescription__", | |
/* |
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
var express = require('express'); | |
var app = express(); | |
app.set('port', (process.env.PORT || 5000)); | |
app.use(express.static(__dirname)); | |
// // views is directory for all template files | |
app.set('views', __dirname); | |
// app.set('view engine', 'ejs'); |
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
Sweet tooth..., | |
Political... | |
Circumustance | |
Menace | |
Absured | |
Bulb | |
Clumsy | |
Novel |
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
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=shift_jis"> | |
<title>国家試験ランダム出題</title> | |
<script language="javascript"> | |
<!-- | |
//クッキーから値を受け取る。(key:項目名) *項目が無い場合、ヌルストリングを返す。 | |
function readcookie(key) { | |
tmp=document.cookie+";"; |
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
/* | |
* この画面は JavaScript スクラッチパッドです。 | |
* | |
* JavaScript を入力して、右クリックまたは [実行] メニューを選択してください。 | |
* 1. 実行: 選択したコードを実行します。(Ctrl+R) | |
* 2. 調査: 実行結果をオブジェクトインスペクタで表示します。(Ctrl+I) | |
* 3. 表示: 選択したコードの後ろに、実行結果をコメント形式で挿入します。(Ctrl+L) | |
*/ | |
var a=3; | |
function fc(){ |
OlderNewer