Copy script to add text to whatever users copy?!? Read more at (your link here)

Ok. This is weird but cool. Can someone give me the code to do this? Anyway…

Anyway here it is.

  1. Copy text from any Spartz Media website(OMG Facts in this example)
  2. Paste it somewhere(iOS notepad in this example
  3. See extra text added
  4. This is cool if you hate the Post sharing service they use due to the fact that it’s an exact copy of the more popular AddThis sharing service but with advertisements
  5. Why did I put extra stuff here that isn’t suppose to be here?

20120824-181822.jpg

20120824-181841.jpg

Did you see that extra text that was added in comparison to what was selected above? That’s what I’m talking about and I hope that a version of this script will be available to WordPress users.

7 responses to “Copy script to add text to whatever users copy?!? Read more at (your link here)

  1. Amedar 25/08/2012 at 3:08am

    Good – I should certainly pronounce, impressed with your web site. I had no trouble navigating through all tabs as well as related info ended up being truly easy to do to access. I recently found what I hoped for before you know it in the least. Quite unusual. Is likely to appreciate it for those who add forums or anything, web site theme . a tones way for your client to communicate. Nice task..

  2. Francesco Calin 21/09/2012 at 12:29am

    I just want to tell you that I am just newbie to weblog and certainly enjoyed this web-site. Most likely I’m going to bookmark your blog post . You absolutely have outstanding well written articles. Thanks a bunch for sharing your web-site.

  3. Jay Ryan M. 25/09/2012 at 12:55pm

    Nice Post… Here is the what you are looking for:
    -Copy the code below
    -Find the head tag by going to Appearance > Editor > header.php and pate the code.
    -Save your template and you are all done!

    function add_copyright_text() {
    if (is_single()) { ?>

    function addLink() {
    if (
    window.getSelection().containsNode(
    document.getElementsByClassName(‘entry-content’)[0], true)) {
    var body_element = document.getElementsByTagName(‘body’)[0];
    var selection;
    selection = window.getSelection();
    var oldselection = selection
    var pagelink = ” Read more at WPBeginner: <a href='’>“; //Change this if you like
    var copy_text = selection + pagelink;
    var new_div = document.createElement(‘div’);
    new_div.style.left=’-99999px’;
    new_div.style.position=’absolute’;

    body_element.appendChild(new_div );
    new_div.innerHTML = copy_text ;
    selection.selectAllChildren(new_div );
    window.setTimeout(function() {
    body_element.removeChild(new_div );
    },0);
    }
    }

    document.oncopy = addLink;

    <?php
    }
    }

    add_action( 'wp_head', 'add_copyright_text');

    More Blog Tools | SmoochyBlue | FashionFits | JayRyan’sBlog

  4. karim 27/09/2012 at 1:17am

    Hi,

    I was also looking for such a plug in. Here’s a plug in that does exactly what you want: http://wordpress.org/extend/plugins/easy-tynt/ or have a look at their website at http://www.tynt.com/

    But to be honest, I don’t like the way they collect data, so I won’t use it.

    • kbhasi 03/10/2012 at 2:26pm

      Yeah, I won’t use it because my WordPress installation is hosted, not my own installation which would be more flexible but I don’t have the money to pay per month for a self hosted installation. I’ve been setting up a self-hosted WordPress, and I’m planning to write a guide comparing my hosted blog and this self hosted one. Maybe I can put in my own plugins, I’ll just have to check.

  5. Raspberry ketones 11/09/2013 at 1:49am

    I was suggested this blog through my cousin. I’m not
    sure whether this publish is written by him as nobody else recognise such
    exact about my trouble. You’re incredible!

    Thanks!

  6. Claude Strehle 22/02/2014 at 3:15pm

    This stopped working tonight!!! BOOOOOOO!!!!

Leave a reply to Amedar Cancel reply