340
回編集
(localStorage から実行) |
|||
1行目: | 1行目: | ||
/* <syntaxhighlight lang=js line start=1> */ | /* <syntaxhighlight lang=js line start=1> */ | ||
/* User:Koikm/common.js */ | /* User:Koikm/common.js */ | ||
mw.loader.enqueue(['mediawiki.page.ready'], function() { | |||
"use strict"; | |||
/** | |||
* localStorage から実行 | |||
* | |||
* Type in the console: | |||
* localStorage.setItem('__console__.script', String(function() { | |||
* (function(){ "use strict"; | |||
* // some codes | |||
* })(); | |||
* }).replace(/^function ?\(\) ?{\n/, '').replace(/}$/, '')); | |||
*/ | |||
eval(localStorage.getItem('__console__.script')); | |||
}); | |||
/* </syntaxhighlight> */ | /* </syntaxhighlight> */ |
回編集