Pocket全选

在Pocket列表页内添加全选按钮

目前为 2018-03-16 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Pocket select all
  3. // @name:zh-CN Pocket全选
  4. // @namespace hoothin
  5. // @version 0.1
  6. // @description Select all item on getpocket.com
  7. // @description:zh-CN 在Pocket列表页内添加全选按钮
  8. // @author hoothin
  9. // @include https://getpocket.com/a/*
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. if($(".bulkedit-status>p").length<1)return;
  16. var selectBtn=document.createElement("a");
  17. selectBtn.href="#";
  18. selectBtn.innerHTML="Select All";
  19. selectBtn.style="position: absolute;left: -100px;top: 15px;";
  20. selectBtn.onclick=function(e){$(".item_content").click();};
  21. $(".bulkedit-status>p").after(selectBtn);
  22. })();