Renren Xu1s

Renren续一秒——人人被屏蔽内容查看器

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name  Renren Xu1s
// @namespace https://malash.me/
// @author  Malash <[email protected]>
// @icon  http://a.xnimg.cn/favicon.ico
// @version 1.0.0
// @description Renren续一秒——人人被屏蔽内容查看器
// @homepageURL https://github.com/malash/renren-xu1s
// @include http://www.renren.com/*
// @grant none
// ==/UserScript==

(function ($, window) {
    $('body').append('<style>.xu1s{opacity: 0.5;color: red;font-size: 1.2em;}.xu1s:hover{opacity: 1;color: red !important;text-shadow: 0 0 10px yellow;}.xu1s:before{content:"看不了?"}.xu1s:hover:before{content:"续一秒!"}</style>');
    setInterval(function(){
        $('.share-photo img').each(function() {
            if ($(this).data('xu1s')) {
                return;
            }
            console.log('new', this);
            $(this).data('xu1s', 'xu1s');
            $($(this).parent().parent()).children('.source-desc').append('<a href="' + $(this).data('viewer').url + '" class="xu1s" target="_blank"></a>')
        });
    }, 1000);
})(jQuery, window);