您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Fixing timestamp in avatar urls on page load
// ==UserScript== // @name Facepunch avatar timestamp fix // @namespace // @description Fixing timestamp in avatar urls on page load // @version 1.0.0 // @include http://facepunch.com/* // @include https://facepunch.com/* // @include http://www.facepunch.com/* // @include https://www.facepunch.com/* // ==/UserScript== (function() { var embedMe = function() { $(function() { $('.LastPostAvatar').each(function() { var style = $(this).attr('style'); if (style == null) { return; } $(this).attr('style', style.replace(/^(background.+?url.+?image\.php?.*?dateline=)[0-9]+(.*?)$/i, '$1' + parseInt(new Date().getTime() / 1000) + '$2')); }); $('img').each(function() { var src = $(this).attr('src'); if (src == null) { return; } $(this).attr('src', src.replace(/^(.*?image\.php?.*?dateline=)[0-9]+(.*?)$/i, '$1' + parseInt(new Date().getTime() / 1000) + '$2')); }); }); }; var script = document.createElement('script'); script.setAttribute('type', 'text/javascript'); script.appendChild(document.createTextNode('('+ embedMe +')();')); (document.head || document.body || document.documentElement).appendChild(script); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址