Marti / uso - Sticky Topics

Published:

Version: 1.0.12.1eol+0882639 updated

Summary: Moves a formatted table from the main script homepage description area to the Forum Activity sidebar header

Groups:

Homepage: http://userscripts.org/scripts/show/378796

Homepage: https://openuserjs.org/scripts/Marti/uso_-_Sticky_Topics

Homepage: https://github.com/Martii/UserScripts/tree/master/src/uso/Sticky Topics

Support: http://userscripts.org/topics/190294

Copyright: 2014+, Marti Martz (http://userscripts.org/users/37004)

License: GPL-3.0-or-later; http://www.gnu.org/licenses/gpl-3.0.txt

License: CC-BY-NC-SA-4.0; https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode

screenshotAscreenshotB

| Compatibility Matrix | Overview | Usage


CHANGELOG

  • It is currently compatible with uso - installWith but you must select the option to allow updaters on scripts that use grant none. This may change over time depending on features added.

Compatibility Matrix

Mozilla Firefox Mozilla Seamonkey Apple Safari Opera Software Opera Microsoft Internet Explorer Chromium Projects ChromiumGoogle Chrome                     
Linux Greasemonkey Greasemonkey prc uso - installWith Greasemonkey Port uso - installWith Vioent monkey TamperMonkey
Macintosh Greasemonkey Greasemonkey prc uso - installWith Greasemonkey Port uso - installWith Vioent monkey TamperMonkey
Windows Greasemonkey Greasemonkey prc uso - installWith Greasemonkey Port uso - installWith Vioent monkey TamperMonkey
  • Use this compatibility matrix to determine if this script is right for your system. Find the platform on the left and find your browser on the top. Where they intersect is the compatibility.

Overview

In an effort to combat spam topics that may repeat in a script discussions I made this script to allow the ScriptWright to place a specially formatted table in their script description area and have it automatically moved into the sidebar.

There may still more that I will be adding but for now it should be mostly cross-browser compatible by using the "bottom of the barrel" JavaScript (ES4ish) for non-Mozilla browsers.

Usage

Remember to change the topicid and text content to your own topic name. You may use the full topic name but once it successfully moves it should clip according to userscripts.org (USO) standards. For possible future releases I recommend that you match the text content of your discussion topics exactly.

Simplest markup source

<table>
  <tr>
    <th>Sticky Topics</th>
    <th>Posts</th>
  </tr>
  <tr>
    <td><a href="/topics/topicid1">CHANGELOG</a></td>
    <td></td>
  </tr>
  <tr>
    <td><a href="/topics/topicid2">SUGGESTIONS</a></td>
    <td></td>
  </tr>
  <tr>
    <td><a href="/topics/topicid3">ERRATA</a></td>
    <td></td>
  </tr>
</table>
  • Here is the equivalent markdown source
Sticky Topics | Posts
----------- | -----------
[CHANGELOG](/topics/topicid1)   |
[SUGGESTIONS](/topics/topicid2) |
[ERRATA](/topics/topicid3)      |

Need a link automagicaly added to the last post if you are using uso - Monkey Barrel use this markup source

<table>
  <tr>
    <th>Sticky Topics</th>
    <th>Posts</th>
  </tr>
  <tr>
    <td><a href="/topics/topicid1">CHANGELOG</a></td>
    <td><a></a></td>
  </tr>
  <tr>
    <td><a href="/topics/topicid2">SUGGESTIONS</a></td>
    <td><a></a></td>
  </tr>
  <tr>
    <td><a href="/topics/topicid3">ERRATA</a></td>
    <td><a></a></td>
  </tr>
</table>
  • There is no known equivalent using markdown source for this type since empty anchors aren't currently possible.

If you want the table in the description itself to link to the last post and aren't sure if your visitor is using this script then use this markup source

<table>
  <tr>
    <th>Sticky Topics</th>
    <th>Posts</th>
  </tr>
  <tr>
    <td><a href="/topics/topicid1">CHANGELOG</a></td>
    <td><a href="/topics/topicid1#posts-last">&raquo;</a></td>
  </tr>
  <tr>
    <td><a href="/topics/topicid2">SUGGESTIONS</a></td>
    <td><a href="/topics/topicid2#posts-last">&raquo;</a></td>
  </tr>
  <tr>
    <td><a href="/topics/topicid3">ERRATA</a></td>
    <td><a href="/topics/topicid3#posts-last">&raquo;</a></td>
  </tr>
</table>
  • Here is the equivalent markdown source
Sticky Topics | Posts
----------- | -----------
[CHANGELOG](/topics/topicid1)   | [&raquo;](/topics/topicid1#posts-last)
[SUGGESTIONS](/topics/topicid2) | [&raquo;](/topics/topicid2#posts-last)
[ERRATA](/topics/topicid2)      | [&raquo;](/topics/topicid3#posts-last)

Rating: 0