Skip to content

Commit fb306cd

Browse files
authored
Merge pull request #399 from LoganAC34/removeonedrivestatuscolumn
Added "Remove OneDrive Status Column" add-on
2 parents f20c571 + ed48990 commit fb306cd

2 files changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<TablacusExplorer>
3+
<General>
4+
<Version>1.00</Version>
5+
<MinVersion>2025.11.13</MinVersion>
6+
<pubDate>Friday, 19 Dec 2025 00:00:00 GMT</pubDate>
7+
<Level>2</Level>
8+
<Creator>LoganAC34</Creator>
9+
<URL>https://tablacus.github.io/TablacusExplorerAddons/</URL>
10+
<License>MIT License</License>
11+
</General>
12+
<en>
13+
<Name>Remove OneDrive Status Column</Name>
14+
<Description>Remove OneDrive's "Status" column from all views automatically.</Description>
15+
</en>
16+
<ja>
17+
<Name>OneDrive ステータス列を削除する</Name>
18+
<Description>OneDrive の「ステータス」列をすべてのビューから自動的に削除します。</Description>
19+
</ja>
20+
</TablacusExplorer>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
if (window.Addon == 1) {
2+
Addons.RemoveStatusColumn = {
3+
Status: '"' + await api.PSGetDisplayName("System.StorageProviderUIStatus") + '"',
4+
5+
Exec: async function (Ctrl) {
6+
const s = await Ctrl.Columns;
7+
if (s.indexOf(Addons.RemoveStatusColumn.Status) >= 0) {
8+
var re = new RegExp(Addons.RemoveStatusColumn.Status + " \\d+", "g");
9+
Ctrl.Columns = s.replace(re, "");
10+
}
11+
}
12+
};
13+
14+
if (Addons.RemoveStatusColumn.Status != '""') {
15+
AddEvent("NavigateComplete", Addons.RemoveStatusColumn.Exec);
16+
AddEvent("ColumnsChanged", Addons.RemoveStatusColumn.Exec);
17+
}
18+
}

0 commit comments

Comments
 (0)