您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
replace the css image on fetlife by the true one, allowing you to download the picture.
// ==UserScript== // @name fetlife_unfakepictures // @namespace bewam.free.fr/gm_scripts // @description replace the css image on fetlife by the true one, allowing you to download the picture. // @include https://fetlife.com/users/*/pictures/* // @version 0.2.2 // @run-at document-end // ==/UserScript== var fake = document.querySelector('.fake_img'); if (fake) { var p = fake.parentNode; var img = document.createElement('img'); var url = getComputedStyle(fake).getPropertyValue("background-image"); if( url && (m = url.match(/url\(.?(\b.*\b).?\)/)) && m.length > 1 ) { img.src = m[1]; if(img.src.length > 0) { img.height = fake.offsetHeight; img.width = fake.offsetWidth; fake.className = ''; // TODO: should be a replace() p.appendChild(img, fake); } } }