Ackater / writing.com-interactive-improver

Greasemonkey script to fix up the writing.com interactive experience.
GNU General Public License v3.0
8 stars 4 forks source link

Doesn't seem to be working right now. #3

Open ThePrussian55 opened 9 months ago

ThePrussian55 commented 9 months ago

Is there something I need to do to the script to get it to work, or is it not functioning right now?

Capricom commented 9 months ago

The vimeo URL used to detect the loading page has changed, check out my pull request and open "raw" on the top right: https://github.com/Ackater/writing.com-interactive-improver/blob/a760a302b9baff4811f561c5399e6055a273eb33/writing.user.js

ThePrussian55 commented 9 months ago

Got it to work, thanks a lot.

ThePrussian55 commented 8 months ago

Seems to have stopped working again.

Capricom commented 8 months ago

Looks like they removed the Vimeo URL, try this one https://github.com/Ackater/writing.com-interactive-improver/blob/3445650f3b7cb2f5eb40153dae4f1c13bc41c61d/writing.user.js

It's now based on the "One Moment Please..." text that is displayed on the tab, I don't know if there is a language setting on writing.com, but if there is then it might not work with other languages. Do let me know if it doesn't work for you.

ThePrussian55 commented 8 months ago

For me, the page title is "Just a Moment Please...", and when I changed the script to that, it worked. Thanks again

JackSkeletron4ever commented 8 months ago

The script has stopped working for a while now and trying the other script, plus the one without the Vimeo URL and even changing to "Just a Moment Please..." like ThePrussian55 said has not helped.

ThePrussian55 commented 8 months ago

You could check your f12 screen and see what the page title is for you. I think there are a couple titles to impede this kind of workaround.

JackSkeletron4ever commented 8 months ago

Nothing. The page title is Just a Moment... and changing it doesn't do anything. Also, Tampermonkey gives me those errors:

eslint: userscript/use-download-and-update-url - Didn't find attribute 'updateURL' in the metadata

it's driving me crazy.

ThePrussian55 commented 8 months ago

Afraid I got no idea then. Not much of a computer guy I'm afraid.

99lorenzospina commented 7 months ago

// ==UserScript== // @name Writing.com // @include http://writing.com/ // @include http://www.writing.com/ // @include https://writing.com/ // @include https://www.writing.com/ // @downloadURL https://github.com/Ackater/writing.com-interactive-improver/raw/master/writing.user.js // @description Writing.com Interactive bullshit // @version 8 // @grant none // ==/UserScript== / eslint-env jquery / //Refresh a "Heavy server volume" page half a second after it loads

var test = /vimeo.com\/video\/892103601/.test(document.body.innerHTML); var test2 = document.title === "Just a Moment..."; if (test2 && ! test) { setTimeout(function() { location.reload(); }, 3000); }

99lorenzospina commented 7 months ago

You may need to change the title with "One Moment..."

JackSkeletron4ever commented 7 months ago

I tried. Nothing changed

99lorenzospina commented 7 months ago

use: " var test2 = document.title === "One Moment..."; if (test2) { " instead of: " var test2 = document.title === "Just a Moment..."; if (test2 && ! test) { ". Seems like they continuously change the html code for the pages, but this should be robust enough.

JackSkeletron4ever commented 7 months ago

It's say the script is invalid.

More specifically, it gives me an error over this line of the script.

var test = /vimeo.com/video/892103601/.test(document.body.innerHTML);