Giter Site home page Giter Site logo

alanhogan / bookmarklets Goto Github PK

View Code? Open in Web Editor NEW
71.0 8.0 10.0 78 KB

A collection of bookmarklets. In this repo, they are in easily editable source (JavaScript) form. They are compiled (usually at https://alanhogan.github.io/bookmarkleter/) before showing up on my website (in easy-to-use form)

Home Page: https://alanhogan.com/bookmarklets

License: MIT License

JavaScript 80.72% HTML 19.28%

bookmarklets's Introduction

bookmarklets

A collection of bookmarklets!

Bookmarklets (aka favelets) in this repository are stored as nicely formatted JavaScript, easy to edit and understand. They are closely mirrored in more usable form at https://alanhogan.com/bookmarklets for easy installation.

Converting to Bookmarklet Form

I will use an online bookmarklet generator, particularly https://alanhogan.github.io/bookmarkleter/, which seems the most robust and convenient, to convert these into bookmarklet form. Why? (It’s easy, after all: Just add javascript: in front and maybe URL-encode the script, right?) For consistency and reproducibility. (formerly: 1, 2.)

This repo is here largely so I can have one source of truth: The files in this reposititory. (The alternative is bouncing between bookmarklet and more readable formats, which is less than ideal, and which loses comments.)

bookmarklets's People

Contributors

alanhogan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bookmarklets's Issues

Bug report: Text selection broken on Navercast

Hi,
Thank you for sharing very useful "Allow Text
Selection" bookmarklet of yours. However there are
some cases where I'm afraid the bookmarklet fails to
work, and while I simply give up most of them there
is just one site big enough that if the bookmarklet
can work with the website it would be of great use
to me.
See following website:
http://navercast.naver.com/magazine_contents.nhn?rid=2267&attrId=&contents_id=80422&leafId=2267
You can try and see under current version of chrome
(windows 8.1 x64) bookmarklet cannot fix their
blocking of right click nor text selection.
It'd be great if a fix can be made available for the
technique that this website uses!
Thanks.

Neither text selection nor right-clicking work on donegaldaily.com

As per the title, neither text selection nor right-clicking work on donegaldaily.com.
Donegaldaily.com seems to be run in an extraordinarily nasty way by people who want your web traffic but believe that they should get to fight you for control of your computer, and they seem to be going to great lengths to disrespect your property rights and your equal and fair use rights.
Tested with an embarrassingly old Firefox version.
The add-on Enable Right Click and Copy 2017.4.12 does make this work, as does Absolute Enable Right Click & Copy.

I tried to have a poke around under the hood (which they're also trying to block), and maybe these are involved:
script#wpcp_disable_selection
script#wpcp_disable_Right_Click
However I didn't really get on top of things myself, and those two may also be red herrings, because there's loads that site tries to do to fight you for control. And just like devious spyware or malware authors, the nasty folks at donegaldaily.com see nothing wrong with their antisocial coding, using the same excuse of, "but you're accessing OUR stuff, so we can do whatever we like on YOUR system." Cue aggravation and support calls from people who think their browser is broken. Not that the entitled DonegalDaily delinquents care one bit for that, because those are other people's problems, and they only care for themselves.

Does not work on a Korean website

Hey~ I came across your bookmarklet through a link in stackoverflow. I wanted to try it out because I am wary of installing random add-on's to my browser.

I'm using Firefox 72.0.2 (64-bit).
The specific URL for the page on the site that I want to copy text from:
http://www.cgntv.net/player/home.cgn?vid=295563&pid=1

I want to be able to expand this panel and copy the text in that panel, preferably with formatting intact.
image

Tried disabling JS but that prevented me from expanding that panel after reloading the page.

Some how, this extension is able to enable text selection and copying without reloading the page - Absolute Enable Right Click & Copy

Thanks!!

[enable-text-selection.js] Remove jQuery dependency

I'm a big fan of this little script (enable-text-selection); thanks for sharing it with us. I had it as a bookmarklet for a long time but recently switched to using it as a user script with Greasemonkey. It has always bugged me though that a script this small depends on a much bigger framework (jQuery) mostly so it can use its selector and attribute setting functions. Why not use the native JavaScript selector document.querySelectorAll() which has basically the same syntax, and the native attribute settor setAttribute()? It would drastically reduce (by about 95%) the impact your script has on browser memory (not to mention bandwidth and page load time) when used on those sites that don't already use jQuery.

Enable-text-selection.js: 1.9KB
JQuery 1.9.1 minified: 90.5KB

Bug report: Doesn’t work on HTTPS sites

Make sure you provide https version of bookmarklet
to Allow Text Selection.

If site is https, chrome will block your http
jquery include.

THANK YOU FOR "Allow Text Selection"!

Doesn't work on Aliexpress.com

thanks for your bookmarklet development. On Aliexpress.com it would be very useful to research technical details of products. have to type everything without text selection option.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.