Greasy Fork is available in English.

Discuții » Cerere de creare

T411, trop d'espace perdu inutilisé

Deleted user 92966
§
Postat în: 07-01-2017

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
§
Postat în: 07-01-2017
Editat în: 08-01-2017
// ==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
§
Postat în: 07-01-2017

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
§
Postat în: 08-01-2017

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
§
Postat în: 08-01-2017

Updated the code above.

Deleted user 92966
§
Postat în: 08-01-2017

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
§
Postat în: 08-01-2017

The userscript above removes the cap entirely.

Deleted user 92966
§
Postat în: 04-06-2017

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

Postează un raspuns

Autentifică-te pentru a posta un răspuns.