您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
By default feedly uses own thumb generator service. This script disables it
当前为
- // ==UserScript==
- // @name Disable image resize in Feeldy
- // @description By default feedly uses own thumb generator service. This script disables it
- // @namespace zcarot
- // @match *://*.feedly.com/*
- // @version 1
- // @grant GM_addStyle
- // ==/UserScript==
- 'use strict';
- function replaceQueryParam(param, newval, search) {
- var regex = new RegExp("([?;&])" + param + "[^&;]*[;&]?");
- var query = search.replace(regex, "$1").replace(/&$/, '');
- return (query.length > 2 ? query + "&" : "?") + (newval ? param + "=" + newval : '');
- }
- var wait = function () {
- var divs = document.querySelectorAll('div.u5EntryAnnotationHolder');
- [].forEach.call(divs, function(div) {
- var preview = div.childNodes[1];
- if (!(preview.getAttribute('data-fetched'))) {
- preview.setAttribute('data-fetched', 1);
- var style = preview.currentStyle || window.getComputedStyle(preview, false);
- if (style.backgroundImage) {
- var src = /url=([^&]+)/.exec(style.backgroundImage);
- if (src && src[1]) {
- preview.style.backgroundImage = 'url(' + decodeURIComponent(src[1]) + ')';
- }
- }
- }
- });
- var imgs = document.querySelectorAll('div.content img');
- [].forEach.call(imgs, function(image) {
- if (!(image.getAttribute('data-fetched'))) {
- image.setAttribute('data-fetched', 1);
- var src = image.getAttribute('data-original');
- if (src) {
- image.src = src;
- }
- }
- });
- setTimeout(wait, 200);
- };
- wait();