您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
把微博相册大图页上方导航栏的链接,全部替换成大图链接(原为详细页地址)
当前为
// ==UserScript== // @name Weibo album新浪微博相册大图链接修改 // @namespace http://weibo.com/unluckyninja/ // @version 0.1 // @description 把微博相册大图页上方导航栏的链接,全部替换成大图链接(原为详细页地址) // @author UnluckyNinja // @match http://photo.weibo.com/*/photos/large/* // @require http://code.jquery.com/jquery-3.1.1.min.js // @grant none // ==/UserScript== (function() { 'use strict'; $(document).on('click', '#slider', function(){ $('#slider a[href]').each(function(i){ var url = $(this).attr('href'); url = url.replace('detail', 'large'); $(this).attr('href', url); }); }); })();