Discussions » Creation Requests

T411, trop d'espace perdu inutilisé

Deleted user 92966
§
Posted: 2017.01.07.

T411, trop d'espace perdu inutilisé

bonsoir,
je dispose d'un écran FHD
celui me permets d'avoir des cellules plus large
mais sur le site T411, celle ci sont encore étroite
https://www.t411.li/torrents/search/

serait il possible d'avoir un script qui permet d'avoir les nom plus large ou à largeyr variable ( via un chiffre )

http://nsa37.casimages.com/img/2017/01/07/170107054045830924.png

merci

woxxomMod
§
Posted: 2017.01.07.
Edited: 2017.01.08.
// ==UserScript==
// @name     T411 expand titles
// @match    https://www.t411.li/torrents/search/*
// ==/UserScript==

[].forEach.call(document.querySelectorAll('.results td > a[title]'), function(a) {
    if (a.textContent.indexOf(a.title) !== 0) {
        a.childNodes[0].nodeValue = a.title + ' ';
    }
});

Advanced version without delay:

// ==UserScript==
// @name     T411 expand titles
// @match    https://www.t411.li/torrents/search/*
// @run-at   document-start
// @require  https://greasyfork.org/scripts/12228/code/setMutationHandler.js
// ==/UserScript==

setMutationHandler(
    document,
    '.results td > a[title]',
    nodes => {
        nodes.filter(a => a.textContent.indexOf(a.title) !== 0)
             .forEach(a => a.childNodes[0].nodeValue = a.title + ' ');
    }
);
Deleted user 92966
§
Posted: 2017.01.07.

tks
Could you compile everything in a script ready to click for those who do not know how to install the script ?

Deleted user 92966
§
Posted: 2017.01.08.

sorry
I have misunderstood
I wanted to lengthen the maximum number of characters visible

http://nsa38.casimages.com/img/2017/01/08/170108120545706921.png

woxxomMod
§
Posted: 2017.01.08.

Updated the code above.

Deleted user 92966
§
Posted: 2017.01.08.

Sorry, I'm too bad in script
But I just count, there is a cap in the number of characters visible
This ceiling is 50
In fact, it is this ceiling that must be blown up to go through ex to 75 or 100 characters

woxxomMod
§
Posted: 2017.01.08.

The userscript above removes the cap entirely.

Deleted user 92966
§
Posted: 2017.06.04.

Hello
This does not seem to work on all pages
See not working as I wish any short

In the page (among others)
https://www.t411.al/top/today

Currently, the titles are shortened
These are blocked at 50 characters (to be checked) even if they do more



Is it possible to lift this restriction or to be able to choose the restriction you want?

thank you

Post reply

Sign in to post a reply.