Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: assets/js/start.js

Issue 10282011: ABP/Android Fix element hiding (Closed)
Patch Set: Created April 11, 2013, 11:43 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/org/adblockplus/brazil/RequestHandler.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of the Adblock Plus, 2 * This file is part of the Adblock Plus,
3 * Copyright (C) 2006-2012 Eyeo GmbH 3 * Copyright (C) 2006-2012 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 for (var key in filterByKey) 417 for (var key in filterByKey)
418 { 418 {
419 var filter = Filter.knownFilters[filterByKey[key]]; 419 var filter = Filter.knownFilters[filterByKey[key]];
420 if (specificOnly && (!filter.domains || filter.domains[""])) 420 if (specificOnly && (!filter.domains || filter.domains[""]))
421 continue; 421 continue;
422 422
423 if (filter.isActiveOnDomain(domain)) 423 if (filter.isActiveOnDomain(domain))
424 result.push(filter.selector); 424 result.push(filter.selector);
425 } 425 }
426 if (result.length) 426 if (result.length)
427 return "<style type=\"text/css\">" + result.join() + " { display: none !im portant }</style>"; 427 return "<style type=\"text/css\">" + result.join(',\r\n') + " { display: n one !important }</style>";
428 else 428 else
429 return null; 429 return null;
430 }; 430 };
431 431
432 ElemHide.init = function() {}; 432 ElemHide.init = function() {};
433 } 433 }
434 434
435 /** 435 /**
436 * Removes all subscriptions from storage. 436 * Removes all subscriptions from storage.
437 */ 437 */
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 Android.load("Matcher.jsm"); 594 Android.load("Matcher.jsm");
595 Android.load("ElemHide.jsm"); 595 Android.load("ElemHide.jsm");
596 Android.load("Synchronizer.jsm"); 596 Android.load("Synchronizer.jsm");
597 597
598 FilterListener.startup(); 598 FilterListener.startup();
599 Synchronizer.startup(); 599 Synchronizer.startup();
600 600
601 Android.load("publicSuffixList.js"); 601 Android.load("publicSuffixList.js");
602 Android.load("punycode.js"); 602 Android.load("punycode.js");
603 Android.load("basedomain.js"); 603 Android.load("basedomain.js");
OLDNEW
« no previous file with comments | « no previous file | src/org/adblockplus/brazil/RequestHandler.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld