Skip to content

Instantly share code, notes, and snippets.

<h2>target="_blank"なし</h2>
<a href="javascript:alert(document.domain)">なし(javascript:)</a>
<a href="data:text/html,<script>alert(document.domain)</script>">>なし(data:)</a>
<br/>
<h2>target="_blank"あり</h2>
<a href="javascript:alert(document.domain)" target="_blank">あり(javascript:)</a>
<a href="data:text/html,<script>alert(document.domain)</script>" target="_blank">あり(data:)</a>
<h2>target="test"</h2>
<a href="javascript:alert(document.domain)" target="test">あり(javascript:)</a>
<a href="data:text/html,<script>alert(document.domain)</script>" target="test">あり(data:)</a>
function peco_select_ghq
set selected_repository (ghq list -p | peco --query "$LBUFFER")
if [ -n "$selected_repository" ]
cd $selected_repository
echo " $selected_repository "
commandline -f repaint
end
end
function peco_select_ghq_online
using MicroBatchFramework;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ExplorerUtils
{
class Program
status key command
Composition Backspace Backspace
Conversion Backspace Cancel
Precomposition Backspace Revert
Composition Ctrl a MoveCursorToBeginning
Conversion Ctrl a SegmentFocusFirst
Composition Ctrl Backspace Backspace
Conversion Ctrl Backspace Cancel
Precomposition Ctrl Backspace Undo
Composition Ctrl d MoveCursorRight
@KageShiron
KageShiron / css.kwd
Created December 25, 2018 06:30
サクラエディタ強調キーワード
// 3文字以上のみを抽出
-moz-appearance
-moz-binding
-moz-border-bottom-colors
-moz-border-left-colors
-moz-border-right-colors
-moz-border-top-colors
-moz-context-properties
-moz-float-edge
@echo on
: ---- arguments ---- :
: "Win32" or "x64"
set PLATFORM=%1
echo PLATFORM=%PLATFORM%
: "Debug" or "Release"
set CONFIGURATION=%2
echo CONFIGURATION=%CONFIGURATION%
@KageShiron
KageShiron / find-tools.bat
Created November 29, 2018 15:10
find-tools.batの編集案
:: ビルドツールのパスを見つける
::
:: ===7z.exeのパスを探索する手順===
:: 1. CMD_7Zがセットされていれば利用する
:: 2. パスが通っていればそれを使う
:: 3. デフォルトのインストールパスで見つかればそれを使う
:: 4. 1~3で見つからなければCMD_7Zを削除する
@echo off