Is there any way to make a changelog pop up when a TamperMonkey script updates?
I have already tried using LocalStorage to store current GM_info, but GM_info doesn't seem to exist/work.
I do this by hard coding a version number into my script, saving it to LocalStorage, and having the script check whether the stored version matches the version of the running script.
Rather than hard coding the version number separately, you should be able to use GM_info.script.version to access the version number from the userscript metadata block - this ought to work in both GreaseMonkey and TamperMonkey.
However, note that from version 4.0, GreaseMonkey is moving to a new API: [GM.info][1] rather than GM_info. Currently, both work in GreaseMonkey v4.1, but only GM_info works in TamperMonkey v4.4. If you've updated your script for GM4, you may have broken it for TamperMonkey.
Related
Our app just doesn't want to do an incremental update. We build the app entire week and make build for production on Monday.
However, our updating the app uses only full nupkg, not the small update nupkg.
Is it a issue that the version jumps more than one number? Here are the RELEASES:
*8B3B649704D6530ADA354FE8FCFA2E7D2 MyAPP-1.1.9627-delta.nupkg 1402520
KLK9CA610BD3AE0743CB7E8B97FB9450B MyAPP-1.1.9627-full.nupkg 96907884
HHC6604006E1ACAA31DF1454BD265EF6E MyAPP-1.1.9653-delta.nupkg 2150036
8D93FD14A152C7D95E96EF3603A214B21 MyAPP-1.1.9653-full.nupkg 96921305*
It has nothing to do with bigger version number than +1. Your RELEASES file looks fine, can you share a demo? This should work and I cant help you without demo application that I can reproduced it on.
I have a Java/Spring MVC WebApp using Angular as the Front End. The ui application is deployed as part of the web app in the src>main>webapp folder. The problem is when I make any changes in the CSS or HTML files, the same are not reflected instantaneously. I have tried clearing cache and hard resetting also but to no avail.
I tried running the app in incognito mode too but it does not work.
Please help.
Specific resources can be reloaded individually if you change the date and time on your files on the server. "Clearing cache" is not as easy as it should be. Instead of clearing cache on my browsers, I realized that "touching" the server files cached will actually change the date and time of the source file cached on the server (Tested on Edge, Chrome and Firefox) and most browsers will automatically download the most current fresh copy of whats on your server (code, graphics any multimedia too). I suggest you just copy the most current scripts on the server and "do the touch thing" solution before your program runs, so it will change the date of all your problem files to a most current date and time, then it downloads a fresh copy to your browser:
<?php
touch('/www/sample/file1.css');
touch('/www/sample/file2.css');
touch('/www/sample/file2.css');
?>
then ... the rest of your program...
It took me some time to resolve this issue (as many browsers act differently to different commands, but they all check time of files and compare to your downloaded copy in your browser, if different date and time, will do the refresh), If you can't go the supposed right way, there is always another usable and better solution to it. Best Regards and happy camping. By the way touch(); or alternatives work in many programming languages inclusive in javascript bash sh php and you can include or call them in html.
I updated my app to initialize routes in callback after loading the model from database call.
Since doing this my browser (Chrome for dev) caches data very persistently. Any tips on how to force browser to reload with new data or can clear session?
Also concerned about ensuring deployed apps would use latest data.
"clearing cache" is not as easy as it should be. Instead of clearing cache on my browsers, I realized that "touching" the server files cached will actually change the date and time of the source file cached on the server (Tested on Edge, Chrome and Firefox) and most browsers will automatically download the most current fresh copy of whats on your server (code, graphics any multimedia too). I suggest you just copy the most current scripts on the server and "do the touch thing" solution before your program runs, so it will change the date of all your problem files to a most current date and time, then it downloads a fresh copy to your browser:
<?php
touch('/www/control/file1.js');
touch('/www/control/file2.js');
touch('/www/control/file2.js');
?>
then ... the rest of your program...
It took me some time to resolve this issue (as many browsers act differently to different commands, but they all check time of files and compare to your downloaded copy in your browser, if different date and time, will do the refresh), If you can't go the supposed right way, there is always another usable and better solution to it. Best Regards and happy camping. By the way touch(); or alternatives work in many programming languages inclusive in javascript bash sh php and you can include or call them in html.
When scanning an MSTag, the "Done" button displays "common_button_done" on the MSTag scan result view. This is occurring on iOS 6, but does not happen when running the app on iOS 5.1.1. We are using the MSTag SDK version with release date: 9/25/2012 (latest as of today).
I haven't been able to find anything regarding this issue. It seems that there maybe some localization file that can't be found or read for whatever reason, when running on iOS 6.
Has anyone else experienced this issue?
Make sure that the Library Search Paths are correct and that an old copy of the SDK is not hanging around from your version control system. In my case, an old copy was still being pulled down from CVS to a different location, and there were Library Search Path entries still there for the old copy--which was not referenced any longer by the project.
I removed the old copy from CVS, removed the old Library Search Path entries, nested the updated SDK in a different folder--to make sure the latest files were added to CVS, and added the correct Library Search Path entries.
For some reason, MSTagCoreResources.bundle was not being detected by CVS as having been updated--thus not getting check in, thus getting overwritten with the next "Get Latest"...thus not getting updated on all the developer machines.
Hi currenlty i'm start to use TortoiseSVN, before that i'm using CVS.
Assuming, we have concurrent changes on the same project and each of the changes need to release in different time.
In CVS, when we need to commit a file and we would write down some message in message text box(assume i put in CR00001) and then when we deploying the application, we just get all files that with message equal ='CR0001'. So we've no worry about wrong version to release.
Is there a way for me to do this in TortoiseSVN?
Please help, Thanks.
You can always use TortoiseSVN to update to a specific revision.
For what you're trying to do, though, consider creating a RELEASE branch of the code, then use svnmerge to manage the promotion of specific changesets.