User talk:Learn more/Tampermonkey

From ReactOS Wiki
< User talk:Learn more
Revision as of 16:35, 7 September 2017 by Learn more (talk | contribs) (Learn more moved page User talk:Learn more to User talk:Learn more/Tampermonkey)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Suggestion: add CSS "height: auto" to Patchbot links script

The links don't show for me on Firefox because height=42 & overflow=hidden, thus I suggest adding "height auto" which can be done like this:

        $(this).parent().parent().css("height", "auto");

AddLinks only works on Your dashboard

You're using an element id which ends up being different on different people's JIRA dashboards, thus this won't work as intended (or in some cases, at all) on other people's dashboards.

I reworked it a bit to use class instead of id, make it fit in a bit better stylistically, and add the links on multiple instances of the quick links dashboard item (just in case).

(function() {
    'use strict';
    var title = "More";
    var newquicklinks = [
        '<a href="//" target="_blank" title="View automatic regression test data">Testman</a>',
        '<a href="//" target="_blank" title="View recent continuous integration status results">Buildbot</a>',
        '<a href="//" target="_blank" title="View or edit the wiki">Wiki</a>'
    var quicklinksdashboarditems = document.getElementsByClassName("quicklinks-dashboard-item");
    var i;
    for (i=0; i < quicklinksdashboarditems.length; i++) {
        quicklinksdashboarditems[i].children[1].children[1].style = "font-stretch: condensed";
        quicklinksdashboarditems[i].insertAdjacentHTML('beforeend', '<ul class="quicklinks-links-list"><h6 class="list-label">' + title + '</h6><li>' + newquicklinks.join('</li><li>') + '</li></ul>');

Due to this rewrite, the overflow becomes a problem in chrome as well. Learn more (talk) 14:14, 27 April 2017 (UTC)
It took me a while to be able to reproduce your issue, as I'm currently using a wider screen, but I think you mean that on skinnier screens my third column gets bumped into the 'scroll to see this' zone.
This is caused by the "My Unresolved Reported Issues" item being SO LONG, so I added a hacky little workaround to condense the text a bit. A better option (e.g. shorter wording) would be preferred.
--Justincase (talk) 22:26, 18 May 2017 (UTC)