vtoubiana / trackmenot-chrome Goto Github PK
View Code? Open in Web Editor NEWTrackMeNot portage on Chrome
License: GNU General Public License v2.0
TrackMeNot portage on Chrome
License: GNU General Public License v2.0
If there is more then one RSS feed this extension never gets results from any other then the last feed and sometimes it takes results from the last feed multiple times. So you end up with multiple extracted feeds with the same content.
This is caused by bug in handling of async requests by req.onreadystatechange() in doRssFetch(). (Chrome 58)
I got irritated by this bug so I have rewritten this function:
function doRssFetch(feedUrl) {
debug('doRSSFetch: ' + feedUrl);
try {
var req = new XMLHttpRequest();
req.open('GET', feedUrl, true); // false == not async but this is depreciated
req.onreadystatechange = function() {
if (req.readyState == 4 && req.status == 200 && req.responseXML != null) {
debug("doRSSFetch: Recieved feed from " + feedUrl);
var adds = extractRssTitles(req.responseXML, feedUrl);
// debug(req.responseXML);
// debug(req.responseText);
}
}
req.send();
} catch (ex) {
cout("[WARN] doRssFetch(" + feedUrl + ")\n" +
" " + ex.message + " | Using defaults...");
return;
}
}
Unfortunately it had been only a start for me as I have got sucked in experimenting with augmenting logic of this extension.
The result is this fork
I have stripped away some logic, refactored some code and also added XregExp and nlp_compromise libraries. So now it can handle queries in other scripts like Chinese (if you seed with some foreign RSS feed for example) and also do some NLP - extracting more meaningful queries from search results. This could be of course extended.
I am not trying to say that mine is better. Just enjoyed testing some ideas.
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.