// ==UserScript==
// @name ADS changeset comment search
-// @version 0.3
+// @version 0.4
// @description Places a searchbox somewhere to search commit messages
// @author Tobias Sachs
// @match https://ads/*
// @downloadURL https://src.twobees.de/?p=tampermonkeyscripts.git;a=blob_plain;f=AzureDevOpsChangesetCommentSearch.js;hb=HEAD
// ==/UserScript==
+// 0.4: - improve position of search box
// 0.3: - fix abort search
// - filter reuslts by committers name
// - no need for an observer
let searchTerm = "";
GM_addStyle(`#ts_cs_search {
- display: block;
- background: white;
- position: absolute;
- left: 450px;
- top: 0px;
- height: auto;
- z-index: 9999;
+ position: absolute;
+ left: 50%;
+ top: 0px;
+ height: auto;
+ z-index: 9999;
+ transform: translateX(-50%);
}`);
GM_addStyle(`.ts_match {
background: orange;
console.debug("adding searchbox");
let html = `<div id="ts_cs_search">
- <input id="ts_searchBox" width="120" placeholder="searchstring [von:Name]" />
+ <input id="ts_searchBox" placeholder="searchstring [von:Name]" />
<span id="ts_searchStats"></span>
<div id="ts_searchResults"></div>
</div>`;