mirror of
https://gitlab.com/octtspacc/OcttKB
synced 2025-06-06 00:29:12 +02:00
OcttKB Cross-Repo Sync (HTML to Raw)
This commit is contained in:
@ -0,0 +1,11 @@
|
||||
created: 20230124190137826
|
||||
creator: Octt
|
||||
list-after: $:/core/ui/ViewTemplate/title
|
||||
modified: 20230225182506517
|
||||
modifier: Octt
|
||||
tags: $:/tags/ViewTemplate
|
||||
title: $:/Styles/View/2-10-Breadcrumbs.xml
|
||||
|
||||
\whitespace trim
|
||||
<!-- <<%ViewBreadcrumbs>> -->
|
||||
<!-- <<i18nBreadcrumbsNamespaceLabelStrip>> -->
|
@ -0,0 +1,33 @@
|
||||
created: 20230111090705398
|
||||
creator: Octt
|
||||
modified: 20230228222918606
|
||||
modifier: Octt
|
||||
tags: $:/tags/ViewTemplate
|
||||
title: $:/Styles/View/5-10-Missing.xml
|
||||
|
||||
\whitespace trim
|
||||
|
||||
<$list filter="[all[current]!is[system]is[missing]]" variable=~>
|
||||
<!-- <$list filter="[all[current]is[missing]]" variable=~> -->
|
||||
<!--<$button>
|
||||
Great features todo!-->
|
||||
<!--
|
||||
<$action-setfield object-type="todo"/>
|
||||
Make Todo
|
||||
--->
|
||||
<!--</$button>-->
|
||||
|
||||
<$macrocall $name="^WikipediaFrame" Article=<<currentTiddler>>/>
|
||||
|
||||
<!--<br><br>-->
|
||||
|
||||
<details class="tw-details">
|
||||
<summary>
|
||||
Directory Listing
|
||||
</summary>
|
||||
<!-- <$macrocall $name="tree_" prefix=<<__currentTiddler__>>/> -->
|
||||
<!-- <$macrocall $name="tree_" prefix={{{[<currentTiddler>append[/]]}}}/> -->
|
||||
<<DirTreeList>>
|
||||
</details>
|
||||
|
||||
</$list>
|
@ -0,0 +1,10 @@
|
||||
created: 20230215222923704
|
||||
creator: Octt
|
||||
modified: 20230215230026688
|
||||
modifier: Octt
|
||||
tags: $:/tags/ViewTemplate
|
||||
title: $:/Styles/View/9-25-Footnotes.xml
|
||||
|
||||
<$list filter="[all[current]!has[draft.of]]">
|
||||
<<DetailsFootnotes title:"Footnotes">>
|
||||
</$list>
|
@ -0,0 +1,13 @@
|
||||
created: 20230111080904175
|
||||
creator: Octt
|
||||
modified: 20230125115456476
|
||||
modifier: Octt
|
||||
tags: $:/tags/ViewTemplate
|
||||
title: $:/Styles/View/9-50-Backlinks.xml
|
||||
|
||||
<$list filter="[all[current]backlinks[]limit[1]has[title]]-[prefix[$:/temp/]]" variable=ignore>
|
||||
<div class="Backlinks-Div tc-subtitle">
|
||||
<hr>
|
||||
See also: <$list filter="[!is[system]all[current]backlinks[]sort[title]] -[is[current]]-[prefix[$:/temp/]]"><$link /><span class="Separator-Right"> | </span></$list>
|
||||
</div>
|
||||
</$list>
|
34
Wiki-OcttKB/tiddlers/System/Styles/View/_9-99-Hacks.tid
Normal file
34
Wiki-OcttKB/tiddlers/System/Styles/View/_9-99-Hacks.tid
Normal file
@ -0,0 +1,34 @@
|
||||
created: 20230124112022156
|
||||
creator: Octt
|
||||
modified: 20230429202157475
|
||||
modifier: Octt
|
||||
tags: $:/tags/ViewTemplate
|
||||
title: $:/Styles/View/9-99-Hacks
|
||||
|
||||
\define AiLinks(Enabled:1)
|
||||
\whitespace trim
|
||||
<<script script="
|
||||
try {
|
||||
|
||||
if ('$(Enabled)$' == 1) {
|
||||
var Query = decodeURIComponent('Please summarize the following article into concise key bullet points: ${URL}. Write the points as objective, generalized declarations that stand by themselves. Do not write them as to explain what the author thinks subjectively. Do not leave any point as unclear: each point must not lead the reader to asking any %22why%22; questions. Avoid boilerplate and repetitions.');
|
||||
var Title = `$(currentTiddler)$`.replaceAll(`'`, ''');
|
||||
var Select = `.tc-tiddler-frame[data-tiddler-title='${Title}']`;
|
||||
var Tiddlers = document.querySelectorAll(Select);
|
||||
Tiddlers.forEach(function(El){
|
||||
El.querySelectorAll('a.tc-tiddlylink-external').forEach(function(Link){
|
||||
var AiLink = document.createElement('span');
|
||||
AiLink.className = 'AiLink';
|
||||
AiLink.innerHTML = `<sup>[<a rel='noopener noreferrer' target='_blank' href='https://www.bing.com/search?q=${encodeURIComponent(Query.replace('${URL}', Link.href))}'>AI</a>]</sup>`;
|
||||
Link.after(AiLink);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
} catch(e) { ErrAtLine(e); };
|
||||
">>
|
||||
\end
|
||||
|
||||
<$set name=Enabled value={{$:/OcttKB/Config/AiLinks.ui!!Enabled}}>
|
||||
<<AiLinks>>
|
||||
</$set>
|
Reference in New Issue
Block a user