You can achieve this styling with just a small change in the way you enter your links, without modifying any TWCore javascript code.
First, wherever you want to embed a weighted link instead of writing just
TiddlerTitle or [[Tiddler Title]]
you write:
{{TiddlerTitle||wlink}} or {{Tiddler Title||wlink}}
What it does is to render the indicated tiddler title, using the content from "wlink" (short for "weighted link").
Then, create the "wlink" tiddler, containing this text:
<$link>
<span style={{{ [[background:rgba(255,0,0,calc(]addsuffix{!!weight}addsuffix[ / 100));]] }}}>
<<currentTiddler>>
</span>
</$link>
Notes:
* Within this "template" tiddler, the currentTiddler value is the TiddlerTitle you specified in the transclusion syntax
* The $link widget outputs a link (using the currentTiddler value as its default target)
* The span inside the $link constructs the style using an "inline filter" (the {{{ [...] }}} syntax)
* This inline filter starts with literal text: "background:rgba(255,0,0,calc(", then appends a value retrieved from the "weight" field of the currentTiddler, and then adds the remaining literal text: "/ 100));"
* Thus, the resulting style is: "background:rgba(255,0,0,calc(nnn / 100));", where "nnn" is the value from the weight field.
* Finally, inside the span, the actual tiddler title is displayed
enjoy,
-e