Renren Xu1s

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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);