Open ThePrussian55 opened 5 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
Got it to work, thanks a lot.
Seems to have stopped working again.
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.
For me, the page title is "Just a Moment Please...", and when I changed the script to that, it worked. Thanks again
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.
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.
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.
Afraid I got no idea then. Not much of a computer guy I'm afraid.
// ==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); }
You may need to change the title with "One Moment..."
I tried. Nothing changed
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.
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);
Is there something I need to do to the script to get it to work, or is it not functioning right now?