{"id":496,"date":"2025-12-11T23:49:38","date_gmt":"2025-12-11T23:49:38","guid":{"rendered":"https:\/\/xuan.co.uk\/?p=496"},"modified":"2025-12-11T23:49:44","modified_gmt":"2025-12-11T23:49:44","slug":"m4s-downloader-download-redgifs-video","status":"publish","type":"post","link":"https:\/\/xuan.co.uk\/?p=496","title":{"rendered":"M4S downloader, download REDGIFS video"},"content":{"rendered":"<h1 data-path-to-node=\"3\">M4S Saver Extension &#8211; Documentation &#8211; <a href=\"https:\/\/xuan.co.uk\/wp-content\/uploads\/2025\/12\/m4s.zip\">DOWNLOAD plugin<\/a><\/h1>\n<h2 data-path-to-node=\"4\">Overview<\/h2>\n<p data-path-to-node=\"5\">This Chrome extension allows you to quickly save <code>.m4s<\/code> media segments from web pages by pressing the <b>&#8216;T&#8217;<\/b> key. It automatically organizes downloads into folders based on the Username found in the URL (or the current Date if no user is found) and prevents duplicate file downloads. The files can be played back using <a href=\"https:\/\/www.videolan.org\/\">VLC media player<\/a><\/p>\n<h2 data-path-to-node=\"6\">1. Installation<\/h2>\n<p data-path-to-node=\"7\">Since this extension is not on the Chrome Web Store, you must install it in &#8220;Developer Mode&#8221;.<\/p>\n<ol start=\"1\" data-path-to-node=\"8\">\n<li>\n<p data-path-to-node=\"8,0,0\"><b>Prepare the Folder:<\/b> Ensure you have all the required files (<code>manifest.json<\/code>, <code>background.js<\/code>, <code>content.js<\/code>, <code>popup.html<\/code>, <code>popup.js<\/code>, and <code>icon.png<\/code>) inside a single folder named <code>M4S<\/code>.<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"8,1,0\"><b>Open Extensions Menu:<\/b><\/p>\n<ul data-path-to-node=\"8,1,1\">\n<li>\n<p data-path-to-node=\"8,1,1,0,0\">Open Google Chrome.<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"8,1,1,1,0\">Type <code>chrome:\/\/extensions<\/code> in the address bar and press <b>Enter<\/b>.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p data-path-to-node=\"8,2,0\"><b>Enable Developer Mode:<\/b><\/p>\n<ul data-path-to-node=\"8,2,1\">\n<li>\n<p data-path-to-node=\"8,2,1,0,0\">Look for the <b>&#8220;Developer mode&#8221;<\/b> toggle in the top-right corner of the page and turn it <b>ON<\/b>.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p data-path-to-node=\"8,3,0\"><b>Load the Extension:<\/b><\/p>\n<ul data-path-to-node=\"8,3,1\">\n<li>\n<p data-path-to-node=\"8,3,1,0,0\">Click the <b>&#8220;Load unpacked&#8221;<\/b> button that appears in the top-left.<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"8,3,1,1,0\">Navigate to and select the <code>M4S Saver<\/code> folder you created in step 1.<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"8,3,1,2,0\">The extension should now appear in your list.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h2 data-path-to-node=\"9\">2. Usage Guide<\/h2>\n<h3 data-path-to-node=\"10\">Enabling the Extension<\/h3>\n<ol start=\"1\" data-path-to-node=\"11\">\n<li>\n<p data-path-to-node=\"11,0,0\">Click the <b>Extensions (Puzzle Piece)<\/b> icon in your Chrome toolbar.<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"11,1,0\">Click <b>M4S Saver<\/b> to open the popup.<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"11,2,0\">Toggle the <b>&#8220;Enable Plugin&#8221;<\/b> switch to <b>ON<\/b>.<\/p>\n<ul data-path-to-node=\"11,2,1\">\n<li>\n<p data-path-to-node=\"11,2,1,0,0\"><i>Status text will change to green: &#8220;Ready for &#8216;T&#8217; Key&#8221;.<\/i><\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<h3 data-path-to-node=\"12\">Saving Files<\/h3>\n<ol start=\"1\" data-path-to-node=\"13\">\n<li>\n<p data-path-to-node=\"13,0,0\">Navigate to the webpage containing the video\/media.<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"13,1,0\">Ensure the video has started playing (this allows the extension to capture the <code>.m4s<\/code> URL).<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"13,2,0\">Press the <b>&#8216;T&#8217;<\/b> key on your keyboard.<\/p>\n<\/li>\n<\/ol>\n<h3 data-path-to-node=\"14\">How it Works<\/h3>\n<ul data-path-to-node=\"15\">\n<li>\n<p data-path-to-node=\"15,0,0\"><b>Smart Folders:<\/b> The extension looks at your URL.<\/p>\n<ul data-path-to-node=\"15,0,1\">\n<li>\n<p data-path-to-node=\"15,0,1,0,0\">If the URL contains <code>\/users\/username<\/code>, it saves to: <code>Downloads\/MS4 Saved\/username\/filename.m4s<\/code><\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"15,0,1,1,0\">If no username is found, it saves to a date folder: <code>Downloads\/MS4 Saved\/YYMMDD\/filename.m4s<\/code><\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p data-path-to-node=\"15,1,0\"><b>Duplicate Protection:<\/b> Before downloading, the extension checks your download history. If that specific filename already exists (in <i>any<\/i> folder), the download is skipped to save space.<\/p>\n<\/li>\n<\/ul>\n<h2 data-path-to-node=\"16\">3. Troubleshooting<\/h2>\n<ul data-path-to-node=\"17\">\n<li>\n<p data-path-to-node=\"17,0,0\"><b>&#8220;T&#8221; Key Doesn&#8217;t Work:<\/b><\/p>\n<ul data-path-to-node=\"17,0,1\">\n<li>\n<p data-path-to-node=\"17,0,1,0,0\">Ensure the toggle in the popup is set to <b>ON<\/b>.<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"17,0,1,1,0\">Reload the webpage <i>after<\/i> installing or re-enabling the extension.<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"17,0,1,2,0\">Click anywhere on the page to ensure it has &#8220;focus&#8221; before pressing &#8216;T&#8217;.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p data-path-to-node=\"17,1,0\"><b>File Skipped (Not Downloading):<\/b><\/p>\n<ul data-path-to-node=\"17,1,1\">\n<li>\n<p data-path-to-node=\"17,1,1,0,0\">Open the extension popup or check the Console (F12). If the file already exists on your computer, the extension intentionally skips it.<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"17,1,1,1,0\">Delete the existing file from your computer if you wish to download it again.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p data-path-to-node=\"17,2,0\"><b>Changes Not Applying:<\/b><\/p>\n<ul data-path-to-node=\"17,2,1\">\n<li>\n<p data-path-to-node=\"17,2,1,0,0\">If you modify the code, you must go to <code>chrome:\/\/extensions<\/code> and click the <b>Reload (circular arrow)<\/b> icon on the M4S Saver card for changes to take effect.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2 data-path-to-node=\"18\">4. File Checklist<\/h2>\n<p data-path-to-node=\"19\">Ensure your project folder contains the latest versions of these files:<\/p>\n<ul data-path-to-node=\"20\">\n<li>\n<p data-path-to-node=\"20,0,0\"><code>manifest.json<\/code> (Configuration and permissions)<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"20,1,0\"><code>background.js<\/code> (Logic for downloading, duplicate checking, and folder naming)<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"20,2,0\"><code>content.js<\/code> (Listens for the &#8216;T&#8217; keypress)<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"20,3,0\"><code>popup.html<\/code> (The user interface)<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"20,4,0\"><code>popup.js<\/code> (Saves the toggle state)<\/p>\n<\/li>\n<li>\n<p data-path-to-node=\"20,5,0\"><code>icon.png<\/code> (Extension icon)<\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>M4S Saver Extension &#8211; Documentation &#8211; DOWNLOAD plugin Overview This Chrome extension allows you to quickly save .m4s media segments from web pages by pressing the &#8216;T&#8217; key. It automatically organizes downloads into folders based on the Username found in the URL (or the current Date if no user is <a class=\"more-link\" href=\"https:\/\/xuan.co.uk\/?p=496\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-496","post","type-post","status-publish","format-standard","hentry","category-tech-tips"],"_links":{"self":[{"href":"https:\/\/xuan.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/496","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xuan.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xuan.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xuan.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/xuan.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=496"}],"version-history":[{"count":1,"href":"https:\/\/xuan.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/496\/revisions"}],"predecessor-version":[{"id":498,"href":"https:\/\/xuan.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/496\/revisions\/498"}],"wp:attachment":[{"href":"https:\/\/xuan.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=496"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xuan.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=496"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xuan.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=496"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}