コンテンツにスキップ

利用者:610CH-405/common.js

お知らせ: 保存した後、ブラウザのキャッシュをクリアしてページを再読み込みする必要があります。

多くの WindowsLinux のブラウザ

  • Ctrl を押しながら F5 を押す。

Mac における Safari

  • Shift を押しながら、更新ボタン をクリックする。

Mac における ChromeFirefox

  • Cmd Shift を押しながら R を押す。

詳細についてはWikipedia:キャッシュを消すをご覧ください。

mw.loader.load('//ru.wikipedia.org/w/index.php?title=MediaWiki:Gadget-markblocked.js&action=raw&ctype=text/javascript')

mw.loader.load("https://en-two.iwiki.icu/w/index.php?title=User:PerfektesChaos/js/lintHint/r.js&action=raw&bcache=1&maxage=86400&ctype=text/javascript" );

// importScript('User:なびお/jastyle.js');

$(document).ready(function(){
  test610ch();
});

function test610ch()
{
 
  // 挿入ポイントのリストを取得
  var test = document.getElementsByClassName('mw-search-result-heading');
  // 検索結果のリンクのリストを取得
  var foo = document.getElementsByClassName('mw-search-results');


for (var i=0, len=test.length; i<len; i=i+1) {

var testTarget = document.getElementsByClassName('mw-search-result-heading')[i];
 
  var aNode = testTarget.getElementsByTagName('a');

  var aaaaa = aNode[0];
  var href = aaaaa.getAttribute("href");
  var href = href.substring(6)


  aEdit = document.createElement('a'); aEdit.appendChild(document.createTextNode('編集'));
  aEdit.setAttribute('href', 'https://ja-two.iwiki.icu/w/index.php?title=' + href + '&action=edit'); //リンクするURLを作成
  aEdit.setAttribute('title', '編集'); 

  aHistory = document.createElement('a');
 
 aHistory.appendChild(document.createTextNode('履歴'));
  aHistory.setAttribute('href', 'https://ja-two.iwiki.icu/w/index.php?title=' + href + '&action=history');
  aHistory.setAttribute('title', '履歴'); 


  aLog = document.createElement('a');
 
 aLog.appendChild(document.createTextNode('ログ'));
  aLog.setAttribute('href', 'https://ja-two.iwiki.icu/w/index.php?title=%E7%89%B9%E5%88%A5:%E3%83%AD%E3%82%B0&page=' + href);
  aHistory.setAttribute('title', 'ログ'); 


  aFrom = document.createElement('a');
 
 aFrom.appendChild(document.createTextNode('リンク元'));
  aFrom.setAttribute('href', 'https://ja-two.iwiki.icu/wiki/%E7%89%B9%E5%88%A5:%E3%83%AA%E3%83%B3%E3%82%AF%E5%85%83/' + href);
  aFrom.setAttribute('title', 'リンク元'); 

  text1 = document.createTextNode('(');
  text2 = document.createTextNode(' / ');
  text3 = document.createTextNode(' / ');
  text4 = document.createTextNode(' / ');
  text5 = document.createTextNode(')');

  li = document.createElement('div');
  li.appendChild(text1);
  li.appendChild(aEdit);
  li.appendChild(text2);
  li.appendChild(aHistory);
  li.appendChild(text3);
  li.appendChild(aLog);
  li.appendChild(text4);
  li.appendChild(aFrom);
  li.appendChild(text5);

  li.setAttribute('style', 'border-bottom:1px solid #fad67d; background-color:#faf6ed; padding:0.4em 1em 0.3em 1em;')

  testTarget.parentNode.insertBefore(li, testTarget.nextSibling);
}

}