Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Changing PM Link behavior

by blue_cowdawg (Prior)
on May 04, 2013 at 10:05 UTC ( #1032016=monkdiscuss: print w/ replies, xml ) Need Help??

One of the minor annoyances (very minor, nothing to get worked up over) is the fact when there is a link in either PM chat or in a posting clicking on it has you leave the page you are on and replace that page with the referenced link.

How much trouble would it be to change the behavior of links inside of square bracket to open a new window using

<a href=".." target="_blank">
type of linkages? Is there a downside to that?

Just a random thought that occurred to me in my sleep deprived state.


Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg

Comment on Changing PM Link behavior
Download Code
Re: Changing PM Link behavior
by Corion (Pope) on May 04, 2013 at 10:15 UTC

    I use middle-click (or shift-click) to open pages in a new tab when I want to keep the old window. Maybe your browser has a similar feature?

Re: Changing PM Link behavior
by tobyink (Abbot) on May 04, 2013 at 10:58 UTC

    "the fact when there is a link [...] clicking on it has you leave the page you are on and replace that page with the referenced link"

    Welcome to the World Wide Web!

    What you describe is the standard way links have worked in pretty much every browser, on pretty much every website for over two decades. It is the behaviour most people expect when they click on a link.

    If you would prefer for your browser to open links in a new window, it can probably be configured that way. Otherwise, you can probably add some Javascript to your Free Nodelet to rewrite all the links on the page to your liking.

    package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
Re: Changing PM Link behavior
by BrowserUk (Pope) on May 04, 2013 at 11:34 UTC

    I, for one, absolutely abhor this idea.

    I have a very real distaste for web sites that decide that every damn click results in another window/tab.

    Is holding the shift key when you click really such a burden to you?


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
          I, for one, absolutely abhor this idea.

      Well I have no religious take on this at all. Just made a potential suggestion. Take it for what it si worth.


      Peter L. Berghold -- Unix Professional
      Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg
Re: Changing PM Link behavior
by sundialsvc4 (Monsignor) on May 04, 2013 at 21:00 UTC

    Don’t feel crucified ... the suggestion was made in good faith.   What I do instead is to right-click on the link and choose, Open in new tab (or window).   The links continue to work as I ordinarily expect all links to do (they replace the current page with a new one), and the browser gives me two alternate choices which I routinely exercise.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: monkdiscuss [id://1032016]
Approved by davies
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2014-09-02 03:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (18 votes), past polls