OnlyFans Full-Sized Profile Picture & Header

View full-sized OnlyFans profile picture and header

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         OnlyFans Full-Sized Profile Picture & Header
// @namespace    https://tesomayn.com/
// @version      1.0.0
// @description  View full-sized OnlyFans profile picture and header
// @icon         https://www.google.com/s2/favicons?domain=onlyfans.com
// @author       TesoMayn
// @match        https://onlyfans.com/*
// @grant        none
// @license      MIT, https://www.mit.edu/~amini/LICENSE.md
// @run-at       document-idle
// @copyright    2021, TesoMayn (https://TesoMayn.com)
// ==/UserScript==

(function() {
    'use strict';

    document.addEventListener('click', function (event) {
        if (event.target.matches('.g-avatar > img')) {
            window.open(event.target.src.replace(/thumbs\/[a-z0-9]+\//, ''), '_blank');
        } else if (event.target.matches('.b-profile__header__cover-img')) {
            window.open(event.target.src.replace(/thumbs\/[a-z0-9]+\//, ''), '_blank');
        } else {
            return false;
        }
    }, false);

})();