🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

📂 缓存分发状态(共享加速已生效)
🕒 页面同步时间:2026/01/21 15:21:12
🔄 下次更新时间:2026/01/21 16:21:12
手动刷新缓存

Dev_Multi_Open

Open all selected deviations at once!

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

// ==UserScript==
// @name           Dev_Multi_Open
// @description    Open all selected deviations at once!
// @namespace	   dev_multi_open_but
// @match			*://*.deviantart.com/notifications/*
// @version        1.30
// @contributor    Dediggefedde
// @grant			none
// ==/UserScript==


function Multi_Open_injecter() {

	// var $=unsafeWindow.jQuery,holder,query,offset,fPage,pPage,lPage;
	var akturls = [];
	var container;
	var selected = $();

	setInterval(start, 500);
	setInterval(pruf, 500);
	function start() {
		if($("div.mcbox").length==0)return;
		container = $(".f.td-sr").filter(function () {
				if ($(this).find(".dev_multiopen_but").length == 0)
					return true;
			});
		// console.log(container.length);
		if (container.length > 0) {
			container.css("width", "auto").append("<a href=''  class='gmbutton disabledbutton dev_multiopen_but' onclick='return false;'>Open 0</a>");
			container.find(".dev_multiopen_but").click(function () {
				selected.each(function () {
					open($(this).attr("href"));
					$(".mcbox-sel a[href='']:not(.u,.journal)").parents(".mcbox-sel").removeClass("mcbox-sel");
				});
			});
		}

	}
	function pruf() {
		if ($(".mcbox:not([multi_open])").length > 0) {
			$(".mcbox:not([multi_open])").click(pruf);
			$(".mcbox:not([multi_open])").attr("multi_open", "true");
		}

		var altsel = selected.length;
		selected = $(".mcbox-sel a:not([href=''],.journal)").filter(function () {
				if (akturls.indexOf($(this).attr("href")) != -1)
					return false;
				if ($(this).parents(".mczone").find(".mczone-title:contains('Activity')").length == 1) {
					if (!$(this).hasClass("u"))
						return false;
				} else {
					if ($(this).attr("href").search(/deviantart\.com.*\d+\/?$/i) == -1)
						return false;
				}
				akturls.push($(this).attr("href"));
				return true;
			});
		akturls = [];
		if (selected.length == altsel)
			return true;
		if (selected.length > 0) {
			$(".dev_multiopen_but").removeClass("disabledbutton");
		} else {
			$(".dev_multiopen_but").addClass("disabledbutton");
		}
		$(".dev_multiopen_but").html("Open " + selected.length);
	}
}

var el=document.createElement("script");
el.innerHTML="("+Multi_Open_injecter.toString()+")()";
document.body.appendChild(el);
document.body.removeChild(el);
// Multi_Open_injecter();