tomnomnom / hacks

A collection of hacks and one-off scripts
2.12k stars 633 forks source link

webpaste is not working with me #28

Closed theleecher closed 3 years ago

theleecher commented 3 years ago

Hello tomnomnom, i have used webpaste before and it was working fine now it's not working with me i tried it on different platforms and it didn't worked on all of them, i want to know if the problem only occurs with me and how can i trace to solve it

1 2 3

ghost commented 3 years ago

Looks like the snippet for Google URLs isn't working anymore, they have changed the class on the "div" tags enclosing the links.

This selector:

[...document.querySelectorAll('div.r>a:first-child')].map(n=>n.href)

Doesn't match anything. The new class name seems to be "yuRUbf", changing the snippet to the one below worked for me:

[...document.querySelectorAll('div.yuRUbf>a:first-child')].map(n=>n.href)

image