Stylish for Chrome 1.3.0b3
Translation is now on Transifex
Changes since 1.3.0b2
- Styles applied to Stylish internal pages are applied more quickly.
- Styles for domains are now applied when on non-standard ports.
- Style changes are now immediately applied to the Stylish pop-up.
- Fixes an editor bug related to undoing and unsaved changes.
- Various tweaks to the layout of the pop-up and editor.
Changes since 1.3.0b1
Thanks to @tophf and @hideheader who have submitted numerous pull requests in this version.
- Many changes to the UI, mostly the editor
- Turn on/off all styles feature
- Improved application of styles to iframes
- Added Dutch translation
Changes since 1.2.2
- Stylish now applies styles earlier, greatly reducing or eliminating "flicker".
- Styles are now applied as late in the document as possible. This provides more consistency and better compatibility with Firefox.
- Stylish can now affect some dynamically generated iframes. (It's kind of flaky.)
- Stylish can now affect
file:
URIs. You must enable this from the Extensions page. - Stylish can now affect its own pages -
chrome-extension://fkcllfpkdjkihkdjkaihobkbbebkcdlf/manage.html
,chrome-extension://fkcllfpkdjkihkdjkaihobkbbebkcdlf/popup.html
, andchrome-extension://fkcllfpkdjkihkdjkaihobkbbebkcdlf/edit.html
. It still can't affect otherchrome-extension:
URIs. - Updated display of toolbar pop-up, including links for creating a new style for the current site.
- Updated CodeMirror (code editor) - long code no longer gets cut off when pasting.
- Styles are now sorted alphabetically in manage page.
- Detach an edit tab and then all edit pages will open in new windows. Reattach and they'll go back to opening in tabs.
- Don't show styles with two
@namespaces
as global.
Comments
Oh yeah, that ID may be different in the release...
You can see some discussion on iframes at https://github.com/JasonBarnabe/stylish-chrome/issues/3 . The devmo editor works only if you apply after the page loads for me.
https://developer.chrome.com/devtools/docs/console-api#consolegroupcollapsedobject-object
https://github.com/JasonBarnabe/stylish-chrome/blob/master/background.js#L5
https://developer.chrome.com/extensions/webNavigation#frame_ids
Unfortunately, you can't specify a frame ID until Chrome 41. (Today just keeps getting better, don't it Jason?) Until then, every style that targets an IFRAME will also splatter the top-level document.
https://developer.chrome.com/extensions/tabs#method-sendMessage
My advice is, drop match_about_blank, use a MutationObserver to shuffle stylesheets when IFRAMEs and STYLEs come and go, and revisit the issue after Chrome 41 is Stable.
http://googlechromereleases.blogspot.com/
... Wait, you're still gonna have to skip the frames in webNavigation.onCommitted until Chrome 41 arrives. I do think match_about_blank should go, but it's a separable issue.
Once again I would like to demonstrate how being a condescending know-it-all does not translate into being even remotely funny.
I can take a joke but I prefer ones that make me laugh.
As far as the iframes go, the way they're being handled is too screwy to evaluate. I can't even tell if they're supposed to be able to be regexped out. Not to mention that for big content providers like Google or various social media sites who inject iframes practically everywhere, regexping out rather than in could be a much bigger pain in the ass. The only way I see a feature like this adding any real value is if it styles iframes like the Disqus ones. Most comment section iframes have something unique to that particular site in the url that you can latch on to, but clicking on a profile usually brings up an iframe that does not. Grandpa Stylebot did handle those nicely.
That is why you were able to trigger the bug by adding a style to an IFRAME that did have a source URL. Stylish has always added user styles to IFRAMEs with source URLs. What is new, bug-wise, is that the styles added to any one of these IFRAMEs are also being added to the containing web page and to every other IFRAME in the page.
Neither Stylish (1.2.2) nor Stylebot adds styles to IFRAMEs without source URLs. Whatever comparison you were trying to make is some other issue. If it's important to you, explain in detail what you want without assuming that anyone here has ever used Stylebot. If Disqus IFRAMEs are a problem, provide some example URLs of problem pages.
Clear?
Install my Torrentfreak style https://userstyles.org/styles/109932/torrentfreak-black-red-any-browser
Go to Torrentfreak, click on any article, scroll to the bottom and click on "comments".
Once it opens you can see that everything in the iframe is styled exactly like the rest of the domain.
Open the style and copy/delete the regexp under section 1. Save and check out the difference .
Add the regexp back and click on any profile which will bring up an iframe which has nothing unique to Torentfreak in it's url. The regexp is useless and Stylish ignores it by default.
Copy the code from section 1 and drop it in a Stylebot style for domain torrentfreak.com. Not only will the style fully apply to the comments section but when you click on a profile the Disqus iframe that pops up will also have the style fully applied. I haven't fully styled it for obvious reasons but enough of it is there that you'll be able to tell that it works.
A: I'd rather keep it consistent.
https://userstyles.org/styles/browse?search_terms=file:
A: I think that would be a bit too clever.
A: I think it's better to have the more important stuff (the existing styles) first.
A: They're checkbox labels
Q: console messages ...?
A: Done. ... Also sorting the pop-up now.
Q: "Write new style" in the Style Manager won't open the editor in a new window.
A: This is by design.
I'm running this build but explaining the installationprocess for chrome-friends because they want to stop being flashbanged by the flicker (dark/black themes) is somewhat painful plus chrome keeps on naging on you for potential harmful addon and tries to remove it.
Gotta say I like the new features!
Keep up the great work!
Styles from "Stylish 1.2.2" not available to "Stylish 1.3.0".
https://forum.userstyles.org/discussion/34466/how-to-backup-and-restore
@-moz-document url-prefix("https://plus.google.com"), domain("plus.google.com") {
@-moz-document url("https://www.google.com/"), url-prefix("https://www.google.com/search"), url-prefix("https://www.google.f"), url-prefix("https://www.google.d"), url-prefix("https://www.google.s"), url-prefix("https://www.google.r"), url-prefix("https://www.google.j"), url-prefix("https://www.google.a"), url-prefix("https://encrypted.google."), url-prefix("https://www.google.com/webhp"), url-prefix("https://translate.google."), url-prefix("https://www.google.com/?gws")
@-moz-document domain("talkgadget.google.com")
@-moz-document url-prefix("https://plus.google.com/hangouts") {
@-moz-document domain("docs.google.com") {
Thanks again!
- "Filters" for the feature itself,
- "Only enabled styles" for the option to hide all but enabled styles, and
- "Only my styles" for the option to hide all but styles you created with "Write new style"
"Locally added styles", "Locally written styles", and "Non-tracked styles" have been suggested as names for the second option. Other suggestions (in any language)? Opinions?The above suggestions of "My styles", "Edited styles", "Personal styles" seem to be specific to the style writers, which of course we are, but this is biased.
A more neutral wording which would also reflect the actual state of affairs:
[ ] Only enabled styles
[x] Auto-updated styles
[x] Locally created styles
That's a default config which would show all the items. Not sure though if all-checkboxes-cleared state should be allowed, maybe it'd be reasonable to attach a js handler to disallow unchecking of both #2 and #3.
[ ] Only enabled styles
---
( ) Only auto-updated styles
( ) Only locally created styles
(•) Both
This would be logical even without the above mentioned js-handler.
Not sure whether Stylish-Chrome actually auto-updates the styles, so maybe the wording of corresponding items should be a little different.
@drakulaboy, do you mean the first item mentioned in the changelog?