﻿{"id":845,"date":"2021-01-25T21:51:14","date_gmt":"2021-01-25T13:51:14","guid":{"rendered":"https:\/\/byy3.com\/?p=845"},"modified":"2021-02-08T19:00:52","modified_gmt":"2021-02-08T11:00:52","slug":"medium%e7%a0%b4%e8%a7%a3%e6%94%b6%e8%b4%b9%e9%98%85%e8%af%bb%e6%96%b9%e6%b3%95%e5%92%8c%e6%ba%90%e4%bb%a3%e7%a0%81","status":"publish","type":"post","link":"https:\/\/byy3.com\/?p=845","title":{"rendered":"medium\u7834\u89e3\u6536\u8d39\u9605\u8bfb\u65b9\u6cd5\u548c\u6e90\u4ee3\u7801"},"content":{"rendered":"<p>\u6cb9\u7334\u811a\u672c<\/p>\n<p>\u4e0b\u9762\u662f\u7834\u89e3medium\u6536\u8d39\u9605\u8bfb\u7684\u6e90\u4ee3\u7801<\/p>\n<pre>\/\/ ==UserScript==\n\/\/ @name medium.com: read unlimited stories\n\/\/ @description removes the \"sid\" cookie, which is used to detect, how many stories you already read\n\/\/ @match http*:\/\/medium.com\/*\n\/\/ @run-at document-start\n\/\/ @author Archangel1C\n\/\/ @license GPL-3.0-only\n\/\/ @namespace https:\/\/github.com\/Archangel1C\n\/\/ @version 0.1\n\/\/ @grant none\n\/\/ @compatible chrome\n\/\/ @contributionURL https:\/\/flattr.com\/@Archangel1C\n\/\/ ==\/UserScript==\n\/\/\n\/\/ Sources\/Influences:\n\/\/\n\n(function resetSidCookie() {\n'use strict';\n\nconst storiesLeftCookie = \"sid\";\n\/\/ const oldValue = cookieValue(storiesLeftCookie);\n\/\/ const newValue = \"\";\ndocument.cookie = storiesLeftCookie + \"=\";\n\/\/ console.log(<code>[${GM_info.script.name}] set cookie [${storiesLeftCookie}]: [${oldValue}] -&gt; [${newValue}]<\/code>);\nconsole.log(<code>[${GM_info.script.name}] cookie [${storiesLeftCookie}] was reset to enable unlimited reading<\/code>);\n\n})();\n\nfunction cookieValue(name) {\nreturn document.cookie\n.split('; ')\n.find(row =&gt; row.startsWith(name))\n.split('=')[1];\n}\n\n#this all code thanks bolg security https:\/\/byy3.com @h4ckg3h2y1<\/pre>\n<p>\u6e90\u7801\u811a\u672c\u4f7f\u7528\u6d4f\u89c8\u5668\u6cb9\u7334\u73af\u5883<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-846\" data-original=\"https:\/\/byy3.com\/wp-content\/uploads\/2021\/01\/2021012513535641.jpg\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" width=\"1313\" height=\"1023\" title=\"medium\u7834\u89e3\u6536\u8d39\u9605\u8bfb\u65b9\u6cd5\u548c\u6e90\u4ee3\u7801\u63d2\u56fe\" alt=\"medium\u7834\u89e3\u6536\u8d39\u9605\u8bfb\u65b9\u6cd5\u548c\u6e90\u4ee3\u7801\u63d2\u56fe\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6cb9\u7334\u811a\u672c \u4e0b\u9762\u662f\u7834\u89e3medium\u6536\u8d39\u9605\u8bfb\u7684\u6e90\u4ee3\u7801 \/\/ ==UserScript== \/\/ @name med [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[471,394,395,396,393],"class_list":["post-845","post","type-post","status-publish","format-standard","hentry","category-script","tag-js-bat","tag-medium","tag-393"],"_links":{"self":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts\/845","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=845"}],"version-history":[{"count":0,"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts\/845\/revisions"}],"wp:attachment":[{"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=845"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=845"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}