Renren Xu1s

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

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==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);