您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Download profile pic from vsco.co
当前为
// ==UserScript== // @name download profile pic - vsco.co // @namespace Violentmonkey Scripts // @match *://vsco.co/* // @grant none // @version 1.2.6 // @author Edgeburn Media // @description Download profile pic from vsco.co // @license MIT // ==/UserScript== // get an array of all div elements var divs = document.getElementsByTagName("div"); // loop through the array for (var i = 0; i < divs.length; i++) { // get the current div var div = divs[i]; // check if the class of the div contains "Avatar" if (div.className.indexOf("ezmwuux1") != -1) { console.log(div.innerHTML); // get the first child of the div var img = div.firstChild; // get the src of the image var src = img.src; // create a button that will download the image var button = document.createElement("button"); // set the text of the button button.innerHTML = "\u2193 Download Profile Pic"; button.classList.add("nav__link"); // set the onclick attribute of the button to a function button.onclick = function () { // store the src in a variable let u = src; // replace the size=120 in the url with size=960 u = u.replace("size=120", "size=960"); // open u in a new tab window.open(u); }; document .querySelector(".ezmwuux1") .addEventListener("click", function () { let u = document.querySelector(".ezmwuux1").firstChild.src; u = u.replace("size=120", "size=960"); window.open(u); }); // append the button to the div if (!document.querySelector(".touch")) { document.querySelector(".nav__logo-items").appendChild(button); } button.style.cssText = "width:200px;height:50px;background-colour:green;"; if (document.querySelector(".touch")) { button.style.cssText += "position:absolute;top:0;right:0;"; } } }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址