Thread:Fngplg/@comment-24142930-20180205181742

Hi, it's me again :P, hope I'm not bothering you, but I was wondering if you could help me with 2 things to do with LinkPreview - the max text length and disable hover previews on Tab view.

I have no experience with JavaScript whatsoever, so I took a look at the ru borderlands common.js and copied this code into my personal common.js page and tried to add tlen: 500, and iparents : ['.tabs [data-tab^=flytabs]'],

window.pPreview = $.extend(true, window.pPreview, {   defimage: 'https://vignette.wikia.nocookie.net/borderlands/images/0/05/Ajax.gif/revision/latest?cb=20170626182120&path-prefix=ru',    noimage: 'https://vignette.wikia.nocookie.net/borderlands/images/f/f5/%D0%97%D0%B0%D0%B3%D0%BB%D1%83%D1%88%D0%BA%D0%B0.png/revision/latest/scale-to-width-down/350?cb=20160122074659&path-prefix=ru',    tlen: 500,    RegExp: {        iimages: [new RegExp('^([Ff]ile:|[Фф]айл:)?Indef\\.png$')],        ipages: [new RegExp('.*?Дерево[_ ]навыков.*')],        ilinks: [new RegExp('.*?Дерево[_ ]навыков.*')],        iparents : ['.tabs [data-tab^=flytabs]'],    }, });

I assume I must have got the code completely wrong because I haven't noticed any changes at all. I would be grateful for any help. Thank you. 