sesu8642 / cookieripper Goto Github PK
View Code? Open in Web Editor NEWCookie Ripper web extension
License: GNU General Public License v3.0
Cookie Ripper web extension
License: GNU General Public License v3.0
Hi Sesu8642,
Just tried your extension on Firefox. Great work!
I made some changes to the popup so it is a little bit larger. Here's what it looks like:
When you scroll down in the popup, you can view the web storage data. In the beginning, I had everything in view, but thought that the popup might be too long, so I made it so the cookie portion can always be viewable. It would be neat if the cookie and local storage tables can be hidden if there isn't any data for the active tab, but that can be a future enhancement for Tabulator.
/* cookie ripper */
@-moz-document url("moz-extension://d9636418-03ce-428b-8770-a7169f1927d9/popup.html") {
body {width:750px !important; max-height:331px !important; overflow-x:hidden; font-family: arial,sans-serif;}
#slider {margin:10px 0 !important;}
div[tabulator-field="name"] {width:170px !important;}
div[tabulator-field="value"] {width:400px !important;}
div[tabulator-field="expirationDate"], div[tabulator-field="permanence"] {width:90px !important;}
div[tabulator-field="whitelisted"] {width:56px !important;}
.extension-popup .dropdown {margin-right: 20px;}
}
Feel free to port some of those changes into the extension if you want. Haven't tested in Chromium browsers though.
Is there a way for the extension session setting for a domain to also change the browser cooking setting for the domain?
tried this before but the popup sizing behaves weird
The reason for this is that Firefox does not permit communication between parts of the extension in different modes. The background page is usually in normal mode while the popup etc. might be in private mode. Since the background page seems to be the only option to keep stuff in RAM, the extension would need to be changed quite significantly to solve this issue.
Workaround: Create a different profile which is always in private mode (enable "Never remember history" in settings). This allows the whole extension to be in private mode and be able to communicate properly. The new profile can then be used instead of using private windows from the same profile. Useful arguments: firefox -p privateprofile -no-remote
The vanilla tables currently in use are lacking useful features. They could be replaced with some custom js table. A new solution should have the following features:
This could also help with tables becoming too crowded and help with #5.
Currently it is detected when a cookie is set and the cookie is instantly deleted when it is unwanted. This works with both cookies from http headers and ones set via JavaScript. However, it is not very clean and requires the unwanted cookies to be stored in RAM for the restoring option.
Instead, cookies could always be accepted but blocked from being sent in the http header. Blocking access from JavaScript in not possible. However, the unwanted cookies could be deleted whenever a new page is loaded. Unfortunately, this would allow different tabs to communicate via cookies. They can do that anyway, though (e.g. with web storage which cannot be instantly deleted like cookies).
This is needed to fix #7.
Could be very practical for people using sync. However, storage.sync API is rather limited in several aspects. This must be examined first. Storage.local as a fallback option might be feasible.
currently missing; table might get too crowded
this could come in handy when migrating to a different browser / installation
This is because there is no way to get notified when a web storage entry is set using JavaScript. It might work in most cases to wait a couple of seconds until all JS in run and then refresh the count. Not a fantastic solution, though...
documentation for users should be provided in manual.html
Instead of deleting non-session cookies, they should be converted into session cookies.
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.