您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds fully formatted output containers
当前为
// ==UserScript== // @name imgur output formatter // @namespace surrealmoviez.info // @description Adds fully formatted output containers // @include http://imgur.com/* // @include http://www.imgur.com/* // @include https://imgur.com/* // @include https://www.imgur.com/* // @version 1.0.0 // @grant none // ==/UserScript== function extractUrls() { var imgUrls = []; $('.post-images .post-image-share-links').each(function (i, v) { imgUrls.push($(v).find('.clipboard-wrapper:eq(0) > .share-link').attr('value')); }); return imgUrls; } $(document).ready(function () { var imgUrls = extractUrls(); var decoratedLinks = '<center><img src="' + imgUrls.join('">\n\n<img src="') + '"></center>'; var plainLinks = imgUrls.join("\n"); var preformattedLinksPanel = '<div class="new-panel post-options-panel">' + '<h2 class="new-panel-header">Preformatted Links</h2>' + '<div class="post-options">' + '<textarea id="preformatted-links-decorated" style="height: 100px; width: 100%;" onclick="this.select();" title="Click to select">' + decoratedLinks + '</textarea>' + '<textarea id="preformatted-links-plain" style="height: 100px; width: 100%;" onclick="this.select();" title="Click to select">' + plainLinks + '</textarea>' + '</div></div>'; $('#right-content').prepend(preformattedLinksPanel); });