Yet another
UPDATE in file attached above:
replaced ":button" with ".button", but while at it, reworked the whole BUTTON block again (that line and some lines above)
Quote
JohnHell
If you use, as told above, adblock.css, you don't need to restart it.
If you use siria's macro you are INJECTING it, so you don't need to restart it BUT you'll need to reload the page to refresh its rendered code as the CSS applied can't be undone otherwise (could be, but not the easy way).
True, but luckily, just for css-testing it's not always necessary to reload, since the last injected rules have priority. So different values can be tested easily, only when wanting to remove a rule completely reloading is necessary.
If needing to reload, it's much faster when setting the browser
OFFLINE, to reload from cache (File > Work Offline)
Since I'm Off/OnLine-toggling all the time for all sorts of purposes, am using a handy toolbar button (toolbars.cfg)
Offline{
ID_OFFLINE|CloseWindow
Browse Offline: Stop all tabs at once, load from cache only. Sets only this browser offline, NOT other programs! Use history or F2>Cache for surfing.
extrabuttonshot.bmp[2]
extrabuttonscold.bmp[2]
}
Quote
Mello
Is there a way to blacklist individual sites, or failing that, toggle it off/on?
I see you're already discovering the killer probs for universal one-file-fits-all methods...
Sadly normal css-files can only include rules to run ON certain domains/URLs only, but sadly no way to EXCLUDE a domain this way
Huge prob, miss this much too. Perhaps much more modern css-engines can do it meanwhile, but current KM76 (engine originally forked from FF36) probably too old yet (?)
Hmm, on second thought... since awhile css-files can use "
regexp(....URL...)", in younger KM's as mine. Have a dim memory it once worked to catch something like "*.yahoo.com", but can't find it at the moment, and suspect it gets rather complicated when trying to exclude multiple domains...
Adblock.css can be toggled easily. In Tools > Privacy, or right-click a PrivBar button, or attach this menu to any other button (in toolbars.cfg).
But the catch with those global files is, since KM1.6, toggling always reflows ALL open pages, a true PAIN with a slow machine if many tabs are open
Unless that's different in younger KM engines now, but am afraid not. IMO the KM1.5 method was far more convenient, toggling only toggled the setting but otherwise did nothing, then just the current page could be reloaded manually.
Personally am toggling adblock with yet another button on Privacy Toolbar. Perhaps that's even included out-of-box, can't remember without checking. This is in my toolbars.cfg:
AdblockButton{
macros(KM_ToggleAdblock)|_Config_Appearance
Hide most Ad-Banners (could accidentally hide a 'good' image too). Right-click to modify detailed settings.
privhot.bmp[18]
privcold.bmp[18]
}
The testinjectcode-macro needs no toggling of course, since it does nothing automatically, only when fired manually by menu.
In general, any
automatic macros can include lines for $URL-checks which can be very flexible.
Quote
I'd be stuck without this as a basis to work from - thanks!
Oh yes, what I keep saying: we need simple EXAMPLES to get started, they make life SO much easier!
Glad that file helps you, even if only a very rough draft.
Edited 1 time(s). Last edit at 05/02/2021 03:56PM by siria.