added Adam Fletcher's query

master
Fabien Benetou 13 years ago
parent 67083e5a6c
commit fe58517dc8
  1. 6
      greasemonkey/tos_inspector.user.js
  2. 7
      shell_scripts/browser_queries

@ -41,13 +41,13 @@ GM_xmlhttpRequest({
function responseCheck(tos) { function responseCheck(tos) {
if (tos == 'Ok' ){ if (tos == 'Ok' ){
return '<img src="'+wikiUrl+'pub/green-light.png" /><font color="green">TOS ok :)</font>'; return '<img src="'+wikiUrl+'pub/gray-light.png" /><img src="'+wikiUrl+'pub/gray-light.png" /><img src="'+wikiUrl+'pub/green-light.png" /><font color="green">TOS ok :)</font>';
} }
if (tos == 'Meh'){ if (tos == 'Meh'){
return '<img src="'+wikiUrl+'pub/orange-light.png" /><font color="orange">Warning</font> (consider those settings)'; return '<img src="'+wikiUrl+'pub/gray-light.png" /><img src="'+wikiUrl+'pub/orange-light.png" /><img src="'+wikiUrl+'pub/gray-light.png" /><font color="orange">Warning</font> (consider those settings)';
} }
if (tos == 'Bad'){ if (tos == 'Bad'){
return '<img src="'+wikiUrl+'pub/red-light.png" /><font color="red">BAD TOS!</font> (try '+serviceAlternatives+' instead)'; return '<img src="'+wikiUrl+'pub/red-light.png" /><img src="'+wikiUrl+'pub/gray-light.png" /><img src="'+wikiUrl+'pub/gray-light.png" /><font color="red">BAD TOS!</font> (try '+serviceAlternatives+' instead)';
} }
} }

@ -14,6 +14,8 @@
# PmWiki output format # PmWiki output format
# %s/"\(.*\)","\(.*\)","\(.*\)"/* \3 [[\1|\2]]/ # %s/"\(.*\)","\(.*\)","\(.*\)"/* \3 [[\1|\2]]/
# consider bc for the math # consider bc for the math
# browse the web for more cool queries
# http://www.thesimplelogic.com/2010/04/17/wandering-wikipedia-datamining-my-firefox-history/
# see # see
# http://fabien.benetou.fr/MemoryRecalls/ImprovingPIM#FirefoxSQLiteLogs # http://fabien.benetou.fr/MemoryRecalls/ImprovingPIM#FirefoxSQLiteLogs
# http://self/wiki/PBES/PBES#FirefoxSQLiteLogs # http://self/wiki/PBES/PBES#FirefoxSQLiteLogs
@ -73,3 +75,8 @@ echo -e "\nwhat is the repartition of visits per type of activity in general"
# SELECT url,title,datetime(visit_date/1000000, 'unixepoch','localtime') as moment FROM moz_historyvisits, moz_places WHERE moz_historyvisits.place_id = moz_places.id AND (url like "%fabien.benetou.fr%" OR url like "%127.0.0.1%" OR url like "%seedea.org%" OR url like "%agi-wiki.org%" OR url like "%ourp.im%") # SELECT url,title,datetime(visit_date/1000000, 'unixepoch','localtime') as moment FROM moz_historyvisits, moz_places WHERE moz_historyvisits.place_id = moz_places.id AND (url like "%fabien.benetou.fr%" OR url like "%127.0.0.1%" OR url like "%seedea.org%" OR url like "%agi-wiki.org%" OR url like "%ourp.im%")
# social # social
# SELECT url,title,datetime(visit_date/1000000, 'unixepoch','localtime') as moment FROM moz_historyvisits, moz_places WHERE moz_historyvisits.place_id = moz_places.id AND (url like "%facebook%" OR url like "%twitter%" OR url like "%mail.google%") # SELECT url,title,datetime(visit_date/1000000, 'unixepoch','localtime') as moment FROM moz_historyvisits, moz_places WHERE moz_historyvisits.place_id = moz_places.id AND (url like "%facebook%" OR url like "%twitter%" OR url like "%mail.google%")
echo -e "\nwhat are the sources of your Wikipedia explorations?"
# from http://www.thesimplelogic.com/2010/04/17/wandering-wikipedia-datamining-my-firefox-history/
WP="SELECT curr.id, curr.url, curr.title, prev.id, prev.url, prev.title, t.visit_date FROM moz_places curr, moz_places prev, moz_historyvisits frm, moz_historyvisits t WHERE t.place_id = curr.id AND frm.place_id = prev.id AND frm.id = t.from_visit AND curr.url LIKE 'http://en.wikipedia.org/%' AND prev.url NOT LIKE 'http://en.wikipedia.org/%'"
sqlite3 -list -line $DB "$WP"

Loading…
Cancel
Save