[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
>middle click a link >get a new tab with "javascript:void(0);"
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 43
Thread images: 8
File: 1463768782740.jpg (260 KB, 1000x1000) Image search: [Google]
1463768782740.jpg
260 KB, 1000x1000
>middle click a link
>get a new tab with "javascript:void(0);" on the address bar
>>
Fucking hate that shit

One of my biggest gripes with web design.
>>
>>54873685
>>54873848
Why does it do that anyway?
>>
>>54873685
literally cancer causing
>>
>>54874024
javascript:void(0) for the href and onclick="dothisshitfaggotfunction"

or it has an id and an event trigger in the script

now people use <button></button> so it doesn't do that (as much.. cough)
>>
>>54874024
the person who coded the website wanted to be a nigger about accessibility, so they made text that looks and behaves like a link but doesn't parse like a link. so you could code something up like

<span onclick="loadMyRetardedPage()" class="faggot-tier">i'm a faggot</span>

and css like

.faggot-tier:hover {
cursor:pointer;
}

(i'm just freeballing here, this probably wouldn't work, but you get the idea)

and the effect would be that it looks and seems like a regular a element, but without any of the accessibility features that people with disabilities rely on to, you know, use the internet.

i don't have any disabilities, and i'm not an SJW in any way whatsoever, but going out of your way to make this shit harder for people who need to use a tool to identify links, parse pages, etc... is just the most niggardly thing a human can do.
>>
>>54873685
welcome to the """modern""" day web development

also
>not having a greasemonkey script that will turn the data-href property of every <a> into the href property on all websites
>i pity the fool
>>
>>54874136
hey man your keyboard is broken it repeats the quotation marks a bunch of times.
>>
File: it was just a prank bro.jpg (13 KB, 318x335) Image search: [Google]
it was just a prank bro.jpg
13 KB, 318x335
>>54874136
im a grill
>>
File: 1445613092849.jpg (47 KB, 464x507) Image search: [Google]
1445613092849.jpg
47 KB, 464x507
>press the "back" button
>page just reloads
>>
>>54873685
Well, until the CSS "apperance" property becomes usable in all common browsers (never ever, because of retards keeping IE alive), it's always more comfortable for developers to use links instead of buttons.

Yes, you could do all the stupid shit to "reset" the button to a default state in every single class that uses such a styled button, but then your CSS becomes bloated. You could also have an extra class just for this, but then the stupid cascading might fuck you up.
>>
>>54874231
>press back button 2000 times to go back once
>pulls you back to the site after 3 seconds
>>
>>54874115
Why would it not work?

Window.location.href = "http://google.com";


There, you reinvented the HTMLAnchorElement.
Why? Do you seriously think the JScucks know?
>>
>>54874302
You have no chance now that the history API exists. You used to be able to navigate back to the page if you were faster than the loading document which contains a <link> or http header redirect.
Not anymore.
>>
>>54874346
literally cancer
>>
>>54874346
>>54874366
how about the fact that you can grab clipboard data on internet explorer without user interaction?

what a feature!
>>
I just wish there was an addon or a script I could download to redirect "javascript:void(0);" links to actual links.
>>
>>54874320
i just mean that i literally typed it into the comment box and i'm not sure that the syntax is all correct - i'm going from memory and didn't check that the keyword is "cursor" or the value is "pointer", for instance. but the core concept is there.

>There, you reinvented the HTMLAnchorElement
yes, that was the point of my post.

>Why?
Why what? Why do people do it? probably to trip up spiders in a retarded attempt to be obscure and tricky without totally fucking up users. the same way people will display their contact info in the form of images to prevent spiders from harvesting their email address and sending them spam.

>Do you seriously think the JScucks now?
think ... what?
>>
>>54873685
I fucking hate this.
>>
File: 1416956590633.jpg (43 KB, 651x525) Image search: [Google]
1416956590633.jpg
43 KB, 651x525
>>54873685
> Select text
> Can't right click to copy
> Ctrl shortcuts still work
>>
>>54874383
Oh my, I have the weirdest idea for a localstorage polyfill for old IE versions now.

Shit like this is from the time of the first browser wars. Microsoft and Netscape both just made up new tags, apis and even languages and some other crap only 1% of web developers ever had to deal with (be happy) so they could throw some shiny stuff on a website and then point their finger at the other browser and say "Look! It doesn't work on this piece of shit! We are better!"

I don't think the IE team ever really sat down and discussed new feature proposals. Someone probably just said "hmm, maybe someone might, under certain circumstances, want to read the content of someone's clipboard! Better implement that as a feature!" without concerning themselves with the security problems at all.
And later the IE team got some rules, and their most important rule seems to have been "Never, EVER break backwards control! Keep everything alive forever!".
>>
>>54873685
>Select text on a website
>It has some retarded animation, different colors and start/end markers
>>
>>54874485
>And later the IE team got some rules, and their most important rule seems to have been "Never, EVER break backwards control! Keep everything alive forever!".

that's microsoft's philosophy with everything. unfortunately they're shit at implementing it.
>>
File: cancer.jpg (21 KB, 1280x720) Image search: [Google]
cancer.jpg
21 KB, 1280x720
<body>
<div class="application">Loading...</div>
</body>
>>
>>54874517
Yeah. So we have shit breaking in new versions all the time, but we also have all the old shit with its flaws still active.

Truly the worst of both worlds combined.
>>
>>54874533
a dream come true
>>
>>54874136
>not having a greasemonkey script that will turn the data-href property of every <a> into the href property on all websites
Does this really exist? Where do I get this? Jewgle isn't helping
>>
>>54874560
https://github.com/nathanford/data-href

I googled it.. and ... it was the first link..
>>
>>54874592
Call me a dunce if you must but that isn't a GM script
>>
>>54874645
make it into one..
>>
>>54874672
Dude I'm barely lucid enough to post right now and you want me to make web shit
>>
>>54874474
shitty html
those existed even 20 years ago
nothing new desu senpai

one of the first things I experimented with when I build my first shitty site back when I was 12
>>
File: rorschachdoit.png (426 KB, 1216x566) Image search: [Google]
rorschachdoit.png
426 KB, 1216x566
>go to webpage
>twirling icon until everything has loaded
>>
>>54874960
fuck this gay earth
>>
>>54874672
You promised a GM script though...
>>
>>54875035
that wasn't me wtf
I didn't promise shit
>>
>>54874696
Add user
>>
File: Disgusted_Picard_Star_Trek.jpg (74 KB, 400x256) Image search: [Google]
Disgusted_Picard_Star_Trek.jpg
74 KB, 400x256
>>54873685
>spend 45 minutes filling out job application
>submit button doesn't work because of adblocker
>>
>>54875268
>write a text for 20 minutes
>upload picture field looks like drag and drop
>drag and drop a picture
>picture opens in the tab and the form and everything you wrote gets disbanded
sometimes when I think trying to adapt to new shit it's a curse
>>
>>54875256
Add user where?
>>
>>54875450
What's the point of click n drag anyway unless for mass uploading.. even then..

You still have to navigate to the file in your file explorer anyway :S
>>
>>54876566
Sometimes I already have the file explorer open and in the directory of the file, so it's nice to just drag the thing over from my 2nd monitor.
>>
File: confused.jpg (62 KB, 428x410) Image search: [Google]
confused.jpg
62 KB, 428x410
>>54875268
I have experienced this multiple times. Not just on job app.s, but forums and such where the submit button looks fine and untampered with but loads some new hidden object that gets blocked.
Thread replies: 43
Thread images: 8

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.