Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webextension? #8

Open
davidascher opened this issue Mar 2, 2017 · 1 comment
Open

Webextension? #8

davidascher opened this issue Mar 2, 2017 · 1 comment

Comments

@davidascher
Copy link

Thank you for this effort!

This would be a lovely capability to let users add to others' web pages using a webextension browser addon.

@Jogai
Copy link

Jogai commented Oct 2, 2017

Created a bookmarklet for you:

javascript:(function()%7Bvar%20sheets%20%3D%20document.querySelectorAll('link%5Brel%3Dstylesheet%5D')%3Bfor(var%20i%3D0%3Bi%3Csheets.length%3Bi%2B%2B)%7Bsheets%5Bi%5D.parentNode.removeChild(sheets%5Bi%5D)%3B%7Dvar%20styles%3D%20document.querySelectorAll('style')%3Bfor(var%20i%3D0%3Bi%3Cstyles.length%3Bi%2B%2B)%7Bstyles%5Bi%5D.parentNode.removeChild(styles%5Bi%5D)%3B%7Ddocument.querySelector('head').innerHTML%20%2B%3D%20'%3Clink%20rel%3D%22stylesheet%22%20href%3D%22https%3A%2F%2Funpkg.com%2Fgutenberg-css%400.4%22%20type%3D%22text%2Fcss%22%2F%3E'%7D)()

How to add (replace their example with the above code): https://gist.github.com/caseywatts/c0cec1f89ccdb8b469b1#try-one-out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants