Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- javascript:
- /*
- whotwi script
- todo: wrap in turbolinks; detect changes to not break the page again
- */
- $('.media_list li').each(
- (i, li) => {
- /*
- make image date bottom bar point to nitter tweet
- */
- var tw_url = li.firstElementChild.href.replace('twitter.com', 'nitter.net');
- $(li).find('.date').html(
- `<a target="_blank" style="color: orange" href="${tw_url}">${$(li).find('.date').text()}</a>`
- );
- /*
- make image links to open original images
- */
- li.firstElementChild.href = li.querySelector('img').src + '?name=orig';
- }
- );
- /*
- replace sidebar users to galleries
- */
- $('.sidebar_column:contains("People often in conversation") li a').each(
- (i, a) => {
- a.href = `${location.origin}/${a.href.split('/').pop()}/tweets/media`;
- a.target = '_blank';
- }
- );
- $('#main.container').css('background-color', '#dcf5f4');
Advertisement
Add Comment
Please, Sign In to add comment