Reading list - 稍后阅读

稍后阅读

// ==UserScript==
// @name         Reading list - 稍后阅读
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  稍后阅读
// @author       Lin折
// @match        https://*/*
// @match        http://*/*
// @icon         data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAD+pJREFUeF7tnXuMHVUdx3+/udtCooIaCBCpQR4SqKFJAXlYQtEAttruzHSvJpggVB4JFZB3eCTdCgpiCVBZkwIBjBgj654zey+ylRBbECgIxdDwtAQVKEhseAay3d57f2bkLqmV7c7OnDk7M+d7k/1rz+/1Pd/Pzr1358GEFxSAAhMqwNAGCkCBiRUAIHAHFNiJAgAE9oACAAQegALpFMARJJ1uiHJEAQDiyEZjzHQKAJB0uiHKEQUAiCMbjTHTKQBA0umGKEcUACCObDTGTKcAAEmnG6IcUQCAOLLRGDOdAgAknW6IckQBAOLIRmPMdAoAkHS6IcoRBQCIIxuNMdMpAEDS6YYoRxQAII5sNMZMpwAASacbohxRAIA4stEYM50ChQekXq/v2W63Z3U6nd3SjYiooipQq9U2j42NbW42mx8WtcdCARKG4VwROYmITiaiWUS0LxHtUlTx0JcxBd4mos1E9IKIDHuet04p9Zqx7BkSTTsgQRDMIaKlRHQiER2SYRaEVkuBtSLyULvdvqXZbG6ZrtGmDZAwDPcXkWVEFP/gKDFdDih+3ZeJaGB0dHRgZGRkq+12pwUQ3/f7mTkGYw/bA6NeaRV4WkRWRlF0t80JrAMShuFqETnL5pCoVR0FmPlapdQVtiayBkgYhvuIyKNEtJ+t4VCnsgoorfUSG9NZASQMw6NFZL2NgVDDGQXWaK0X5D1t7oAsXrz4wFqttinvQZDfSQUu0VqvzHPyXAGp1+u7t1qtx4no4DyHQG6nFViqtb4zLwVyBSQIgiEiCvNqHnmhQKwAM/cqpRp5qJEbIGEY9onIYB5NIycU2EGBR7TW8/JQJTdAgiBYS0Tz82gaOaHAjgqIyGVRFF1vWplcAAmC4HQiusN0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AIBUdWcxlxEFAIgRGZGkqgoAkKruLOYyogAAMSIjklRVAQBS1Z3FXEYUACBGZESSqioAQKq6s5jLiAIAxIiMSFJVBQBIVXcWcxlRAIAYkRFJqqoAAKnqzmIuIwoAECMyIklVFQAgVd1ZzGVEAQBiREYkqaoCAKSqO4u5jCgAQIzIiCRVVQCAVHVnMZcRBQCIERmRpKoK/AcRl4Bf2rD7XQAAAABJRU5ErkJggg==
// @grant        GM_setValue
// @grant        GM_getValue
// @grant        GM_listValues
// @grant        GM_deleteValue
// @grant        unsafeWindow
// @require      https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js
// @license      GPL-3.0 License
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...
    var css = `
<style>


/* 容器 <div> - 需要定位下拉内容-有它才能hover唤出子元素vessel-content -vessel里面放一个arrow*/
.vessel {
	position: fixed;
	top: 30px !important;
	left: 2px !important;
    z-index: 999999999 !important;
	display: inline-block;
	cursor: pointer;
}

/* 下拉内容 (默认隐藏) */
.vessel-content {
	display: none;
	position: fixed;
    top: calc(5vh) !important;
	left: -0px !important;
    z-index: 999999999 !important;
	background-color: white;
	width: 600px;
    max-height: 925px;
	box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    border-radius: 0% 2% 2% 2%;
	overflow-y: scroll;
}



/* 下拉菜单的链接 div标签下第一个a标签*/
.vessel-content div a:first-child {
	color:black;
	padding: 15px;
	text-decoration: none;
	font-weight: 400;
	font-size: large;
}
/* 下拉菜单的链接 div标签下最后一个a标签*/
.vessel-content div a:last-child {
    color:blue;
	padding: 5px;
	text-decoration: none;
	font-weight: 200;
	font-size: small;
}
/* 下拉菜单的链接 div标签*/
.vessel-content div:not([class]) {
	display: block;
	padding: 5px !important;
	cursor: pointer;
    overflow:hidden;
	text-overflow: ellipsis;
	white-space:nowrap;
	}

/*	 鼠标移上去后修改下拉菜单链接颜色 /*/
/*******把第一行排除在外********/
.vessel-content div:not([class]):hover {
	background-color: #f1f1f1;
}


/*箭头*/
.arrow{}
.arrow::before{
	content: '';
	display: inline-block;
	border-top: 3px solid;
	border-right: 3px solid;
	width: 12px;
	height: 12px;
	border-color: #97A2B6;
	transform: rotate(45deg);
}

/*	加号*/
.plus{
	display: inline-block;
	cursor: pointer;
}
.plus::before{
	content:'\\2723';
	font-weight: 600;
	font-size: x-large;
}

/*	刷新*/
.refresh{
	display: inline-block;
	cursor: pointer;
}
.refresh::before{
	content:'\\21BB';
	font-weight: 600;
	font-size: x-large;
}

/*	撤销*/
.undo{
	display: inline-block;
	cursor: pointer;
}
.undo::before{
	content:'\\21B6';
	font-weight: 600;
	font-size: x-large;
}

/*	重做*/
.redo{
	display: inline-block;
	cursor: pointer;
}
.redo::before{
	content:'\\21B7';
	font-weight: 600;
	font-size: x-large;
}
/***按钮栏****/
.header{
	display: flex !important;
	justify-content: center;
	grid-gap: 100px;
}
</style>

<div class="vessel">
    <span class="arrow"></span>
	<div class="vessel-content">
        <div class="header">
			<div class="plus"></div>
            <div class="refresh"></div>
			<div class="undo"></div>
			<div class="redo"></div>
		</div>
	</div>
</div>`
;
    document.documentElement.insertAdjacentHTML('beforeend', css);

    function itemhtml(url,title){
        //function构建div标签
        var ele1="<a target='_blank' href='"+url+"'>"+title.replace(/-.*|_.*/g,"")+"</a>";
        var ele2="<a target='_blank' href='"+url+"'>"+"- "+url.replace(/https?:\/\//g,"")+"</a>";
        var ele="<div>"+ele1+ele2+"</div>";
        return ele;
    };

    $(function(){
        function f5(){
            var arr=GM_listValues();
            // alert(arr);
            // 载入存档
            for(var i of arr){
                // alert(i);
                var s_url=i;
                var s_title=GM_getValue(s_url);
                $(".vessel-content").append(itemhtml(s_url,s_title));
            };
        };
		var ishover=false;
		$(".vessel").hover(function(){
			if (!ishover){f5();ishover=true;};
			if($(".vessel-content").css("display")=="none"){
				$(".vessel-content").slideDown();
			}
		},function(){$(".vessel-content").slideUp();
		});



        //append(),在父级最后面追加一个子元素
        $(document).on("click",".plus",function(){
			// 动态追加绑定事件
            var url=window.location.href;
            if(!GM_getValue(url)){
                var title=document.querySelector("head > title").text;
                $(".vessel-content").append(itemhtml(url,title));
                GM_setValue(url,title);
            };
        });
        $(".refresh").click(function(){
            $("div.vessel-content div:not([class])").remove();
            f5();
        });
        $(document).on("mousedown","div.vessel-content div:not([class])",function(e){
            if(e.which==2){
                var d_url=$(this).children("a:first").attr("href");
                GM_deleteValue(d_url);
                $(this).remove();
            };
        });
    });
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址