.始点アンカー var title = _window.document.title .replace(//g, '>') .replace(/"/g, '"') .replace(/&/g, '&'), uri = _window.location.href.replace(/&/g, '&'); var content = _selection; if (content == "") content = title; _setClipBoard(''+content+''); .引用 var quot = _selectionSource; if (!quot) return; var title = _window.document.title .replace(//g, '>') .replace(/"/g, '"') .replace(/&/g, '&'), uri = _window.location.href.replace(/&/g, '&'), attr = ' cite="'+uri+'" title="'+title+'"', elemtype = (quot.match(/<(html:)?(address|blockquote|caption|center|dir|div|dldt|dd|fieldset|form|h[1-6]|head|hr|html|iframe|menu|noframes|noscript|ol|p|pre|table|tbody|td|tfoot|th|thead|tr|ul)/i)) ? 'blockquote' : 'q' ; var br = (elemtype == 'q') ? '' : '\n'; quot = '<'+elemtype+attr+'>'+br+quot+br+''+br; if(elemtype == 'blockquote') quot = quot + '
' + title + '
'; _setClipBoard(quot); .amzblock if(_window.location.href.indexOf("about:") == 0) return false; if(_window.location.hostname != "www.amazon.co.jp") return false; /* amazonではない */ objInputsArray = _window.document.getElementsByTagName("input"); if(objInputsArray == null) return false; /* input要素が存在しない */ objInput = objInputsArray.namedItem("tag_value"); if(objInput == null) return false; /* アフェリエイトタグが存在しない */ strValue = objInput.attributes.getNamedItem("value").value; if(strValue =='') return false; /* アフェリエイトタグが空(一応エラー対策) */ if(_window.confirm("この商品はID[" + strValue + "]によりアフェリエイトが設定されています。無効化しますか?") == true){ strNewUri = _window.location.href.replace(strValue + "/",""); strNewUri = strNewUri.replace("ref=ase_",""); _window.location.replace(strNewUri); } return true; .htnblock if(_window.location.href.indexOf("about:") == 0) return false; /* about:〜は除外 */ if(_window.location.hostname != "d.hatena.ne.jp") return false; /* はてなダイアリーのみ対象 */ var elmAs = _window.document.getElementsByTagName("a"); /* a要素の配列 */ for(var i=0; i < elmAs.length; i++){ if(elmAs[i].className == "keyword"){ /* Class名が「keyword」 */ var elmSPAN = document.createElement("span"); elmSPAN.appendChild(elmAs[i].firstChild); elmAs[i].parentNode.replaceChild(elmSPAN,elmAs[i]); i--; } }