mirror of
https://github.com/Oreolek/TrackMeNot-Chrome.git
synced 2024-04-24 05:11:20 +03:00
returned jquery (latest version this time)
This commit is contained in:
parent
e43ca12391
commit
45b747cfaf
4
jquery.js
vendored
Normal file
4
jquery.js
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -25,7 +25,6 @@ TRACKMENOT.Menus = function() {
|
|||
function _cout (msg) { console.log(msg); }
|
||||
|
||||
return {
|
||||
|
||||
showHelp: function() {
|
||||
window.open("http://www.cs.nyu.edu/trackmenot/faq.html");
|
||||
},
|
||||
|
|
|
@ -278,10 +278,7 @@
|
|||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<script
|
||||
src="http://code.jquery.com/jquery-3.1.1.min.js"
|
||||
integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8="
|
||||
crossorigin="anonymous"></script>
|
||||
<script src="jquery.js"></script>
|
||||
<script src="option-script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
110
tmn_menu.html
110
tmn_menu.html
|
@ -1,59 +1,51 @@
|
|||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
|
||||
<link href="style.css" rel="stylesheet">
|
||||
<script src="jquery.js"></script>
|
||||
<script src="menu-script.js"></script>
|
||||
<html>
|
||||
<style>
|
||||
body {
|
||||
min-width:257px;
|
||||
max-width:257px;
|
||||
max-width:157px;
|
||||
overflow-x:hidden;
|
||||
}
|
||||
|
||||
|
||||
</style>
|
||||
<body>
|
||||
<table>
|
||||
<!--<tr>
|
||||
<td>
|
||||
<hbox>
|
||||
<img width='16' height='16' src="images/skin/tmn.png" />
|
||||
<label valign=center id="trackmenot-label" cropt=right>
|
||||
</hbox>
|
||||
</td>
|
||||
</tr>-->
|
||||
<tr>
|
||||
<td>
|
||||
<hbox>
|
||||
<img width='16' height='16' id="trackmenot-img-enabled" src="images/skin/on_icon.png" />
|
||||
<label id="trackmenot-enabled" > Enabled </label>
|
||||
</hbox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr >
|
||||
<td>
|
||||
<hbox >
|
||||
<img width='16' height='16' src="images/skin/option_icon.png" />
|
||||
<label data-l10n-id="tmn.menu.options" id="trackmenot-menu-win" > Options </label>
|
||||
</hbox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr >
|
||||
<td>
|
||||
<hbox >
|
||||
<img width='16' height='16' src="images/skin/help_icon.png" />
|
||||
<label data-l10n-id="tmn.menu.help" id="trackmenot-menu-help" > Help </label>
|
||||
</hbox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<label id="trackmenot-menu-useTab" >
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
<html>
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
|
||||
<link href="style.css" rel="stylesheet">
|
||||
<style>
|
||||
body {
|
||||
min-width:257px;
|
||||
max-width:257px;
|
||||
overflow-x:hidden;
|
||||
}
|
||||
label {
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
<script src="jquery.js"></script>
|
||||
<script src="menu-script.js"></script>
|
||||
<body>
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<hbox>
|
||||
<img width='16' height='16' id="trackmenot-img-enabled" src="images/skin/on_icon.png" />
|
||||
<label id="trackmenot-enabled" > Enabled </label>
|
||||
</hbox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr >
|
||||
<td>
|
||||
<hbox >
|
||||
<img width='16' height='16' src="images/skin/option_icon.png" />
|
||||
<label data-l10n-id="tmn.menu.options" id="trackmenot-menu-win" > Options </label>
|
||||
</hbox>
|
||||
</td>
|
||||
</tr>
|
||||
<tr >
|
||||
<td>
|
||||
<hbox >
|
||||
<img width='16' height='16' src="images/skin/help_icon.png" />
|
||||
<label data-l10n-id="tmn.menu.help" id="trackmenot-menu-help" > Help </label>
|
||||
</hbox>
|
||||
</td>
|
||||
</tr>
|
||||
<!--
|
||||
<tr>
|
||||
<td>
|
||||
<label id="trackmenot-menu-useTab" >Use Tab</label>
|
||||
</td>
|
||||
</tr>
|
||||
-->
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
|
||||
<link href="style.css" rel="stylesheet">
|
||||
<html>
|
||||
<body >
|
||||
<div valign="top" >
|
||||
<img src="images/skin/tmn_icon.png" id="tmn-widget-icon">
|
||||
<label id="tmn-text" style="vertical-align:top" >TackMeNot</label>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
<html>
|
||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
|
||||
<link href="style.css" rel="stylesheet">
|
||||
<body >
|
||||
<div valign="top" >
|
||||
<img src="images/skin/tmn_icon.png" id="tmn-widget-icon">
|
||||
<label id="tmn-text" style="vertical-align:top">TrackMeNot</label>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
119
trackmenot.js
119
trackmenot.js
|
@ -20,64 +20,64 @@ if(!TRACKMENOT)
|
|||
var TRACKMENOT = {};
|
||||
|
||||
TRACKMENOT.TMNSearch = function() {
|
||||
let tmn_tab_id = -1;
|
||||
let tmn_tab = null;
|
||||
let useTab = false;
|
||||
let enabled = true;
|
||||
let debug_ = true;
|
||||
let load_full_pages = false;
|
||||
let last_url = "";
|
||||
let stop_when = "start";
|
||||
let useIncrementals = true;
|
||||
let incQueries = [];
|
||||
let searchEngines = "google";
|
||||
let engine = 'google';
|
||||
let useRss = true;
|
||||
let useUserList = false;
|
||||
let TMNQueries = {};
|
||||
let branch = "extensions.trackmenot.";
|
||||
let feedList = 'http://www.techmeme.com/index.xml|http://rss.slashdot.org/Slashdot/slashdot|http://feeds.nytimes.com/nyt/rss/HomePage';
|
||||
let tmnLogs = [];
|
||||
let disableLogs = false;
|
||||
let saveLogs = true;
|
||||
let kwBlackList = [];
|
||||
let useBlackList = true;
|
||||
let useDHSList = false;
|
||||
let zeitgeist = ["facebook","youtube","myspace","craigslist","ebay","yahoo","walmart","netflix","amazon","home depot","best buy","Kentucky Derby","NCIS","Offshore Drilling","Halle Berry","iPad Cases","Dorothy Provine","Emeril","Conan O'Brien","Blackberry","Free Comic Book Day"," American Idol","Palm","Montreal Canadiens","George Clooney","Crib Recall","Auto Financing","Katie Holmes","Madea's Big Happy Family","Old Navy Coupon","Sandra Bullock","Dancing With the Stars","M.I.A.","Matt Damon","Santa Clara County","Joey Lawrence","Southwest Airlines","Malcolm X","Milwaukee Bucks","Goldman Sachs","Hugh Hefner","Tito Ortiz","David McLaughlin","Box Jellyfish","Amtrak","Molly Ringwald","Einstein Horse","Oil Spill"," Bret Michaels","Mississippi Tornado","Stephen Hawking","Kelley Blue Book","Hertz","Mariah Carey","Taiwan Earthquake","Justin Bieber","Public Bike Rental","BlackBerry Pearl","NFL Draft","Jillian Michaels","Face Transplant","Dell","Jack in the Box","Rebbie Jackson","Xbox","Pampers","William Shatner","Earth Day","American Idol","Heather Locklear","McAfee Anti-Virus","PETA","Rihanna","South Park","Tiger Woods","Kate Gosselin","Unemployment","Dukan Diet","Oil Rig Explosion","Crystal Bowersox","New 100 Dollar Bill","Beastie Boys","Melanie Griffith","Borders","Tara Reid","7-Eleven","Dorothy Height","Volcanic Ash","Space Shuttle Discovery","Gang Starr","Star Trek","Michael Douglas","NASCAR","Isla Fisher","Beef Recall","Rolling Stone Magazine","ACM Awards","NASA Space Shuttle","Boston Marathon","Iraq","Jennifer Aniston"];
|
||||
let tmn_timeout = 6000;
|
||||
let prev_engine = "None";
|
||||
let burstEngine = '';
|
||||
let burstTimeout = 6000;
|
||||
let burstEnabled = false;
|
||||
let tmn_searchTimer =null;
|
||||
let burstCount = 0;
|
||||
let tmn_id = 0;
|
||||
let tmn_logged_id = 0;
|
||||
let tmn_mode = 'timed';
|
||||
let tmn_errTimeout = null;
|
||||
let tmn_scheduledSearch = false;
|
||||
let tmn_query='No query sent yet';
|
||||
let currentTMNURL = '';
|
||||
let tmn_option_tab = null;
|
||||
let worker_tab, worker_opt;
|
||||
let tmn_tab_id = -1;
|
||||
let tmn_tab = null;
|
||||
let useTab = false;
|
||||
let enabled = true;
|
||||
let debug_ = true;
|
||||
let load_full_pages = false;
|
||||
let last_url = "";
|
||||
let stop_when = "start";
|
||||
let useIncrementals = true;
|
||||
let incQueries = [];
|
||||
let searchEngines = "google";
|
||||
let engine = 'google';
|
||||
let useRss = true;
|
||||
let useUserList = false;
|
||||
let TMNQueries = {};
|
||||
let branch = "extensions.trackmenot.";
|
||||
let feedList = 'http://www.techmeme.com/index.xml|http://rss.slashdot.org/Slashdot/slashdot|http://feeds.nytimes.com/nyt/rss/HomePage';
|
||||
let tmnLogs = [];
|
||||
let disableLogs = false;
|
||||
let saveLogs = true;
|
||||
let kwBlackList = [];
|
||||
let useBlackList = true;
|
||||
let useDHSList = false;
|
||||
let zeitgeist = ["facebook","youtube","myspace","craigslist","ebay","yahoo","walmart","netflix","amazon","home depot","best buy","Kentucky Derby","NCIS","Offshore Drilling","Halle Berry","iPad Cases","Dorothy Provine","Emeril","Conan O'Brien","Blackberry","Free Comic Book Day"," American Idol","Palm","Montreal Canadiens","George Clooney","Crib Recall","Auto Financing","Katie Holmes","Madea's Big Happy Family","Old Navy Coupon","Sandra Bullock","Dancing With the Stars","M.I.A.","Matt Damon","Santa Clara County","Joey Lawrence","Southwest Airlines","Malcolm X","Milwaukee Bucks","Goldman Sachs","Hugh Hefner","Tito Ortiz","David McLaughlin","Box Jellyfish","Amtrak","Molly Ringwald","Einstein Horse","Oil Spill"," Bret Michaels","Mississippi Tornado","Stephen Hawking","Kelley Blue Book","Hertz","Mariah Carey","Taiwan Earthquake","Justin Bieber","Public Bike Rental","BlackBerry Pearl","NFL Draft","Jillian Michaels","Face Transplant","Dell","Jack in the Box","Rebbie Jackson","Xbox","Pampers","William Shatner","Earth Day","American Idol","Heather Locklear","McAfee Anti-Virus","PETA","Rihanna","South Park","Tiger Woods","Kate Gosselin","Unemployment","Dukan Diet","Oil Rig Explosion","Crystal Bowersox","New 100 Dollar Bill","Beastie Boys","Melanie Griffith","Borders","Tara Reid","7-Eleven","Dorothy Height","Volcanic Ash","Space Shuttle Discovery","Gang Starr","Star Trek","Michael Douglas","NASCAR","Isla Fisher","Beef Recall","Rolling Stone Magazine","ACM Awards","NASA Space Shuttle","Boston Marathon","Iraq","Jennifer Aniston"];
|
||||
let tmn_timeout = 6000;
|
||||
let prev_engine = "None";
|
||||
let burstEngine = '';
|
||||
let burstTimeout = 6000;
|
||||
let burstEnabled = false;
|
||||
let tmn_searchTimer =null;
|
||||
let burstCount = 0;
|
||||
let tmn_id = 0;
|
||||
let tmn_logged_id = 0;
|
||||
let tmn_mode = 'timed';
|
||||
let tmn_errTimeout = null;
|
||||
let tmn_scheduledSearch = false;
|
||||
let tmn_query='No query sent yet';
|
||||
let currentTMNURL = '';
|
||||
let tmn_option_tab = null;
|
||||
let worker_tab, worker_opt;
|
||||
|
||||
let skipex =new Array(
|
||||
/calendar/i,/advanced/i,/click /i,/terms/i,/Groups/i,
|
||||
/Images/,/Maps/,/search/i,/cache/i,/similar/i,/©/,
|
||||
/sign in/i,/help[^Ss]/i,/download/i,/print/i,/Books/i,/rss/i,
|
||||
/google/i,/bing/i,/yahoo/i,/aol/i,/html/i,/ask/i,/xRank/,
|
||||
/permalink/i,/aggregator/i,/trackback/,/comment/i,/More/,
|
||||
/business solutions/i,/result/i,/ view /i,/Legal/,/See all/,
|
||||
/links/i,/submit/i,/Sites/i,/ click/i,/Blogs/,/See your mess/,
|
||||
/feedback/i,/sponsored/i,/preferences/i,/privacy/i,/News/,
|
||||
/Finance/,/Reader/,/Documents/,/windows live/i,/tell us/i,
|
||||
/shopping/i,/Photos/,/Video/,/Scholar/,/AOL/,/advertis/i,
|
||||
/Webmasters/,/MapQuest/,/Movies/,/Music/,/Yellow Pages/,
|
||||
/jobs/i,/answers/i,/options/i,/customize/i,/settings/i,
|
||||
/Developers/,/cashback/,/Health/,/Products/,/QnABeta/,
|
||||
/<more>/,/Travel/,/Personals/,/Local/,/Trademarks/,
|
||||
/cache/i,/similar/i,/login/i,/mail/i,/feed/i
|
||||
);
|
||||
let skipex =new Array(
|
||||
/calendar/i,/advanced/i,/click /i,/terms/i,/Groups/i,
|
||||
/Images/,/Maps/,/search/i,/cache/i,/similar/i,/©/,
|
||||
/sign in/i,/help[^Ss]/i,/download/i,/print/i,/Books/i,/rss/i,
|
||||
/google/i,/bing/i,/yahoo/i,/aol/i,/html/i,/ask/i,/xRank/,
|
||||
/permalink/i,/aggregator/i,/trackback/,/comment/i,/More/,
|
||||
/business solutions/i,/result/i,/ view /i,/Legal/,/See all/,
|
||||
/links/i,/submit/i,/Sites/i,/ click/i,/Blogs/,/See your mess/,
|
||||
/feedback/i,/sponsored/i,/preferences/i,/privacy/i,/News/,
|
||||
/Finance/,/Reader/,/Documents/,/windows live/i,/tell us/i,
|
||||
/shopping/i,/Photos/,/Video/,/Scholar/,/AOL/,/advertis/i,
|
||||
/Webmasters/,/MapQuest/,/Movies/,/Music/,/Yellow Pages/,
|
||||
/jobs/i,/answers/i,/options/i,/customize/i,/settings/i,
|
||||
/Developers/,/cashback/,/Health/,/Products/,/QnABeta/,
|
||||
/<more>/,/Travel/,/Personals/,/Local/,/Trademarks/,
|
||||
/cache/i,/similar/i,/login/i,/mail/i,/feed/i
|
||||
);
|
||||
|
||||
let testAd_google = function(anchorClass,anchorlink) {
|
||||
return (
|
||||
|
@ -276,7 +276,10 @@ TRACKMENOT.TMNSearch = function() {
|
|||
|
||||
function runScript(tab) {
|
||||
worker_opt = tab.attach({
|
||||
contentScriptFile: [data.url("jquery.js"),data.url("option-script.js")]
|
||||
contentScriptFile: [
|
||||
data.url("jquery.js"),
|
||||
data.url("option-script.js")
|
||||
]
|
||||
});
|
||||
sendOptionToTab();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue