Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

97
Views
Bookmarklet to control jscontroller

I use javascript bookmarklets to control window layouts on a page, but one of the elements will be repositioned by another element. If I go into inspect source, I can see the jscontroller attribute for it being set and if I break that link, it functions the way I need it to. However, I'm not sure how to adjust that through a bookmarklet. My usual ones look like this:

javascript:(function(){var d=document,e=d.getElementsByClassName("zWfAib")[0];e.style="width: 1280px; height: 720px; left: 16px; top: 16px;";})();javascript:(function(){var d=document,e=d.getElementsByClassName("p2hjYe TPpRNe")[0];e.style="width: 1280px; height: 720px; left: 0px; top: 0px;";})();

I've tried changing style to jscontroller and passing a value, but that doesn't adjust it. Is there another way to change this attribute through a bookmarklet?

EDIT: Another approach if it makes a difference, changing the jsaction that element is set to. Is that possible through a bookmarklet?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!