Pocket select all

Select all item on getpocket.com

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

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         Pocket select all
// @name:zh-CN   Pocket全选
// @namespace    hoothin
// @version      0.1
// @description  Select all item on getpocket.com
// @description:zh-CN  在Pocket列表页内添加全选按钮
// @author       hoothin
// @include      https://getpocket.com/a/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    if($(".bulkedit-status>p").length<1)return;
    var selectBtn=document.createElement("a");
    selectBtn.href="#";
    selectBtn.innerHTML="Select All";
    selectBtn.style="position: absolute;left: -100px;top: 15px;";
    selectBtn.onclick=function(e){$(".item_content").click();};
    $(".bulkedit-status>p").after(selectBtn);
})();