about:cache table Highlighter
by
maRk
2015-07-25 [2015/07/25 19:39:05]
FIREFOX のabout:cache (Network Cache Storage Information)テーブルで指定ドメインをハイライトするもの
-
/*
* @title about:cache table Highlighter
* @description FIREFOX のabout:cache (Network Cache Storage Information)テーブルで指定ドメインをハイライトするもの
* @license MIT License
* @javascript_url
*/
// domain regex cf. https://www.safaribooksonline.com/library/view/regular-expressions-cookbook/9781449327453/ch08s15.html
(function(){
l = window.location;
if(!/^about\:cache/.test(l)) return;
var f = Array.prototype;
var inputDomain = prompt('INPUT domain', 'example.com');
var check=/\b((?=[a-z0-9-]{1,63}\.)(xn--)?[a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,63}\b/;
if(!check.test(inputDomain)) return;
var sel = '#entries tr a[href*="' + inputDomain + '"]';
f.forEach.call(document.querySelectorAll(sel), function(e){
e.parentNode.parentNode.style.background = 'yellow';
});
})();
-
- Permalink
- このページへの個別リンクです。
- RAW
- 書かれたコードへの直接のリンクです。
- Packed
- 文字列が圧縮された書かれたコードへのリンクです。
- Userscript
- Greasemonkey 等で利用する場合の .user.js へのリンクです。
- Loader
- @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
- Metadata
- コード中にコメントで @xxx と書かれたメタデータの JSON です。