// ==UserScript== // @name Using KeePass with Opera // @version 1.0 // @date 2009-03-01 // @author Jean-François Im // http://jean-francois.im/2009/03/using-keepass-with-opera.html // @include http://* // @include https://* // ==/UserScript== window.addEventListener('DOMContentLoaded', function(){ var protoDelimIndex = document.URL.indexOf("://"); if(protoDelimIndex != -1) { var domainDelimIndex = document.URL.indexOf("/", protoDelimIndex + 4); if(domainDelimIndex != -1) { document.title=document.title + ' [' + document.URL.slice(0, domainDelimIndex + 1) + ']'; } } }, false); |