daftano / cookies.txt Goto Github PK
View Code? Open in Web Editor NEWGoogle Chrome extension that creates a cookie.txt file for use with wget
Home Page: http://daftano.github.io/cookies.txt/
License: GNU General Public License v3.0
Google Chrome extension that creates a cookie.txt file for use with wget
Home Page: http://daftano.github.io/cookies.txt/
License: GNU General Public License v3.0
I've cookie like:
.stackexchange.com TRUE / FALSE 1484753459 acct t=blablafH6izL26oDS1fooOz1wK%2f&s=cJeWSzbarlIrblablaeao%2b2EblE
which shows correctly in the popup window, however when I've downloaded it as a file, the K%2f&s=c
string is converted into K%2f&s=c
which basically breaks the functionality and the cookie doesn't work anymore.
Probably it's caused by escapeForPre()
, but it's probably shouldn't be parsed upon download.
think the project is down atm if i press the link to download it cannot find the page on the store
Does it support command line in windows dos mode? I want to automatically update my cookie.txt file by batch file.. Thank you.
The Google Store link is 404. I use a lot would be a shame to loose it. Is there a way to install a plugin from a GitHub clone? Other alternatives?
The extension has recently started showing ALL cookies, not just the ones belonging to the domain currently visited. This happens across multiple computers and causes a massive slowdown as the extension pulls thousands of cookies.
Now this extension is showing a giant list of cookies from all websites instead the ones related to the current tab. It seems like a regression bug caused by a recent Chrome update, but I'm not sure which version caused this.
Tried to download my Twitter cookies, for some unknown reason only 3 entries out of 10+ are grabbed.
This extension works as expected:
https://github.com/kairi003/Get-cookies.txt-LOCALLY
404
function escapeForPre(e){return String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function getDomain(e){if(server=e.match(/:\/\/(.[^/:#?]+)/)[1],parts=server.split("."),isip=!isNaN(parseInt(server.replace(".",""),10)),parts.length<=1||isip)domain=server;else{var o=new Array;for(o[0]=parts[parts.length-1],i=1;i<parts.length;i++)if(o[i]=parts[parts.length-i-1]+"."+o[i-1],!domainlist.hasOwnProperty(o[i])){domain=o[i];break}"undefined"==typeof domain&&(domain=server)}return domain}var content="",downloadable="",popup="";chrome.tabs.getSelected(null,function(e){domain=getDomain(e.url),chrome.cookies.getAll({},function(o){for(var t in o)cookie=o[t],content+=escapeForPre(cookie.domain),content+=" ",content+=escapeForPre((!cookie.hostOnly).toString().toUpperCase()),content+=" ",content+=escapeForPre(cookie.path),content+=" ",content+=escapeForPre(cookie.secure.toString().toUpperCase()),content+=" ",content+=escapeForPre(cookie.expirationDate?Math.round(cookie.expirationDate):"0"),content+=" ",content+=escapeForPre(cookie.name),content+=" ",content+=escapeForPre(cookie.value),content+="\n";downloadable+="# HTTP Cookie File for domains related to "+escapeForPre(domain)+".\n",downloadable+="# Downloaded with cookies.txt Chrome Extension ("+escapeForPre("https://chrome.google.com/webstore/detail/njabckikapfpffapmjgojcnbfjonfjfg")+")\n",downloadable+="# Example: wget -x --load-cookies cookies.txt "+escapeForPre(e.url)+"\n",downloadable+="#\n";var n="data:application/octet-stream;base64,"+btoa(downloadable+content),a="<a href="+n+' download="cookies.txt">click here</a>';popup+="# HTTP Cookie File for domains related to <b>"+escapeForPre(domain)+"</b>.\n",popup+="# To download this content "+a+", press return (Mac only) or copy and paste into a cookies.txt file.\n",popup+="# It can be then used by wget and other standard complaint tools.\n",popup+="# Example: wget -x <b>--load-cookies cookies.txt</b> "+escapeForPre(e.url)+"\n",popup+="#\n",document.write("<pre>\n"+popup+content+"</pre>")})});
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.